public abstract class AbstractLayerDBDataModel extends AbstractDBDataModel
columnInformations, connection, database, dialect, registedDBTableData, resultSet, shortcutRowCount, sql, statement
NOT_CONTAINS
COLUMN_NAME_NOT_FOUND, EMPTY_DATAMODEL
构造器和说明 |
---|
AbstractLayerDBDataModel(Connection database,
java.lang.String sql) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
dealWithException(java.lang.Exception exp,
int rowIndex) |
DataQueryProcessor |
getDataQueryProcessor() |
int |
getRowCount()
获取数据集模型的行数
注意:在调用了方法后,必须释放这个数据集
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
获取数据集模型中指定行列的数据
注意:在调用了方法后,必须释放这个数据集模型
|
protected abstract void |
hasRow_3rd_condition_action(int rowIndex) |
protected boolean |
hasRow_3rd_condition(int rowIndex) |
protected abstract void |
hasRow_after_iterate_resultset(int rowIndex) |
protected abstract boolean |
hasRow_isLastRow(int rowIndex) |
protected abstract int |
hasRow_rowIndex2Get(int rowIndex) |
boolean |
hasRow(int rowIndex)
检查数据集是否存在指定索引的行
|
protected void |
initRowValueStatus() |
void |
setDataQueryProcessor(DataQueryProcessor dataQueryProcessor) |
protected int |
shortcutGetRowCount() |
finalize, getColumnCount, getColumnName, initConnectionAndResultAndCheckInColumns, isCheckRowOver, iterateResultSet, iterateResultSet4Group, register, release, releaseConnection, setCheckRowOverState, setTimeoutSeconds, tryDestroy, unRegister
getColumnIndex, getDataIterator, getIteratorDataByColumn, getMetric
public AbstractLayerDBDataModel(Connection database, java.lang.String sql)
protected void initRowValueStatus()
initRowValueStatus
在类中 AbstractDBDataModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex) throws TableDataException
DataModel
rowIndex
- 行索引columnIndex
- 列索引TableDataException
public int getRowCount() throws TableDataException
DataModel
TableDataException
protected abstract int hasRow_rowIndex2Get(int rowIndex)
protected boolean hasRow_3rd_condition(int rowIndex)
protected abstract void hasRow_3rd_condition_action(int rowIndex) throws TableDataException
protected abstract boolean hasRow_isLastRow(int rowIndex)
protected abstract void hasRow_after_iterate_resultset(int rowIndex)
public DataQueryProcessor getDataQueryProcessor()
public void setDataQueryProcessor(DataQueryProcessor dataQueryProcessor)
public boolean hasRow(int rowIndex) throws TableDataException
AbstractDataModel
hasRow
在接口中 DataModel
hasRow
在类中 AbstractDataModel
rowIndex
- 行的索引,第一行为0,第二行为1,依此类推TableDataException
protected int shortcutGetRowCount()
protected void dealWithException(java.lang.Exception exp, int rowIndex) throws TableDataException