|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is only of interest to those who wish to implement their own data source using some other implementation. Its methods should never be called directly. They will be called by the implementations of the DataTableModel.
If you do wish to implement your own data source, simply extend BaseDataTable (which abstractly implements these methods) and concretely implement them.
This layer consists of a set of methods that abstract the dependencies between the DataTableModel and the underlying implementation platform (such as JDBC, VCafe, JBuilder).
Method Summary | |
Object |
cloneRow(long bookmark)
Returns a copy of a row, called by updateCell(). |
Object |
createNewRow()
Creates a new row, called by addRow(). |
Object |
getCell(long bookmark,
String column_identifer)
Returns a value for given bookmark/column_identifier. |
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 |
refreshRow(long bookmark)
Re-reads a row from the originating data source. |
com.klg.jclass.datasource.DataTableModel |
requeryLevel()
Requeries the data for the root level DataTable. |
void |
restoreRow(long bookmark)
Restores a row's original values, called by cancelRowChanges(). |
void |
saveRow(long bookmark)
Saves row changes to originating data source. |
void |
setValueAt(long bookmark,
String col_id,
Object value)
Changes the value of an existing cell, called by updateCell() An implementation specific method for setting cell values, it must be implemented in the derived class of BaseDataTable. |
Method Detail |
public Object cloneRow(long bookmark) throws DataModelException
bookmark
- a long which uniquely identifies a row
DataModelException
- If clone fails.public void setValueAt(long bookmark, String col_id, Object value) throws Exception
bookmark
- a long indicating the rowcol_id
- a String indicating the column
Exception
- If update of cell fails.DataTableModel.updateCell(com.klg.jclass.datasource.DataModelListener, long, java.lang.String, java.lang.Object)
public void restoreRow(long bookmark)
DataTableModel.cancelRowChanges(com.klg.jclass.datasource.DataModelListener, long)
,
DataTableModel.requeryRow(com.klg.jclass.datasource.DataModelListener, long)
public Object createNewRow() throws Exception
Exception
- If error occurs creating a new row.DataTableModel.addRow(com.klg.jclass.datasource.DataModelListener)
public void refreshRow(long bookmark) throws Exception
bookmark
- a long which uniquely identifies a row
Exception
- If requery from server fails.DataTableModel.requeryRow(com.klg.jclass.datasource.DataModelListener, long)
public void saveRow(long bookmark) throws Exception
bookmark
- a unique long indicating which row
to commit to the datasource.
Exception
- If save fails.DataTableModel.commitRow(com.klg.jclass.datasource.DataModelListener, long)
public com.klg.jclass.datasource.DataTableModel requeryLevel() throws Exception
Exception
- If requery from server fails.public Object getCell(long bookmark, String column_identifer) throws Exception
bookmark
- a long which uniquely identifies this row
Exception
- If getCell() fails.public com.klg.jclass.datasource.DataTableModel materializeTable(com.klg.jclass.datasource.DataModelListener originator, long bookmark, TreeNode childMetaDataModel) throws DataModelException
bookmark
- 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.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |