public interface MutableTableDataSource extends TableDataSource
Modifier and Type | Method and Description |
---|---|
void |
addRootLock()
Puts this source under a 'root lock'.
|
int |
addRow(RowData row_data)
Adds a row to the source.
|
void |
constraintIntegrityCheck()
Performs all constraint integrity checks and actions to any modifications
based on any changes that happened to the table since that last call to
this method.
|
void |
dispose()
Disposes this table data source.
|
void |
flushIndexChanges()
Flushes all changes made on this MutableTableDataSource to the backing
index scheme (IndexSet).
|
com.mckoi.database.MasterTableJournal |
getJournal()
Returns a journal that details the changes to this data source since it
was created.
|
void |
removeRootLock()
Removes a root lock from this source.
|
void |
removeRow(int row_index)
Completely removes a row from the source.
|
int |
updateRow(int row_index,
RowData row_data)
Updates a row in the source.
|
getCellContents, getColumnScheme, getDataTableDef, getRowCount, getSystem, rowEnumeration
int addRow(RowData row_data)
It returns a row index that is used to reference this data in future queries. Throws an exception if the row additional was not possible because of IO reasons.
void removeRow(int row_index)
Throws an exception if the row index does not reference a valid row within the context of this data source.
int updateRow(int row_index, RowData row_data)
It returns a row index for the new updated records. Throws an exception if the row update was not possible because of IO reasons or the row index not being a valid reference to a record in this data source.
void flushIndexChanges()
When this method returns, the backing IndexSet of this view will be completely up to date.
void constraintIntegrityCheck()
Any constraints that are marked as INITIALLY_IMMEDIATE are checked when this is called, otherwise the constraint is checked at commit time.
Any referential actions are performed when this method is called. If a referential action causes a modification to another table, this method is recursively called on the table modified.
If a referential integrity constraint is violated and a referential action is unable to maintain the integrity of the database, any changes made to the table are reverted.
com.mckoi.database.MasterTableJournal getJournal()
void dispose()
void addRootLock()
void removeRootLock()
Copyright © 2015. All rights reserved.