D - The class name of the persistent object backing this model.public class TransactionalJDOTableModel<D> extends JDOTableModel<D>
© Copyright 2008 Sans Pareil Technologies, Inc.
SortableTableModel.Directioninitialised, model, pmpage, pageSize, totalRowscolumns, datasortDirection, sortIndex| Modifier | Constructor and Description |
|---|---|
protected |
TransactionalJDOTableModel()
Default constructor.
|
|
TransactionalJDOTableModel(D model)
Create a new table model for objects of the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(D row)
Add the specified object to the end of the model.
|
void |
deleteRow(int row)
Delete the specified row from the model.
|
void |
insertRow(int row,
D rowData)
Insert the specified object at the specified row index into the model.
|
void |
updateRow(int row,
D rowData)
Replace the row specified with the object specified.
|
fetchData, fetchRepository, fetchSortedData, fetchUnsortedData, init, initTotalRows, setPage, setPageSize, sort, sort, sortDatagetPage, getPageSize, getTotalPagesdeleteRow, getColumnAnnotations, getColumnClass, getColumnCount, getColumnName, getObjectAt, getRowCount, getValueAt, processColumnAnnotations, processColumns, processColumnsAnnotation, processFieldsgetSortDirectionaddTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getEventListenerList, removeTableModelListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSortDirectionprotected TransactionalJDOTableModel()
public TransactionalJDOTableModel(D model)
JDOTableModel.init() for table model to be initialised.model - A dummy object used to initialise the table model. Note
that the dummy object need not be a persistent instance.JDOTableModel.init()public void addRow(D row)
addRow in class JDOTableModel<D>row - The data object that is to be added to the model.save(D),
TableModel.addRow(D)public void insertRow(int row,
D rowData)
rowData object to the data
store. If persisting the object fails the model is not updated.insertRow in class JDOTableModel<D>row - The index at which the object is to be inserted.rowData - The object that is to be added to the model.save(D),
TableModel.insertRow(int, D)public void updateRow(int row,
D rowData)
updateRow in class TableModel<D>row - The index at which the object is to be updated.rowData - The new object that is to be used in the model.TableModel.updateRow(int, D)public void deleteRow(int row)
deleteRow in class JDOTableModel<D>row - The index of the row that is to be deleted.delete(int),
TableModel.deleteRow(int)