public interface UpdateExecute<T> extends BoundSqlBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
UpdateExecute<T> |
allowEmptyWhere()
允许空 Where条件(注意:空 Where 条件会导致更新整个数据库)
|
int |
doUpdate()
生成 select count() 查询语句并查询总数。
|
UpdateExecute<T> |
updateByColumn(Collection<String> setColumns,
T newValue)
更新数据,map key 为列名
|
UpdateExecute<T> |
updateByColumn(Map<String,Object> newValue)
更新数据,map key 为列名
|
UpdateExecute<T> |
updateBySample(T sample)
sample 中不为空的属性作为 set 的值
|
UpdateExecute<T> |
updateTo(T newValue)
所有属性都作为 set 的值
|
getBoundSql, getBoundSqlint doUpdate()
throws SQLException
SQLExceptionUpdateExecute<T> allowEmptyWhere()
UpdateExecute<T> updateByColumn(Map<String,Object> newValue)
UpdateExecute<T> updateByColumn(Collection<String> setColumns, T newValue)
UpdateExecute<T> updateTo(T newValue)
UpdateExecute<T> updateBySample(T sample)
Copyright © 2021. All rights reserved.