Class DataMatrix
- java.lang.Object
-
- io.vertx.tp.atom.modeling.element.DataMatrix
-
- All Implemented Interfaces:
Serializable
public class DataMatrix extends Object implements Serializable
每个项的矩阵信息,里面包含了几部分内容 表名:tableName 列名:columnName 属性名:attributeName 输入值:value 类型:type(用于后期设置特殊参数专用) 这里为什么使用属性名,而不是使用字段名,原因: 1. 属性名位于模型,输入的参数直接是以属性名为主,而不是字段名为主 2. 字段名只能内部使用,主要是 sourceField 以及 底层 Entity在构造表和提取相关参数时使用- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataMatrixadd(MField field, MAttribute attribute)DataMatrixadd(MField field, MAttribute attribute, Object value)voidappendConsole(StringBuilder buffer)voidappendData(StringBuilder builder, Integer keyWidth)DataMatrixcopy()static DataMatrixcreate()Set<String>getAttributes()StringgetColumn(String field)StringgetField(String column)Set<String>getKeys()Class<?>getType(String field)ObjectgetValue(String field)DataMatrixon(AoSentence sentence)DataMatrixset(String attribute, Object value)
-
-
-
Method Detail
-
create
public static DataMatrix create()
-
on
public DataMatrix on(AoSentence sentence)
-
add
public DataMatrix add(MField field, MAttribute attribute, Object value)
-
add
public DataMatrix add(MField field, MAttribute attribute)
-
set
public DataMatrix set(String attribute, Object value)
-
copy
public DataMatrix copy()
-
appendConsole
public void appendConsole(StringBuilder buffer)
-
appendData
public void appendData(StringBuilder builder, Integer keyWidth)
-
-