Browse Source

javadoc接口

master
richie 5 years ago
parent
commit
3cd1ab9d03
  1. 32
      src/main/java/com/fanruan/api/data/open/BaseDataModel.java

32
src/main/java/com/fanruan/api/data/open/BaseDataModel.java

@ -11,18 +11,50 @@ import com.fr.data.AbstractDataModel;
*/ */
public abstract class BaseDataModel extends AbstractDataModel { public abstract class BaseDataModel extends AbstractDataModel {
/**
* 获取数据集的列数
*
* @return 列数
* @throws TableDataException 如果获取数据集列数失败则抛出此异常
*/
@Override @Override
public abstract int getColumnCount() throws TableDataException; public abstract int getColumnCount() throws TableDataException;
/**
* 获取数据集指定列的列名
*
* @param rowIndex 列序号
* @return 类名
* @throws TableDataException 如果获取列名失败则抛出此异常
*/
@Override @Override
public abstract String getColumnName(int rowIndex) throws TableDataException; public abstract String getColumnName(int rowIndex) throws TableDataException;
/**
* 湖区数据集的行数
*
* @return 行数
* @throws TableDataException 如果获取数据集行数失败则抛出此异常
*/
@Override @Override
public abstract int getRowCount() throws TableDataException; public abstract int getRowCount() throws TableDataException;
/**
* 获取数据集中指定位置的值
*
* @param rowIndex
* @param columnIndex
* @return
* @throws TableDataException 如果获取值失败则抛出此异常
*/
@Override @Override
public abstract Object getValueAt(int rowIndex, int columnIndex) throws TableDataException; public abstract Object getValueAt(int rowIndex, int columnIndex) throws TableDataException;
/**
* 释放一些构建数据集过程中占用的资源
*
* @throws Exception 释放资源时发生错误则抛出此异常
*/
@Override @Override
public abstract void release() throws Exception; public abstract void release() throws Exception;
} }

Loading…
Cancel
Save