public class Entity extends Dict
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 方法和说明 |
|---|---|
Entity |
addFieldNames(String... fieldNames)
添加字段列表
|
Entity |
clone() |
static Entity |
create()
创建Entity
|
static Entity |
create(String tableName)
创建Entity
|
Clob |
getClob(String attr)
获得Clob类型结果
|
List<String> |
getFieldNames() |
RowId |
getRowId()
获得rowid
|
RowId |
getRowId(String attr)
获得rowid
|
String |
getStr(String attr)
获取字符串型属性值
|
String |
getTableName() |
static <T> Entity |
parse(T bean)
将PO对象转为Entity
|
<T> Entity |
parseBean(T bean)
将值对象转换为Entity
类名会被当作表名,小写第一个字母 |
Object |
put(String key,
Object value) |
Entity |
set(String attr,
Object value)
设置列
|
Entity |
setFieldNames(List<String> fieldNames)
设置字段列表
|
Entity |
setFieldNames(String... fieldNames)
设置字段列表
|
Entity |
setIgnoreNull(String attr,
Object value)
设置列,当键或值为null时忽略
|
Entity |
setTableName(String tableName)
设置表名
|
String |
toString() |
get, getBigDecimal, getBigInteger, getBool, getByte, getBytes, getChar, getDate, getDouble, getFloat, getInt, getLong, getNumber, getObj, getShort, getTime, getTimestamp, removeEqual, toBean, toBean, toBeanIgnoreCaseclear, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, valuesequals, hashCodepublic Entity()
public Entity(String tableName)
tableName - 数据表名public static Entity create()
public static <T> Entity parse(T bean)
T - bean - Bean对象public String getTableName()
public Entity setFieldNames(List<String> fieldNames)
fieldNames - 字段列表public <T> Entity parseBean(T bean)
public Entity setIgnoreNull(String attr, Object value)
DictsetIgnoreNull 在类中 Dictattr - 属性value - 值public String getStr(String attr)
BasicTypeGettergetStr 在接口中 BasicTypeGetter<String>getStr 在类中 Dictattr - 字段名public RowId getRowId()
public String toString()
toString 在类中 AbstractMap<String,Object>Copyright © 2016. All rights reserved.