public class DefaultUpdate<E,ME extends DSLUpdate<?,?>> extends Object implements DSLUpdate<E,ME>
TermTypeConditionalSupport.Accepter<T,O>, TermTypeConditionalSupport.SimpleAccepter<T,O>| 限定符和类型 | 字段和说明 |
|---|---|
protected TermTypeConditionalSupport.Accepter<ME,Object> |
accepter |
protected Set<ContextKeyValue<?>> |
contextKeyValues |
protected Set<String> |
excludes |
protected Set<String> |
includes |
protected EntityColumnMapping |
mapping |
protected UpdateOperator |
operator |
protected ObjectPropertyOperator |
propertyOperator |
protected RDBTableMetadata |
table |
protected Map<String,Object> |
tempInstance |
protected List<Term> |
terms |
| 构造器和说明 |
|---|
DefaultUpdate(RDBTableMetadata table,
UpdateOperator operator,
EntityColumnMapping mapping,
ContextKeyValue<?>... keyValues) |
| 限定符和类型 | 方法和说明 |
|---|---|
ME |
accept(Term term) |
ME |
and() |
ME |
and(String column,
String termType,
Object value) |
protected UpdateResultOperator |
doExecute() |
ME |
excludes(String... properties)
指定不更新的属性(列)
|
TermTypeConditionalSupport.Accepter<ME,Object> |
getAccepter() |
ME |
includes(String... properties)
指定只需要更新的属性(列)
|
NestConditional<ME> |
nest() |
ME |
or() |
ME |
or(String column,
String termType,
Object value) |
NestConditional<ME> |
orNest() |
ME |
set(E entity)
按实体类更新,为
null的属性会被忽略. |
ME |
set(String column,
Object value)
设置属性(列)值
|
ME |
setNull(String column)
设置属性(列)的值为
null |
QueryParam |
toQueryParam()
将更新条件转为查询条件,通常用于根据更新来查询可能被更新的数据
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexcludes, excludes, includes, includes, set, set, setNull, setNull$like, $like, $like, $like$, $like$, $like$, accept, accept, accept, and, and, and, and, and, and, between, between, between, gt, gt, gt, gte, gte, gte, in, in, in, in, in, in, in, is, is, is, isEmpty, isEmpty, isNull, isNull, like, like, like, like$, like$, like$, lt, lt, lt, lte, lte, lte, nest, not, not, not, notBetween, notBetween, notBetween, notEmpty, notEmpty, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notLike, notLike, notLike, notNull, notNull, or, or, or, or, or, or, where, where, where, where, whereprotected TermTypeConditionalSupport.Accepter<ME extends DSLUpdate<?,?>,Object> accepter
protected RDBTableMetadata table
protected UpdateOperator operator
protected ObjectPropertyOperator propertyOperator
protected EntityColumnMapping mapping
protected Set<ContextKeyValue<?>> contextKeyValues
public DefaultUpdate(RDBTableMetadata table, UpdateOperator operator, EntityColumnMapping mapping, ContextKeyValue<?>... keyValues)
public QueryParam toQueryParam()
DSLUpdatetoQueryParam 在接口中 DSLUpdate<E,ME extends DSLUpdate<?,?>>protected UpdateResultOperator doExecute()
public NestConditional<ME> nest()
nest 在接口中 Conditional<ME extends DSLUpdate<?,?>>public NestConditional<ME> orNest()
orNest 在接口中 Conditional<ME extends DSLUpdate<?,?>>public ME and()
and 在接口中 Conditional<ME extends DSLUpdate<?,?>>public ME or()
or 在接口中 Conditional<ME extends DSLUpdate<?,?>>public ME and(String column, String termType, Object value)
and 在接口中 Conditional<ME extends DSLUpdate<?,?>>public ME or(String column, String termType, Object value)
or 在接口中 Conditional<ME extends DSLUpdate<?,?>>public TermTypeConditionalSupport.Accepter<ME,Object> getAccepter()
getAccepter 在接口中 Conditional<ME extends DSLUpdate<?,?>>Copyright © 2021. All rights reserved.