T - public interface UpdateService<T,ID>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
update(Update<T> update)
更新(where条件为空会抛异常,因为更新全部非常危险)
|
int |
update(Update<T> update,
boolean ignore)
更新
|
int |
updateBy(T bean,
boolean updateNotNull,
boolean optimisticLock,
Column[] filterColumns,
String where,
Object... args)
根据条件更新
|
int |
updateBy(T bean,
boolean updateNotNull,
boolean optimisticLock,
String where,
Object... args)
根据条件更新
|
int |
updateBy(T bean,
boolean updateNotNull,
boolean optimisticLock,
Wrapper wrapper)
根据条件更新
|
int |
updateBy(T bean,
boolean updateNotNull,
boolean optimisticLock,
Wrapper wrapper,
Column... filterColumns)
根据条件更新
|
<R> int |
updateBy(T bean,
boolean updateNotNull,
boolean optimisticLock,
Wrapper wrapper,
ColumnFun<T,R>... filterColumns)
根据条件更新
|
int |
updateBy(T bean,
String where,
Object... args)
根据条件更新
|
int |
updateBy(T bean,
Wrapper where)
根据条件更新
|
int |
updateByBean(T bean,
boolean updateNotNull,
boolean optimisticLock,
String where)
根据实体类字段条件更新
|
int |
updateByBean(T bean,
boolean updateNotNull,
boolean optimisticLock,
String where,
Column... filterColumns)
根据实体类字段条件更新
|
<R> int |
updateByBean(T bean,
boolean updateNotNull,
boolean optimisticLock,
String where,
ColumnFun<T,R>[] filterColumns)
根据实体类字段条件更新
|
int |
updateByBean(T bean,
String where)
根据实体类字段条件更新
|
int |
updateByBeanId(T bean)
根据实体类id条件更新
|
int |
updateByBeanId(T bean,
boolean updateNotNull,
boolean optimisticLock)
根据实体类id条件更新
|
int |
updateByBeanId(T bean,
boolean updateNotNull,
boolean optimisticLock,
Column... filterColumns)
根据实体类id条件更新
|
<R> int |
updateByBeanId(T bean,
boolean updateNotNull,
boolean optimisticLock,
ColumnFun<T,R>... filterColumns)
根据实体类id条件更新
|
int |
updateById(T bean,
ID id)
根据id条件更新
|
int |
updateById(T bean,
ID id,
boolean updateNotNull,
boolean optimisticLock)
根据id条件更新
|
int |
updateById(T bean,
ID id,
boolean updateNotNull,
boolean optimisticLock,
Column... filterColumns)
根据实体类id条件更新
|
<R> int |
updateById(T bean,
ID id,
boolean updateNotNull,
boolean optimisticLock,
ColumnFun<T,R>... filterColumns)
根据实体类id条件更新
|
int updateById(T bean, ID id, boolean updateNotNull, boolean optimisticLock)
bean - 更新的bean实体id - id条件updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁int updateById(T bean, ID id, boolean updateNotNull, boolean optimisticLock, Column... filterColumns)
bean - 更新的bean实体id - id条件updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterColumns - 过滤不需更新的字段<R> int updateById(T bean, ID id, boolean updateNotNull, boolean optimisticLock, ColumnFun<T,R>... filterColumns)
bean - 更新的bean实体id - id条件updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterColumns - 过滤不需更新的字段int updateByBeanId(T bean)
bean - 更新的bean实体int updateByBeanId(T bean, boolean updateNotNull, boolean optimisticLock)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁int updateByBeanId(T bean, boolean updateNotNull, boolean optimisticLock, Column... filterColumns)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterColumns - 过滤不需更新的字段<R> int updateByBeanId(T bean, boolean updateNotNull, boolean optimisticLock, ColumnFun<T,R>... filterColumns)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterColumns - 过滤不需更新的字段int updateBy(T bean, String where, Object... args)
bean - 更新的bean实体where - 条件字符串表达式args - 条件参数int updateBy(T bean, boolean updateNotNull, boolean optimisticLock, String where, Object... args)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁where - 条件字符串表达式args - 条件参数int updateBy(T bean, boolean updateNotNull, boolean optimisticLock, Wrapper wrapper)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁wrapper - 条件包装器int updateBy(T bean, boolean updateNotNull, boolean optimisticLock, Wrapper wrapper, Column... filterColumns)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁wrapper - 条件包装器<R> int updateBy(T bean, boolean updateNotNull, boolean optimisticLock, Wrapper wrapper, ColumnFun<T,R>... filterColumns)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁wrapper - 条件包装器int updateBy(T bean, boolean updateNotNull, boolean optimisticLock, Column[] filterColumns, String where, Object... args)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterColumns - 过滤不需更新的字段where - 条件字符串表达式args - 条件参数int updateByBean(T bean, String where)
bean - 更新的bean实体where - 条件字符串表达式int updateByBean(T bean, boolean updateNotNull, boolean optimisticLock, String where)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁where - 条件字符串表达式int updateByBean(T bean, boolean updateNotNull, boolean optimisticLock, String where, Column... filterColumns)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁where - 条件字符串表达式filterColumns - 过滤不需更新的字段<R> int updateByBean(T bean, boolean updateNotNull, boolean optimisticLock, String where, ColumnFun<T,R>[] filterColumns)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁where - 条件字符串表达式filterColumns - 过滤不需更新的字段Copyright © 2024. All rights reserved.