public class EmbeddedTableData extends AbstractParameterTableData implements XMLable
限定符和类型 | 类和说明 |
---|---|
class |
EmbeddedTableData.EmbeddedTDDataModel |
限定符和类型 | 字段和说明 |
---|---|
protected static Mapper |
CLASS2NAME |
parameters, ROW_COUNT
ARRAY_XML_TAG, EMPTY_TABLEDATA, RESULT_ALL, RESULT_NOT_NEED, XML_TAG
构造器和说明 |
---|
EmbeddedTableData()
embedded TableData构造函数
|
限定符和类型 | 方法和说明 |
---|---|
void |
addColumn(java.lang.String columnName,
java.lang.Class columnClass)
增加列
|
void |
addColumnNameAndData(java.lang.String[] columnNames,
java.util.List data,
java.lang.String dsName)
增加列名和列数据
|
void |
addNewRow(int index)
Add new row to the given index
指定位置增加新的行
|
void |
addRow(int index,
java.util.List rowList)
Add row data
指定位置增加行
|
void |
addRow(int index,
java.lang.String[] array)
增加行
|
void |
addRow(java.util.List rowList)
Add row data
增加行
|
protected static java.lang.Class<?> |
classForName(java.lang.String classNameStr)
与mapper对应
|
void |
clear()
清空list
|
java.lang.Object |
clone()
克隆
|
protected static EmbeddedTableData |
convertEmbeddedTableData(TableData tableData,
EmbeddedTableData embedTableData,
Calculator calculator,
int rowCount)
返回内置数据行数据,行小于0返回所有
|
DataModel |
createDataModel(Calculator calculator)
生成数据模型
|
static EmbeddedTableData |
embedify(TableData tableData,
Calculator calculator)
返回EmbeddedTableData所有数据
|
static EmbeddedTableData |
embedify(TableData tableData,
Calculator calculator,
int rowCount)
返回内置数据行数据,行小于0返回所有
|
boolean |
equals(java.lang.Object obj) |
void |
filterDataType(java.lang.Class<?> type) |
java.util.List<java.lang.Class> |
getColumnClass() |
java.lang.Class |
getColumnClass(int columnIndex)
Gets the class of the column at
columnIndex . |
ColConf<java.util.Collection<java.lang.Class>> |
getColumnClassList() |
int |
getColumnCount()
|
java.lang.String |
getColumnName(int columnIndex)
|
ColConf<java.util.Collection<java.lang.String>> |
getColumnNameList() |
Conf<java.lang.String> |
getDsName() |
int |
getRowCount()
|
java.util.List |
getRowData()
返回行数据
|
Conf<RowDataWrapper> |
getRowDataConf()
获取 rowData 配置
|
protected RowDataWrapper |
getRowDataWrapper() |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Gets the specified value at
columnIndex and rowIndex . |
java.lang.Object |
getValueOfClass(java.lang.Object obj,
java.lang.Class columnClass)
因为保存在rowData里面的都是String,所以要根据columnClass对str进行转换一下
|
void |
insertColumn(java.lang.String columnName,
java.lang.Class columnClass,
int selectedColumn)
插入列
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
removeColumn(int columnIndex)
Remove column at given position
移动指定位置的列
|
void |
removeRow(int rowIndex)
Remove row at given position.
|
void |
setColumn(int columnIndex,
java.lang.String columnName,
java.lang.Class columnClass)
设置制定列
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets the value in the cell at
columnIndex and
rowIndex to aValue . |
java.lang.String |
toString()
Returns a string representation of the object.对象
|
ProcedureDataModel |
trans2ProcedureDataModel()
转为存储过程数据集Model
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
createDataModel, createDataModel, getParameters, processParameters, setDefaultParameters, setParameters
createDataModelWithTimeout, getColumnNames, getDataCacheKey, registerNoPrivilege
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
protected static final Mapper CLASS2NAME
public ColConf<java.util.Collection<java.lang.String>> getColumnNameList()
public ColConf<java.util.Collection<java.lang.Class>> getColumnClassList()
public Conf<java.lang.String> getDsName()
public Conf<RowDataWrapper> getRowDataConf()
public void addColumn(java.lang.String columnName, java.lang.Class columnClass)
columnName
- 列名columnClass
- 列类型protected RowDataWrapper getRowDataWrapper()
public java.util.List<java.lang.Class> getColumnClass()
public java.util.List getRowData()
public void insertColumn(java.lang.String columnName, java.lang.Class columnClass, int selectedColumn)
columnName
- 列名columnClass
- 列类型selectedColumn
- 第几列public void setColumn(int columnIndex, java.lang.String columnName, java.lang.Class columnClass)
columnIndex
- the given position 列位置columnName
- column name 列名columnClass
- column class 列类型public void removeColumn(int columnIndex)
columnIndex
- the given position 列索引public void addRow(java.util.List rowList)
rowList
- row data list. 行数据public void addRow(int index, java.util.List rowList)
index
- the given index 位置rowList
- row data list. 行数据public void addRow(int index, java.lang.String[] array)
index
- 行号array
- 行数组形式数据public void addNewRow(int index)
index
- the given index 行号public void removeRow(int rowIndex)
rowIndex
- the given position. 行号public int getColumnCount()
public ProcedureDataModel trans2ProcedureDataModel()
public java.lang.String getColumnName(int columnIndex)
columnIndex
- the first column is 0, the second is 1,...public java.lang.Class getColumnClass(int columnIndex)
columnIndex
.
返回列类型columnIndex
- the first column is 0, the second is 1,...public int getRowCount()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
columnIndex
and rowIndex
.
返回指定位置的数据rowIndex
- the row whose value is to be queried, the first is zero.columnIndex
- the column whose value is to be queried, the first is zero.public java.lang.Object getValueOfClass(java.lang.Object obj, java.lang.Class columnClass)
obj
- 数据对象columnClass
- 对象类型public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
columnIndex
and
rowIndex
to aValue
.
修改指定位置数据aValue
- the new valuerowIndex
- the row whose value is to be changedcolumnIndex
- the column whose value is to be changedpublic java.lang.String toString()
toString
在类中 java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
AbstractParameterTableData
clone
在接口中 TableData
clone
在接口中 FCloneable
clone
在类中 AbstractParameterTableData
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常AbstractParameterTableData.clone()
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
readXML
在类中 AbstractParameterTableData
reader
- XML读取对象AbstractParameterTableData.readXML(XMLableReader)
public void writeXML(XMLPrintWriter writer)
XMLWriter
writeXML
在接口中 XMLWriter
writeXML
在类中 AbstractParameterTableData
writer
- XML写入对象AbstractParameterTableData.writeXML(XMLPrintWriter)
public static EmbeddedTableData embedify(TableData tableData, Calculator calculator) throws TableDataException
tableData
- 数据集calculator
- 算子TableDataException
- 数据集异常public void clear()
public static EmbeddedTableData embedify(TableData tableData, Calculator calculator, int rowCount) throws TableDataException
tableData
- 数据集calculator
- 算子rowCount
- 行数TableDataException
- 数据集异常protected static EmbeddedTableData convertEmbeddedTableData(TableData tableData, EmbeddedTableData embedTableData, Calculator calculator, int rowCount) throws TableDataException
tableData
- 数据集embedTableData
- 内置数据集容器calculator
- 算子rowCount
- 行数TableDataException
- 数据集异常public void addColumnNameAndData(java.lang.String[] columnNames, java.util.List data, java.lang.String dsName)
columnNames
- 列名data
- 数据dsName
- 转换存储过程使用的namepublic boolean equals(java.lang.Object obj)
equals
在接口中 TableData
equals
在类中 AbstractParameterTableData
AbstractParameterTableData.equals(Object)
public DataModel createDataModel(Calculator calculator)
createDataModel
在接口中 TableData
calculator
- 算子public void filterDataType(java.lang.Class<?> type)
filterDataType
在接口中 TableData
filterDataType
在类中 AbstractTableData
protected static java.lang.Class<?> classForName(java.lang.String classNameStr) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException