public interface UpdateMapper<T> extends BaseMapper<T>
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
update(Collection<T> list)
多个修改,非批量行为
|
default int |
update(Collection<T> list,
boolean allFieldForce)
多个修改,非批量行为
|
default int |
update(Collection<T> list,
Getter<T>... forceFields)
多个修改,非批量行为
|
default int |
update(Collection<T> list,
UpdateStrategy<T> updateStrategy)
多个修改,非批量行为
|
default int |
update(T entity)
实体类修改
|
default int |
update(T entity,
boolean allFieldForce)
实体类修改
|
default int |
update(T entity,
boolean allFieldForce,
Consumer<Where> where)
动态条件修改
|
default int |
update(T entity,
boolean allFieldForce,
Where where)
指定where 修改
|
default int |
update(T entity,
Consumer<Where> where)
动态条件修改
|
default int |
update(T entity,
Getter<T>... forceFields)
实体类修改
|
default int |
update(T entity,
UpdateStrategy<T> updateStrategy)
实体类修改
|
default int |
update(T entity,
Where where)
指定where 修改
|
getBasicMapper, getEntityType, getTableInfodefault int update(T entity, UpdateStrategy<T> updateStrategy)
entity - 实体类对象default int update(T entity)
entity - 实体类对象default int update(T entity, boolean allFieldForce)
entity - 实体类对象allFieldForce - 是否所有字段都修改,如果是null值,则变成NULLdefault int update(T entity, Getter<T>... forceFields)
entity - forceFields - 强制更新指定,解决需要修改为null的需求default int update(T entity, Consumer<Where> where)
entity - 实体类where - wheredefault int update(T entity, boolean allFieldForce, Consumer<Where> where)
entity - 实体类对象allFieldForce - 是否所有字段都修改,如果是null值,则变成NULLwhere - wheredefault int update(T entity, Where where)
entity - 实体类对象where - wheredefault int update(T entity, boolean allFieldForce, Where where)
entity - 实体类对象where - whereallFieldForce - 是否所有字段都修改,如果是null值,则变成NULLdefault int update(Collection<T> list, UpdateStrategy<T> updateStrategy)
list - 实体类对象ListupdateStrategy - 策略default int update(Collection<T> list)
list - 实体类对象Listdefault int update(Collection<T> list, boolean allFieldForce)
list - 实体类对象ListallFieldForce - 是否所有字段都修改,如果是null值,则变成NULLdefault int update(Collection<T> list, Getter<T>... forceFields)
list - 实体类对象ListforceFields - 强制更新指定,解决需要修改为null的需求Copyright © 2025. All rights reserved.