public class LambdaUpdateWrapper<T> extends AbstractCompareQuery<T,LambdaOperations.LambdaUpdate<T>> implements LambdaOperations.LambdaUpdate<T>
queryParam, queryTemplatedbType| 构造器和说明 |
|---|
LambdaUpdateWrapper(Class<T> exampleType,
JdbcTemplate jdbcTemplate) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
delete()
根据 Lambda 构造器的条件执行删除。
|
protected LambdaOperations.LambdaUpdate<T> |
getSelf() |
int |
updateCount()
生成 select count() 查询语句并查询总数。
|
long |
updateLargeCount()
生成 select count() 查询语句并查询总数。
|
int |
updateTo(T newValue)
根据 Lambda 构造器的条件作为筛选条件,将它们更新为新的状态。
|
int |
updateTo(T newValue,
List<net.hasor.utils.reflect.SFunction<T>> columns)
查询指定列。
|
int |
updateTo(T newValue,
Predicate<FieldInfo> tester)
按条件过滤查询指定列。
|
int |
updateTo(T newValue,
String... columns)
查询指定列。
|
addCondition, and, apply, between, columnName, conditionName, eq, format, formatSegment, ge, getOriginalBoundSql, gt, in, isNotNull, isNull, le, like, likeLeft, likeRight, lockCondition, lt, ne, nested, notBetween, notIn, notLike, notLikeLeft, notLikeRight, ordialect, exampleType, getBoundSql, getBoundSql, getJdbcOperations, getRowMapper, pageInfo, query, query, query, queryForCount, queryForLargeCount, queryForList, queryForMap, queryForMapList, queryForObject, wrapperTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, and, apply, between, eq, ge, gt, in, isNotNull, isNull, le, like, likeLeft, likeRight, lt, ne, nested, notBetween, notIn, notLike, notLikeLeft, notLikeRight, or, orexampleType, updateTogetBoundSql, getBoundSqlpublic LambdaUpdateWrapper(Class<T> exampleType, JdbcTemplate jdbcTemplate)
public int delete()
throws SQLException
UpdateExecutedelete 在接口中 UpdateExecute<T>SQLExceptionpublic int updateCount()
throws SQLException
UpdateExecuteupdateCount 在接口中 UpdateExecute<T>SQLExceptionpublic long updateLargeCount()
throws SQLException
UpdateExecuteupdateLargeCount 在接口中 UpdateExecute<T>SQLExceptionpublic int updateTo(T newValue) throws SQLException
UpdateExecuteupdateTo 在接口中 UpdateExecute<T>SQLExceptionpublic int updateTo(T newValue, String... columns)
UpdateExecuteupdateTo 在接口中 UpdateExecute<T>public int updateTo(T newValue, List<net.hasor.utils.reflect.SFunction<T>> columns)
UpdateExecuteupdateTo 在接口中 UpdateExecute<T>public int updateTo(T newValue, Predicate<FieldInfo> tester)
UpdateExecuteupdateTo 在接口中 UpdateExecute<T>protected LambdaOperations.LambdaUpdate<T> getSelf()
getSelf 在类中 AbstractCompareQuery<T,LambdaOperations.LambdaUpdate<T>>Copyright © 2020–2021. All rights reserved.