public class UnionDataModel extends AbstractDataModel
NOT_CONTAINSCOLUMN_NAME_NOT_FOUND, EMPTY_DATAMODEL| 构造器和说明 |
|---|
UnionDataModel(java.util.List resultSetList) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getColumnCount()
获取列数目
|
java.lang.String |
getColumnName(int columnIndex)
获取指定下标的列名
|
int |
getRowCount()
获取行数目
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
获取指定行列的数据
|
void |
release()
释放数据模型使用的资源,如JDBC数据连接
|
getColumnIndex, getDataIterator, getIteratorDataByColumn, getMetric, hasRowpublic int getColumnCount()
throws TableDataException
TableDataExceptionpublic java.lang.String getColumnName(int columnIndex)
throws TableDataException
columnIndex - 下标TableDataExceptionpublic int getRowCount()
throws TableDataException
TableDataExceptionpublic java.lang.Object getValueAt(int rowIndex,
int columnIndex)
throws TableDataException
rowIndex - 行号columnIndex - 列号TableDataExceptionpublic void release()
throws java.lang.Exception
release 在接口中 DataModelrelease 在类中 AbstractDataModeljava.lang.Exception