com.klg.jclass.datasource.jdbc
Class ResultSetBinding
java.lang.Object
|
+--com.klg.jclass.datasource.ReadOnlyBinding
|
+--com.klg.jclass.datasource.Binding
|
+--com.klg.jclass.datasource.jdbc.ResultSetBinding
- All Implemented Interfaces:
- BindingModel, ReadOnlyBindingModel, Serializable
- public class ResultSetBinding
- extends Binding
This class provides binding for a single level (non-hierarchical)
data source. Its data is provided by a java.sql.ResultSet.
- See Also:
- Serialized Form
Method Summary |
boolean |
isColumnEditable(int columnIndex)
Overridden since updates are not possible using ResultSet. |
boolean |
isColumnEditable(String columnName)
Overridden since updates are not possible using ResultSet. |
Methods inherited from class com.klg.jclass.datasource.Binding |
addRow, cancelAll, cancelCurrentRowChanges, cancelRowChanges, commitAll, commitCurrentRow, commitRow, deleteCurrentRow, deleteRow, deleteRows, getCurrentRowStatus, getRowStatus, isCurrentRowModified, isRowModified, moveToBestRowAfterDelete, requeryLevel, setCell, setCurrentCell |
Methods inherited from class com.klg.jclass.datasource.ReadOnlyBinding |
addBindingListener, getCell, getCell, getColumnCount, getColumnIdentifier, getColumnIndex, getColumnObject, getCurrentCell, getCurrentDataTableModel, getCurrentRowIndex, getDataModel, getDescription, getJavaColumnType, getJavaColumnType, getListeners, getMetaDataModel, getParent, getRowCount, isDataAvailable, isDescendantOf, isOurData, isOutDataOrOurAncestors, moveToRowIndex, removeBindingListener, requeryAll, requeryCurrentRow, requeryCurrentRowAndDetails, requeryRow, requeryRowAndDetails, setDataModel, setDescription, setMetaDataModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSetBinding
public ResultSetBinding(ResultSet rs)
throws DataModelException
- Create a single-level binding from a java.sql.ResultSet.
This binding can then be used as a datasource for jclass
chart, table and/or field.
- Parameters:
rs
- a java.sql.ResultSet
isColumnEditable
public boolean isColumnEditable(String columnName)
- Overridden since updates are not possible using ResultSet.
Return true if edits are permitted on this column.
- Specified by:
isColumnEditable
in interface BindingModel
- Overrides:
isColumnEditable
in class Binding
- Returns:
- true if edits are permitted on this column, false otherwise.
isColumnEditable
public boolean isColumnEditable(int columnIndex)
- Overridden since updates are not possible using ResultSet.
Return true if edits are permitted on this column.
- Specified by:
isColumnEditable
in interface BindingModel
- Overrides:
isColumnEditable
in class Binding
- Returns:
- true if edits are permitted on this column, false otherwise.