From 3cd1ab9d03dfa68e22aacb71a159e938910eda24 Mon Sep 17 00:00:00 2001 From: richie Date: Wed, 4 Sep 2019 10:15:22 +0800 Subject: [PATCH] =?UTF-8?q?javadoc=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fanruan/api/data/open/BaseDataModel.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/main/java/com/fanruan/api/data/open/BaseDataModel.java b/src/main/java/com/fanruan/api/data/open/BaseDataModel.java index 3a03e3f..0b25818 100644 --- a/src/main/java/com/fanruan/api/data/open/BaseDataModel.java +++ b/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 { + /** + * 获取数据集的列数 + * + * @return 列数 + * @throws TableDataException 如果获取数据集列数失败,则抛出此异常 + */ @Override public abstract int getColumnCount() throws TableDataException; + /** + * 获取数据集指定列的列名 + * + * @param rowIndex 列序号 + * @return 类名 + * @throws TableDataException 如果获取列名失败,则抛出此异常 + */ @Override public abstract String getColumnName(int rowIndex) throws TableDataException; + /** + * 湖区数据集的行数 + * + * @return 行数 + * @throws TableDataException 如果获取数据集行数失败,则抛出此异常 + */ @Override public abstract int getRowCount() throws TableDataException; + /** + * 获取数据集中指定位置的值 + * + * @param rowIndex 行 + * @param columnIndex 列 + * @return 值 + * @throws TableDataException 如果获取值失败,则抛出此异常 + */ @Override public abstract Object getValueAt(int rowIndex, int columnIndex) throws TableDataException; + /** + * 释放一些构建数据集过程中占用的资源 + * + * @throws Exception 释放资源时发生错误则抛出此异常 + */ @Override public abstract void release() throws Exception; }