JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.datasource
Interface VirtualColumnModel

All Superinterfaces:
ColumnModel
All Known Implementing Classes:
BaseVirtualColumn

public interface VirtualColumnModel
extends ColumnModel

This is the interface for derived columns which can be added to DataSource. DataSource will call this interface's single method to determine what value to show in this cell.


Method Summary
 Object getResultData(com.klg.jclass.datasource.DataTableModel dtm, long bookmark)
          Return the value to be displayed in the cell
 
Methods inherited from interface com.klg.jclass.datasource.ColumnModel
getCatalogName, getColumnClassName, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getIdentifier, getMetaColumnType, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isTimeDate, isWritable, setAutoIncrement, setCaseSensitive, setCatalogName, setColumnClassName, setColumnDisplaySize, setColumnLabel, setColumnName, setColumnType, setColumnTypeName, setCurrency, setDefinitelyWritable, setIdentifier, setMetaColumnType, setMetaColumnTypeFromSqlType, setNullable, setPrecision, setReadOnly, setScale, setSchemaName, setSearchable, setSigned, setTableName, setWritable
 

Method Detail

getResultData

public Object getResultData(com.klg.jclass.datasource.DataTableModel dtm,
                            long bookmark)
                     throws DataModelException
Return the value to be displayed in the cell

Parameters:
bookmark - a unique long representing a row
Returns:
an Object which is the calculated value.
Throws:
DataModelException - If getResultData fails.

Copyright © 2004 Quest Software Inc..
All rights reserved.