public class Row extends LinkedHashMap<String,Object> implements UpdateWrapper<Row>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 字段和说明 |
|---|---|
private Set<RowKey> |
primaryKeys |
| 构造器和说明 |
|---|
Row() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
get(String key,
Object defaultValue) |
BigDecimal |
getBigDecimal(String key) |
BigDecimal |
getBigDecimal(String key,
BigDecimal defaultValue) |
BigInteger |
getBigInteger(String key) |
BigInteger |
getBigInteger(String key,
BigInteger defaultValue) |
Boolean |
getBoolean(String key) |
Boolean |
getBoolean(String key,
Boolean defaultValue) |
Byte |
getByte(String key) |
byte[] |
getBytes(String key) |
Date |
getDate(String key) |
Date |
getDate(String key,
Date defaultValue) |
Double |
getDouble(String key) |
Double |
getDouble(String key,
Double defaultValue) |
Float |
getFloat(String key) |
Float |
getFloat(String key,
Float defaultValue) |
Object |
getIgnoreCase(String key) |
Object |
getIgnoreCase(String key,
Object defaultValue) |
Set<String> |
getInsertAttrs() |
Integer |
getInt(String key) |
Integer |
getInt(String key,
Integer defaultValue) |
LocalDateTime |
getLocalDateTime(String key) |
LocalDateTime |
getLocalDateTime(String key,
LocalDateTime defaultValue) |
Long |
getLong(String key) |
Long |
getLong(String key,
Long defaultValue) |
(专用程序包) Set<String> |
getModifyAttrs() |
Set<RowKey> |
getPrimaryKeys() |
(专用程序包) Map<String,RawValue> |
getRawValueMap() |
Short |
getShort(String key) |
Short |
getShort(String key,
Short defaultValue) |
String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
Time |
getTime(String key) |
Time |
getTime(String key,
Time defaultValue) |
Timestamp |
getTimestamp(String key) |
Timestamp |
getTimestamp(String key,
Timestamp defaultValue) |
Map<String,Object> |
getUpdates() |
private boolean |
isPk(String attr) |
void |
keep(Set<String> columns) |
void |
keep(String... columns) |
(专用程序包) Object[] |
obtainAllModifyValues() |
Object[] |
obtainInsertValues() |
(专用程序包) Object[] |
obtainModifyValuesWithoutPk()
获取修改的值,值需要保持顺序,返回的内容不包含主键的值
|
(专用程序包) RowKey[] |
obtainsPrimaryKeys() |
(专用程序包) String[] |
obtainsPrimaryKeyStrings() |
(专用程序包) Object[] |
obtainsPrimaryValues() |
static Row |
of(String key,
Object value) |
static Row |
ofKey(RowKey... rowKeys) |
static Row |
ofKey(RowKey[] rowKeys,
Object[] value) |
static Row |
ofKey(RowKey rowKey,
Object value) |
static Row |
ofKey(String primaryKey,
Object value) |
Object |
put(String key,
Object value) |
Object |
remove(Object key) |
<T> Row |
set(LambdaGetter<T> property,
Object value)
设置字段对应参数值。
|
<T> Row |
set(LambdaGetter<T> property,
Object value,
boolean isEffective)
设置字段对应参数值。
|
<T> Row |
set(LambdaGetter<T> property,
Object value,
BooleanSupplier isEffective)
设置字段对应参数值。
|
<T,V> Row |
set(LambdaGetter<T> property,
V value,
Predicate<V> isEffective)
设置字段对应参数值。
|
Row |
set(QueryColumn property,
Object value)
设置字段对应参数值。
|
Row |
set(QueryColumn property,
Object value,
boolean isEffective)
设置字段对应参数值。
|
Row |
set(QueryColumn property,
Object value,
BooleanSupplier isEffective)
设置字段对应参数值。
|
<V> Row |
set(QueryColumn property,
V value,
Predicate<V> isEffective)
设置字段对应参数值。
|
Row |
set(String property,
Object value)
设置字段对应参数值。
|
Row |
set(String property,
Object value,
boolean isEffective)
设置字段对应参数值。
|
Row |
set(String property,
Object value,
BooleanSupplier isEffective)
设置字段对应参数值。
|
<V> Row |
set(String property,
V value,
Predicate<V> isEffective)
设置字段对应参数值。
|
void |
setPrimaryKeys(Set<RowKey> primaryKeys) |
<T> Row |
setRaw(LambdaGetter<T> property,
Object value)
设置字段对应原生值。
|
<T> Row |
setRaw(LambdaGetter<T> property,
Object value,
boolean isEffective)
设置字段对应原生值。
|
<T> Row |
setRaw(LambdaGetter<T> property,
Object value,
BooleanSupplier isEffective)
设置字段对应原生值。
|
<T,V> Row |
setRaw(LambdaGetter<T> property,
V value,
Predicate<V> isEffective)
设置字段对应原生值。
|
Row |
setRaw(QueryColumn property,
Object value)
设置字段对应原生值。
|
Row |
setRaw(QueryColumn property,
Object value,
boolean isEffective)
设置字段对应原生值。
|
Row |
setRaw(QueryColumn property,
Object value,
BooleanSupplier isEffective)
设置字段对应原生值。
|
<V> Row |
setRaw(QueryColumn property,
V value,
Predicate<V> isEffective)
设置字段对应原生值。
|
Row |
setRaw(String property,
Object value)
设置字段对应原生值。
|
Row |
setRaw(String property,
Object value,
boolean isEffective)
设置字段对应原生值。
|
Row |
setRaw(String property,
Object value,
BooleanSupplier isEffective)
设置字段对应原生值。
|
<V> Row |
setRaw(String property,
V value,
Predicate<V> isEffective)
设置字段对应原生值。
|
Map<String,Object> |
toCamelKeysMap() |
<T> T |
toEntity(Class<T> entityClass) |
<T> T |
toObject(Class<T> objectClass) |
Map<String,Object> |
toUnderlineKeysMap() |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, sizeequals, hashCode, toStringof, of, toEntitycompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, sizeprivate Set<RowKey> primaryKeys
public Row()
public Map<String,Object> getUpdates()
getUpdates 在接口中 UpdateWrapper<Row>public Row set(String property, Object value, boolean isEffective)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>set 在接口中 UpdateWrapper<Row>property - 字段名value - 参数值isEffective - 是否生效public Row set(QueryColumn property, Object value, boolean isEffective)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>set 在接口中 UpdateWrapper<Row>property - 字段名value - 参数值isEffective - 是否生效public <T> Row set(LambdaGetter<T> property, Object value, boolean isEffective)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>set 在接口中 UpdateWrapper<Row>property - 字段名value - 参数值isEffective - 是否生效public Row setRaw(String property, Object value, boolean isEffective)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>setRaw 在接口中 UpdateWrapper<Row>property - 字段名value - 原生值isEffective - 是否生效public Row setRaw(QueryColumn property, Object value, boolean isEffective)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>setRaw 在接口中 UpdateWrapper<Row>property - 字段名value - 原生值isEffective - 是否生效public <T> Row setRaw(LambdaGetter<T> property, Object value, boolean isEffective)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>setRaw 在接口中 UpdateWrapper<Row>property - 字段名value - 原生值isEffective - 是否生效public Row set(String property, Object value)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 参数值public Row set(String property, Object value, BooleanSupplier isEffective)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 参数值isEffective - 是否生效public <V> Row set(String property, V value, Predicate<V> isEffective)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 参数值isEffective - 是否生效public Row set(QueryColumn property, Object value)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 参数值public Row set(QueryColumn property, Object value, BooleanSupplier isEffective)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 参数值isEffective - 是否生效public <V> Row set(QueryColumn property, V value, Predicate<V> isEffective)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 参数值isEffective - 是否生效public <T> Row set(LambdaGetter<T> property, Object value)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 参数值public <T> Row set(LambdaGetter<T> property, Object value, BooleanSupplier isEffective)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 参数值isEffective - 是否生效public <T,V> Row set(LambdaGetter<T> property, V value, Predicate<V> isEffective)
PropertySetterset 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 参数值isEffective - 是否生效public Row setRaw(String property, Object value)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 原生值public Row setRaw(String property, Object value, BooleanSupplier isEffective)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 原生值isEffective - 是否生效public <V> Row setRaw(String property, V value, Predicate<V> isEffective)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 原生值isEffective - 是否生效public Row setRaw(QueryColumn property, Object value)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 原生值public Row setRaw(QueryColumn property, Object value, BooleanSupplier isEffective)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 原生值isEffective - 是否生效public <V> Row setRaw(QueryColumn property, V value, Predicate<V> isEffective)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 原生值isEffective - 是否生效public <T> Row setRaw(LambdaGetter<T> property, Object value)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 原生值public <T> Row setRaw(LambdaGetter<T> property, Object value, BooleanSupplier isEffective)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 原生值isEffective - 是否生效public <T,V> Row setRaw(LambdaGetter<T> property, V value, Predicate<V> isEffective)
PropertySettersetRaw 在接口中 PropertySetter<UpdateWrapper<Row>>property - 字段名value - 原生值isEffective - 是否生效public Object getIgnoreCase(String key)
public Object getIgnoreCase(String key, Object defaultValue)
public BigInteger getBigInteger(String key)
public BigInteger getBigInteger(String key, BigInteger defaultValue)
public BigDecimal getBigDecimal(String key)
public BigDecimal getBigDecimal(String key, BigDecimal defaultValue)
public Boolean getBoolean(String key)
public Boolean getBoolean(String key, Boolean defaultValue)
public LocalDateTime getLocalDateTime(String key)
public LocalDateTime getLocalDateTime(String key, LocalDateTime defaultValue)
public Timestamp getTimestamp(String key)
public Timestamp getTimestamp(String key, Timestamp defaultValue)
public Map<String,Object> toCamelKeysMap()
public Map<String,Object> toUnderlineKeysMap()
public Set<RowKey> getPrimaryKeys()
public void setPrimaryKeys(Set<RowKey> primaryKeys)
Set<String> getModifyAttrs()
Map<String,RawValue> getRawValueMap()
Object[] obtainModifyValuesWithoutPk()
String[] obtainsPrimaryKeyStrings()
RowKey[] obtainsPrimaryKeys()
Object[] obtainsPrimaryValues()
Object[] obtainAllModifyValues()
public Object[] obtainInsertValues()
public Set<String> getInsertAttrs()
Copyright © 2023. All rights reserved.