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,
String[] filterFields,
String where,
Object... args)
根据条件更新
|
int |
updateBy(T bean,
boolean updateNotNull,
boolean optimisticLock,
String[] filterFields,
Wrapper where)
根据条件更新
|
int |
updateBy(T bean,
boolean updateNotNull,
boolean optimisticLock,
String where,
Object... args)
根据条件更新 过时,将在1.6.0版本中移除,请尽快使用新方法替代
|
int |
updateBy(T bean,
boolean updateNotNull,
boolean optimisticLock,
Wrapper where)
根据条件更新
|
int |
updateBy(T bean,
String where,
Object... args)
根据条件更新
|
int |
updateBy(T bean,
Wrapper where)
根据条件更新 过时,将在1.6.0版本中移除,请尽快使用新方法替代
|
int |
updateByBean(T bean,
boolean updateNotNull,
boolean optimisticLock,
String where)
根据实体类字段条件更新
|
int |
updateByBean(T bean,
boolean updateNotNull,
boolean optimisticLock,
String[] filterFields,
String where)
根据实体类字段条件更新
|
int |
updateByBean(T bean,
String where)
根据实体类字段条件更新
|
int |
updateByBeanCondition(T bean,
boolean updateNotNull,
boolean optimisticLock,
String where)
根据实体类字段条件更新 过时,将在1.6.0版本中移除,请尽快使用新方法替代
|
int |
updateByBeanCondition(T bean,
boolean updateNotNull,
boolean optimisticLock,
String[] filterFields,
String where)
根据实体类字段条件更新 过时,将在1.6.0版本中移除,请尽快使用新方法替代
|
int |
updateByBeanCondition(T bean,
String where)
根据实体类字段条件更新 过时,将在1.6.0版本中移除,请尽快使用新方法替代
|
int |
updateByBeanId(T bean)
根据实体类id条件更新
|
int |
updateByBeanId(T bean,
boolean updateNotNull,
boolean optimisticLock)
根据实体类id条件更新
|
int |
updateByBeanId(T bean,
boolean updateNotNull,
boolean optimisticLock,
String[] filterFields)
根据实体类id条件更新
|
int |
updateByCondition(T bean,
boolean updateNotNull,
boolean optimisticLock,
String[] filterFields,
String where,
Object... args)
根据条件更新 过时,将在1.6.0版本中移除,请尽快使用新方法替代
|
int |
updateByCondition(T bean,
boolean updateNotNull,
boolean optimisticLock,
String[] filterFields,
Wrapper where)
根据条件更新 过时,将在1.6.0版本中移除,请尽快使用新方法替代
|
int |
updateByCondition(T bean,
boolean updateNotNull,
boolean optimisticLock,
String where,
Object... args)
根据条件更新
|
int |
updateByCondition(T bean,
boolean updateNotNull,
boolean optimisticLock,
Wrapper where)
根据条件更新 过时,将在1.6.0版本中移除,请尽快使用新方法替代
|
int |
updateByCondition(T bean,
String where,
Object... args)
已过时。
|
int |
updateByCondition(T bean,
Wrapper where)
根据条件更新
|
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,
String[] filterFields)
根据实体类id条件更新
|
int updateById(T bean, ID id, boolean updateNotNull, boolean optimisticLock)
bean - 更新的bean实体id - id条件updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁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, String[] filterFields)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterFields - 过滤不需更新的字段int updateById(T bean, ID id, boolean updateNotNull, boolean optimisticLock, String[] filterFields)
bean - 更新的bean实体id - id条件updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterFields - 过滤不需更新的字段@Deprecated int updateByCondition(T bean, String where, Object... args)
bean - 更新的bean实体where - 条件字符串表达式args - 条件参数int updateBy(T bean, String where, Object... args)
bean - 更新的bean实体where - 条件字符串表达式args - 条件参数int updateByCondition(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, String where, Object... args)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁where - 条件字符串表达式args - 条件参数int updateByCondition(T bean, Wrapper where)
bean - 更新的bean实体where - 条件包装器int updateBy(T bean, Wrapper where)
bean - 更新的bean实体where - 条件包装器int updateByCondition(T bean, boolean updateNotNull, boolean optimisticLock, Wrapper where)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁where - 条件包装器int updateBy(T bean, boolean updateNotNull, boolean optimisticLock, Wrapper where)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁where - 条件包装器int updateByCondition(T bean, boolean updateNotNull, boolean optimisticLock, String[] filterFields, String where, Object... args)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterFields - 过滤不需更新的字段where - 条件字符串表达式args - 条件参数int updateBy(T bean, boolean updateNotNull, boolean optimisticLock, String[] filterFields, String where, Object... args)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterFields - 过滤不需更新的字段where - 条件字符串表达式args - 条件参数int updateByCondition(T bean, boolean updateNotNull, boolean optimisticLock, String[] filterFields, Wrapper where)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterFields - 过滤不需更新的字段where - 条件包装器int updateBy(T bean, boolean updateNotNull, boolean optimisticLock, String[] filterFields, Wrapper where)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterFields - 过滤不需更新的字段where - 条件包装器int updateByBeanCondition(T bean, String where)
bean - 更新的bean实体where - 条件字符串表达式int updateByBean(T bean, String where)
bean - 更新的bean实体where - 条件字符串表达式int updateByBeanCondition(T bean, boolean updateNotNull, boolean optimisticLock, String where)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁where - 条件字符串表达式int updateByBean(T bean, boolean updateNotNull, boolean optimisticLock, String where)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁where - 条件字符串表达式int updateByBeanCondition(T bean, boolean updateNotNull, boolean optimisticLock, String[] filterFields, String where)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterFields - 过滤不需更新的字段where - 条件字符串表达式int updateByBean(T bean, boolean updateNotNull, boolean optimisticLock, String[] filterFields, String where)
bean - 更新的bean实体updateNotNull - 是否仅更新不为null的字段optimisticLock - 是否使用乐观锁filterFields - 过滤不需更新的字段where - 条件字符串表达式Copyright © 2022. All rights reserved.