public class MemCachedDBDataModel extends AbstractCacheDBDataModel
row_list
columnInformations, connection, database, dialect, registedDBTableData, resultSet, shortcutRowCount, sql, statement
NOT_CONTAINS
COLUMN_NAME_NOT_FOUND, EMPTY_DATAMODEL
构造器和说明 |
---|
MemCachedDBDataModel(Connection database,
java.lang.String sql)
初始化一个MemCachedDBDataModel
|
限定符和类型 | 方法和说明 |
---|---|
int |
getRowCount()
获取Model中的总列数
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
获取Model中指定行列的数据
|
protected boolean |
hasRow_alreadyCachedData(int rowIndex)
判断是否已经有缓存文件存在
|
protected void |
initRowValueStatus()
初始化row_list
|
void |
release()
释放资源,清空row_list
|
hasRow_g, hasRow_validateRowIndex, hasRow
finalize, getColumnCount, getColumnName, initConnectionAndResultAndCheckInColumns, isCheckRowOver, iterateResultSet, iterateResultSet4Group, register, releaseConnection, setCheckRowOverState, setTimeoutSeconds, shortcutGetRowCount, tryDestroy, unRegister
getColumnIndex, getDataIterator, getIteratorDataByColumn, getMetric
public MemCachedDBDataModel(Connection database, java.lang.String sql)
database
- 数据连接sql
- SQL语句public int getRowCount() throws TableDataException
TableDataException
public java.lang.Object getValueAt(int rowIndex, int columnIndex) throws TableDataException
rowIndex
- 行号columnIndex
- 列号TableDataException
protected boolean hasRow_alreadyCachedData(int rowIndex) throws TableDataException
hasRow_alreadyCachedData
在类中 AbstractCacheDBDataModel
rowIndex
- 行号TableDataException
protected void initRowValueStatus()
initRowValueStatus
在类中 AbstractDBDataModel
public void release() throws java.sql.SQLException
release
在接口中 DataModel
release
在类中 AbstractDBDataModel
java.sql.SQLException