public class DbAttributeTableModel extends CayenneTableModel
CayenneTableModel.PropertyComparator| Modifier and Type | Field and Description |
|---|---|
protected DbEntity |
entity |
eventSource, mediator, objectListlistenerList| Constructor and Description |
|---|
DbAttributeTableModel(DbEntity entity,
ProjectController mediator,
Object eventSource) |
DbAttributeTableModel(DbEntity entity,
ProjectController mediator,
Object eventSource,
List<DbAttribute> objectList) |
| Modifier and Type | Method and Description |
|---|---|
DbAttribute |
getAttribute(int row) |
String |
getAttributeName(DbAttribute attr) |
String |
getAttributeType(DbAttribute attr) |
Class<?> |
getColumnClass(int col) |
int |
getColumnCount()
Returns the number of columns in the table.
|
String |
getColumnName(int col) |
Class<?> |
getElementsClass()
Returns DbAttribute class.
|
String |
getMaxLength(DbAttribute attr) |
String |
getScale(DbAttribute attr) |
Object |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int row,
int col) |
boolean |
isColumnSortable(int sortCol) |
Boolean |
isMandatory(DbAttribute attr) |
Boolean |
isPrimaryKey(DbAttribute attr) |
int |
mandatoryColumnInd() |
int |
nameColumnInd() |
void |
setAttributeType(String newVal,
DbAttribute attr) |
void |
setGenerated(Boolean newVal,
DbAttribute attr) |
void |
setMandatory(Boolean newVal,
DbAttribute attr) |
void |
setMaxLength(String newVal,
DbAttribute attr) |
boolean |
setPrimaryKey(Boolean newVal,
DbAttribute attr,
int row) |
void |
setScale(String newVal,
DbAttribute attr) |
void |
setUpdatedValueAt(Object newVal,
int row,
int col)
Sets a new value after it is already checked by the superclass and it is determined
that the value has changed.
|
void |
sortByColumn(int sortCol,
boolean isAscent) |
int |
typeColumnInd() |
addRow, getEventSource, getMediator, getObjectList, getOrderingKey, getRowCount, isValid, moveRowDown, moveRowUp, orderList, removeRow, resetModel, setValueAt, sortByElementProperty, swapRowsaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprotected DbEntity entity
public DbAttributeTableModel(DbEntity entity, ProjectController mediator, Object eventSource)
public DbAttributeTableModel(DbEntity entity, ProjectController mediator, Object eventSource, List<DbAttribute> objectList)
public int nameColumnInd()
public int typeColumnInd()
public int mandatoryColumnInd()
public Class<?> getElementsClass()
getElementsClass in class CayenneTableModelpublic int getColumnCount()
public DbAttribute getAttribute(int row)
public String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class<?> getColumnClass(int col)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic Object getValueAt(int row, int column)
public void setUpdatedValueAt(Object newVal, int row, int col)
CayenneTableModelsetUpdatedValueAt in class CayenneTableModelpublic String getMaxLength(DbAttribute attr)
public String getAttributeName(DbAttribute attr)
public String getAttributeType(DbAttribute attr)
public String getScale(DbAttribute attr)
public Boolean isPrimaryKey(DbAttribute attr)
public Boolean isMandatory(DbAttribute attr)
public void setMaxLength(String newVal, DbAttribute attr)
public void setAttributeType(String newVal, DbAttribute attr)
public void setScale(String newVal, DbAttribute attr)
public boolean setPrimaryKey(Boolean newVal, DbAttribute attr, int row)
public void setMandatory(Boolean newVal, DbAttribute attr)
public void setGenerated(Boolean newVal, DbAttribute attr)
public boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic boolean isColumnSortable(int sortCol)
isColumnSortable in class CayenneTableModelpublic void sortByColumn(int sortCol,
boolean isAscent)
sortByColumn in class CayenneTableModelCopyright © 2001–2015 Apache Cayenne. All rights reserved.