public class ArrayTableData extends AbstractParameterTableData
columnNames
包含所有列的名字,rowData
包含所有的数据;
注意:这两个数组的长度必须要相等.
String[] columnNames = new String[] {"Col_1", "Col_2", "Col_3", "Col_4"}; Object[][] data = { {"ABC", new Integer(-45), new Integer(15), new Integer(67)}, {"CBD", new Integer(-21), new Integer(35), new Integer(99)}, {"HIJ", new Integer(-71), new Integer(68), new Integer(23)} }; //Create a ArrayTableData object. TableData tableData = new ArrayTableData(columnNames, data);]!> TableData object from array,
columnNames
includes all column names,rowData
includes all data;
warning: the two array should have the same length.
String[] columnNames = new String[] {"Col_1", "Col_2", "Col_3", "Col_4"}; Object[][] data = { {"ABC", new Integer(-45), new Integer(15), new Integer(67)}, {"CBD", new Integer(-21), new Integer(35), new Integer(99)}, {"HIJ", new Integer(-71), new Integer(68), new Integer(23)} }; //Create a ArrayTableData object. TableData tableData = new ArrayTableData(columnNames, data);]!>
parameters, ROW_COUNT
ARRAY_XML_TAG, EMPTY_TABLEDATA, RESULT_ALL, RESULT_NOT_NEED, XML_TAG
构造器和说明 |
---|
ArrayTableData() |
ArrayTableData(java.lang.String[] columnNames,
java.lang.Object[][] data)
|
限定符和类型 | 方法和说明 |
---|---|
DataModel |
createDataModel(Calculator calculator)
返回获取数据的执行对象
系统取数时,调用此方法来返回一个获取数据的执行对象
注意!
|
boolean |
equals(java.lang.Object obj) |
clone, createDataModel, createDataModel, getParameters, processParameters, readXML, setDefaultParameters, setParameters, writeXML
createDataModelWithTimeout, filterDataType, getColumnNames, getDataCacheKey, registerNoPrivilege
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public ArrayTableData()
public ArrayTableData(java.lang.String[] columnNames, java.lang.Object[][] data)
columnNames
- 每个列的名字.data
- 所有的数据 ]!>
ArrayTableData that is initialized with
the column names array and data array.columnNames
- names of each columndata
- the array which holds data ]!>public boolean equals(java.lang.Object obj)
equals
在接口中 TableData
equals
在类中 AbstractParameterTableData
public DataModel createDataModel(Calculator calculator)
TableData
calculator
- 连接上下文计算的算子