public final class DiskCacheDBDataModel extends AbstractDBDataModel
columnInformations, connection, database, dialect, registedDBTableData, resultSet, shortcutRowCount, sql, statementNOT_CONTAINSCOLUMN_NAME_NOT_FOUND, EMPTY_DATAMODEL| 构造器和说明 |
|---|
DiskCacheDBDataModel(Connection database,
java.lang.String sql)
初始化一个DiskCacheDBDataModel
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getRowCount()
获取Model中的总列数
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
获取Model中指定行列的数据
|
boolean |
hasRow(int rowIndex)
检查数据集是否存在指定索引的行
|
protected void |
initRowValueStatus()
初始化mappedByteBuffer_table
|
void |
release()
释放资源,清空mappedByteBuffer_table
|
finalize, getColumnCount, getColumnName, initConnectionAndResultAndCheckInColumns, isCheckRowOver, iterateResultSet, iterateResultSet4Group, register, releaseConnection, setCheckRowOverState, setTimeoutSeconds, shortcutGetRowCount, tryDestroy, unRegistergetColumnIndex, getDataIterator, getIteratorDataByColumn, getMetricpublic DiskCacheDBDataModel(Connection database, java.lang.String sql)
database - 数据连接sql - SQL语句protected void initRowValueStatus()
initRowValueStatus 在类中 AbstractDBDataModelpublic boolean hasRow(int rowIndex)
throws TableDataException
AbstractDataModelhasRow 在接口中 DataModelhasRow 在类中 AbstractDataModelrowIndex - 行的索引,第一行为0,第二行为1,依此类推TableDataExceptionpublic java.lang.Object getValueAt(int rowIndex,
int columnIndex)
throws TableDataException
rowIndex - 行号columnIndex - 列号TableDataExceptionpublic int getRowCount()
throws TableDataException
TableDataExceptionpublic void release()
throws java.sql.SQLException
release 在接口中 DataModelrelease 在类中 AbstractDBDataModeljava.sql.SQLException