| net.sourceforge.squirrel_sql.fw.datasetviewer.IDataSetUpdateableTableModel
All known Subclasses: net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.tabs.table.ContentsTab, net.sourceforge.squirrel_sql.client.session.SQLExecuterTask, net.sourceforge.squirrel_sql.client.session.DataSetUpdateableTableModelImpl,
IDataSetUpdateableTableModel | public interface IDataSetUpdateableTableModel extends IDataSetUpdateableModel(Code) | | author: gwg author: The data type representing an (application) updateable table object. author: See the explanation in IDataSetUpdateableModel for why this author: delcaration is in fw but used by the application code. |
Method Summary | |
void | addListener(DataSetUpdateableTableModelListener l) | public String | deleteRows(Object[][] rowData, ColumnDisplayDefinition[] colDefs) Delete a set of rows from the DB. | public String[] | getDefaultValues(ColumnDisplayDefinition[] colDefs) Let fw get at the default values for the columns in the table
for use in creating a new row to insert. | public int | getRowidCol() Get the column number containing the rowID for this table, if any.
If there is no rowID in this table (e.g. | public String | getWarningOnCurrentData(Object[] values, ColumnDisplayDefinition[] colDefs, int col, Object oldValue) Get warning message about unusual conditions, if any, in the current data
that the user needs to be aware of before proceeding. | public String | getWarningOnProjectedUpdate(Object[] values, ColumnDisplayDefinition[] colDefs, int col, Object newValue) Get warning message about unusual conditions, if any, that will occur
if we proceed with the update as expected. | public String | insertRow(Object[] values, ColumnDisplayDefinition[] colDefs) Insert a row into the DB. | public Object | reReadDatum(Object[] values, ColumnDisplayDefinition[] colDefs, int col, StringBuffer message) Re-read the value for a single cell in the table, if possible. | void | removeListener(DataSetUpdateableTableModelListener l) | public String | updateTableComponent(Object[] values, ColumnDisplayDefinition[] colDefs, int col, Object oldValue, Object newValue) Update the data underlying the table. |
deleteRows | public String deleteRows(Object[][] rowData, ColumnDisplayDefinition[] colDefs)(Code) | | Delete a set of rows from the DB.
If the delete succeeded this returns a null string.
The deletes are done within a transaction
so they are either all done or all not done.
|
getDefaultValues | public String[] getDefaultValues(ColumnDisplayDefinition[] colDefs)(Code) | | Let fw get at the default values for the columns in the table
for use in creating a new row to insert.
|
getRowidCol | public int getRowidCol()(Code) | | Get the column number containing the rowID for this table, if any.
If there is no rowID in this table (e.g. because the DB does not
support the rowID concept), then this will be -1.
The name of the column might be something other than "rowID", e.g. "oid".
|
getWarningOnCurrentData | public String getWarningOnCurrentData(Object[] values, ColumnDisplayDefinition[] colDefs, int col, Object oldValue)(Code) | | Get warning message about unusual conditions, if any, in the current data
that the user needs to be aware of before proceeding.
|
getWarningOnProjectedUpdate | public String getWarningOnProjectedUpdate(Object[] values, ColumnDisplayDefinition[] colDefs, int col, Object newValue)(Code) | | Get warning message about unusual conditions, if any, that will occur
if we proceed with the update as expected.
|
|
|