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