|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.tree.DefaultMutableTreeNode
|
+--com.klg.jclass.datasource.DataSourceTreeNode
|
+--com.klg.jclass.datasource.BaseDataTable
|
+--com.klg.jclass.datasource.IdeDataTable
|
+--com.klg.jclass.datasource.jbuilder.DataTable
This is the JBuilder implementation for data storage for the JClass Outline Grid datamodel. This data model will request data from instances of this table and will manipulate that data through this interface. That is, rows can then be added, deleted or updated through this DataTable.
To allow sorting of rows and columns, all operations access cell data using unique identifiers for rows and columns, rather than their indexes.
| Field Summary | |
protected com.borland.dx.dataset.DataSet |
dataSet
|
protected com.borland.dx.dataset.DataSetView |
dataSetView
|
protected boolean |
eventsOriginallyOn
|
| Fields inherited from class com.klg.jclass.datasource.IdeDataTable |
bookmarkOfLastRowAdded, ideRowIndexToBookmarkMap |
| Fields inherited from class com.klg.jclass.datasource.BaseDataTable |
bookmark, currentColumn, cursor, eventQueue, initialHashtableSize, insertedRows, internalData, logicallyDeletedRows, metaData, parentRow, rowCaches, rowIndexBeforeEvent, store, updatedRows, userData |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Fields inherited from interface com.klg.jclass.datasource.DataTableModel |
COMMITTED, CURSOR_BEFORE_FIRST, DELETED, INSERTED, NONEXISTENT, ROOT_BOOKMARK, ROW_NOT_FOUND, UPDATED |
| Constructor Summary | |
DataTable(com.klg.jclass.datasource.jbuilder.MetaData metaData,
com.borland.dx.dataset.DataSet dataSet)
|
|
DataTable(com.klg.jclass.datasource.jbuilder.MetaData metaData,
com.borland.dx.dataset.DataSet dataSet,
long parentRow)
|
|
| Method Summary | |
long |
addRow(com.klg.jclass.datasource.DataModelListener originator)
Adds a row, overrides BaseDataTable.addRow(). |
void |
cancelRowChanges(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
Override BaseDataTable.cancelRowChanges. |
boolean |
commitRow(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
Commits the row. |
void |
copyTable()
|
void |
deleteRow(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
Deletes a row. |
Object[] |
duplicateRow(int rowIndex)
Duplicate a row. |
Object |
getCell2(long bookmark,
String column_id)
Duplicate a row. |
com.klg.jclass.datasource.DataTableModel |
materializeTable(com.klg.jclass.datasource.DataModelListener originator,
long bookmark,
TreeNode childMetaDataModel)
Called by DataTableModel.createTable to create a new table based on the input criteria. |
void |
moveToRow(long bookmark)
Makes "bookmark" the new current row. |
void |
refreshRow(long bookmark)
Re-reads a row from the originating data source. |
com.klg.jclass.datasource.DataTableModel |
requeryLevel()
For internal use, do not use. |
void |
rollbackTransaction()
Rolls back the transaction. |
void |
saveRow(long bookmark)
Saves row changes to originating data source. |
void |
setValueAt(long bookmark,
String col_id,
Object value)
For internal use only. |
| Methods inherited from class com.klg.jclass.datasource.DataSourceTreeNode |
getChildren, getFirstChild, getIterator, getIterator, getIterator, getIterator, getLastChild, getNextChild, getPreviousChild, hasChildren, insert, isChildOf, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected com.borland.dx.dataset.DataSet dataSet
protected com.borland.dx.dataset.DataSetView dataSetView
protected boolean eventsOriginallyOn
| Constructor Detail |
public DataTable(com.klg.jclass.datasource.jbuilder.MetaData metaData,
com.borland.dx.dataset.DataSet dataSet,
long parentRow)
public DataTable(com.klg.jclass.datasource.jbuilder.MetaData metaData,
com.borland.dx.dataset.DataSet dataSet)
| Method Detail |
public void copyTable()
public Object[] duplicateRow(int rowIndex)
throws DataModelException
DataModelException - If duplicate fails.
public Object getCell2(long bookmark,
String column_id)
throws DataModelException
DataModelException - If get fails.
public com.klg.jclass.datasource.DataTableModel materializeTable(com.klg.jclass.datasource.DataModelListener originator,
long bookmark,
TreeNode childMetaDataModel)
throws DataModelException
materializeTable in interface DataTableAbstractionLayermaterializeTable in class BaseDataTableoriginator - the DataModelListener which initiated this actionbookmark - a long which uniquely identifies a rowchildMetaDataModel - a MetaDataModel, this tells this table
what structure the child table it is creating should have
DataModelException - If materializeTable fails.
public void moveToRow(long bookmark)
throws DataModelException
moveToRow in interface DataTableModelmoveToRow in class BaseDataTablebookmark - an int, unique row identifier
DataModelException - If move fails.
public long addRow(com.klg.jclass.datasource.DataModelListener originator)
throws DataModelException
All we do here is call the ide add row, for this will generate an ide add row event, which will cause us to add a row our data model. Avoids double adds.
Adds a blank row into which the user can input column data. The record is appended to this ResultSet. The record is saved to datasource when the user commits the surrounding transaction. * @param originator the DataModelListener which initiated this action
addRow in interface DataTableModeladdRow in class BaseDataTableoriginator - the DataModelListener which initiated this action
DataModelException - If row fails to be added.
public void deleteRow(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
throws DataModelException
DataTableModel
deleteRow in interface DataTableModeldeleteRow in class BaseDataTableoriginator - the DataModelListener which initiated this actionbookmark - a unique long indicating the row to be deleted.
DataModelException - If the row can't be deleted.
public boolean commitRow(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
throws DataModelException
DataTableModel
commitRow in interface DataTableModelcommitRow in class BaseDataTableoriginator - the DataModelListener which initiated this actionbookmark - a unique long indicating which row
to commit to the datasource.
DataModelException - If the row can't be committed.DataTableAbstractionLayer.saveRow(long)public void saveRow(long bookmark)
saveRow in interface DataTableAbstractionLayersaveRow in class BaseDataTablebookmark - a unique long indicating which row
to commit to the datasource.BaseDataTable.commitRow(com.klg.jclass.datasource.DataModelListener, long)public void rollbackTransaction()
public void refreshRow(long bookmark)
throws DataModelException
refreshRow in interface DataTableAbstractionLayerrefreshRow in class BaseDataTablebookmark - a long which uniquely identifies a row
DataModelException - If requery from server fails.DataTableModel.requeryRow(com.klg.jclass.datasource.DataModelListener, long)
public void setValueAt(long bookmark,
String col_id,
Object value)
throws DataModelException
setValueAt in interface DataTableAbstractionLayersetValueAt in class BaseDataTableDataModelException - If setValueAt fails.DataTableModel.updateCell(com.klg.jclass.datasource.DataModelListener, long, java.lang.String, java.lang.Object)
public void cancelRowChanges(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
throws DataModelException
cancelRowChanges in interface DataTableModelcancelRowChanges in class BaseDataTableoriginator - the DataModelListener which initiated this actionbookmark - a unique long which identifies this row
DataModelException - If the changes can't be canceled.DataTableAbstractionLayer.restoreRow(long),
DataTableModel.requeryRow(com.klg.jclass.datasource.DataModelListener, long)
public com.klg.jclass.datasource.DataTableModel requeryLevel()
throws DataModelException
requeryLevel in interface DataTableModelrequeryLevel in class BaseDataTableDataModelException - If requery fails.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||