1: import java.util.ArrayList;
2: import java.util.List;
3:
6:
7: public final class DataTable {
8:
9: private DataRowCollection rows; //用于保存DataRow的集合对象
10: private DataColumnCollection columns; //用于保存DataColumn的对象
11: private String tableName; //表名
12: private boolean readOnly = false;
13: private int nextRowIndex = 0;
14: private DataExpression dataExpression;
15: private Object tag;
16:
17: public DataTable() {
18: this.columns = new DataColumnCollection();
19: this.rows = new DataRowCollection();
20: this.rows.setColumns(columns);
21: dataExpression = new DataExpression(this);
22: }
23:
24: public DataTable(String dataTableName) {
25: this();
26: this.tableName = dataTableName;
27: }
28:
29: public int getTotalCount() {
30: return rows.size();
31: }
32:
33: public boolean isReadOnly() {
34: return this.readOnly;
35: }
36:
37: public void setReadOnly(boolean readOnly) {
38: this.readOnly = readOnly;
39: }
40:
41: /**
42: * 功能描述: 返回表名
43: * @param
44: */
45: public String getTableName() {
46: return this.tableName;
47: }
48:
49: /**
50: * 功能描述: