forked from fanruan/finekit
richie
5 years ago
3 changed files with 53 additions and 25 deletions
@ -0,0 +1,28 @@ |
|||||||
|
package com.fanruan.api.data.open; |
||||||
|
|
||||||
|
import com.fanruan.api.err.TableDataException; |
||||||
|
import com.fr.data.AbstractDataModel; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author richie |
||||||
|
* @version 10.0 |
||||||
|
* Created by richie on 2019-09-04 |
||||||
|
* 二维表模型 |
||||||
|
*/ |
||||||
|
public abstract class BaseDataModel extends AbstractDataModel { |
||||||
|
|
||||||
|
@Override |
||||||
|
public abstract int getColumnCount() throws TableDataException; |
||||||
|
|
||||||
|
@Override |
||||||
|
public abstract String getColumnName(int rowIndex) throws TableDataException; |
||||||
|
|
||||||
|
@Override |
||||||
|
public abstract int getRowCount() throws TableDataException; |
||||||
|
|
||||||
|
@Override |
||||||
|
public abstract Object getValueAt(int rowIndex, int columnIndex) throws TableDataException; |
||||||
|
|
||||||
|
@Override |
||||||
|
public abstract void release() throws Exception; |
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
package com.fanruan.api.err; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author richie |
||||||
|
* @version 10.0 |
||||||
|
* Created by richie on 2019-09-04 |
||||||
|
* 数据集异常 |
||||||
|
*/ |
||||||
|
public class TableDataException extends com.fr.general.data.TableDataException { |
||||||
|
|
||||||
|
public TableDataException(String s) { |
||||||
|
super(s); |
||||||
|
} |
||||||
|
|
||||||
|
public TableDataException(String s, Throwable throwable) { |
||||||
|
super(s, throwable); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue