public class DataMatrix extends Object implements Serializable
每个项的矩阵信息,里面包含了几部分内容 表名:tableName 列名:columnName 属性名:attributeName 输入值:value 类型:type(用于后期设置特殊参数专用) 这里为什么使用属性名,而不是使用字段名,原因: 1. 属性名位于模型,输入的参数直接是以属性名为主,而不是字段名为主 2. 字段名只能内部使用,主要是 sourceField 以及 底层 Entity在构造表和提取相关参数时使用
| Modifier and Type | Method and Description |
|---|---|
DataMatrix |
add(MField field,
MAttribute attribute) |
DataMatrix |
add(MField field,
MAttribute attribute,
Object value) |
void |
appendConsole(StringBuilder buffer) |
void |
appendData(StringBuilder builder,
Integer keyWidth) |
DataMatrix |
copy() |
static DataMatrix |
create() |
Set<String> |
getAttributes() |
String |
getColumn(String field) |
String |
getField(String column) |
Set<String> |
getKeys() |
Class<?> |
getType(String field) |
Object |
getValue(String field) |
DataMatrix |
on(AoSentence sentence) |
DataMatrix |
set(String attribute,
Object value) |
public static DataMatrix create()
public DataMatrix on(AoSentence sentence)
public DataMatrix add(MField field, MAttribute attribute, Object value)
public DataMatrix add(MField field, MAttribute attribute)
public DataMatrix set(String attribute, Object value)
public DataMatrix copy()
public void appendConsole(StringBuilder buffer)
public void appendData(StringBuilder builder, Integer keyWidth)
Copyright © 2020. All rights reserved.