类 UpdateWrapper<T>
java.lang.Object
com.baomidou.mybatisplus.core.conditions.Wrapper<T>
com.baomidou.mybatisplus.core.conditions.AbstractWrapper<T,String,UpdateWrapper<T>>
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper<T>
- 所有已实现的接口:
Compare<UpdateWrapper<T>,String>,Func<UpdateWrapper<T>,String>,Join<UpdateWrapper<T>>,Nested<UpdateWrapper<T>,UpdateWrapper<T>>,ISqlSegment,Update<UpdateWrapper<T>,String>,Serializable
public class UpdateWrapper<T> extends AbstractWrapper<T,String,UpdateWrapper<T>> implements Update<UpdateWrapper<T>,String>
Update 条件封装
- 从以下版本开始:
- 2018-05-30
- 作者:
- hubin miemie HCL
- 另请参阅:
- 序列化表格
-
字段概要
从类继承的字段 com.baomidou.mybatisplus.core.conditions.AbstractWrapper
expression, lastSql, paramNameSeq, paramNameValuePairs, sqlComment, sqlFirst, typedThis -
构造器概要
构造器 构造器 说明 UpdateWrapper()UpdateWrapper(T entity) -
方法概要
修饰符和类型 方法 说明 voidclear()条件清空StringgetSqlSet()获取 更新 SQL 的 SET 片段protected UpdateWrapper<T>instance()子类返回一个自己的新对象LambdaUpdateWrapper<T>lambda()返回一个支持 lambda 函数写法的 wrapperUpdateWrapper<T>set(boolean condition, String column, Object val)设置 更新 SQL 的 SET 片段UpdateWrapper<T>setSql(boolean condition, String sql)设置 更新 SQL 的 SET 片段从类继承的方法 com.baomidou.mybatisplus.core.conditions.AbstractWrapper
addCondition, addNestedCondition, allEq, allEq, and, and, apply, between, clone, columnsToString, columnToString, comment, doIt, eq, exists, first, formatSql, formatSqlIfNeed, func, ge, getEntity, getEntityClass, getExpression, getParamNameValuePairs, getSqlComment, getSqlFirst, getSqlSegment, groupBy, gt, having, in, initNeed, inSql, isNotNull, isNull, last, le, like, likeLeft, likeRight, likeValue, lt, ne, nested, not, not, notBetween, notExists, notIn, notInSql, notLike, or, or, orderBy, setEntity, setEntityClass从类继承的方法 com.baomidou.mybatisplus.core.conditions.Wrapper
getCustomSqlSegment, getSqlSelect, getTargetSql, isEmptyOfEntity, isEmptyOfNormal, isEmptyOfWhere, nonEmptyOfEntity, nonEmptyOfNormal, nonEmptyOfWhere从类继承的方法 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.baomidou.mybatisplus.core.conditions.interfaces.Compare
allEq, allEq, allEq, allEq, between, eq, ge, gt, le, like, likeLeft, likeRight, lt, ne, notBetween, notLike从接口继承的方法 com.baomidou.mybatisplus.core.conditions.interfaces.Func
func, groupBy, groupBy, having, in, in, in, inSql, isNotNull, isNull, notIn, notIn, notIn, notInSql, orderByAsc, orderByAsc, orderByAsc, orderByDesc, orderByDesc, orderByDesc
-
构造器详细资料
-
UpdateWrapper
public UpdateWrapper() -
UpdateWrapper
-
-
方法详细资料
-
getSqlSet
从接口复制的说明:Update获取 更新 SQL 的 SET 片段 -
set
从接口复制的说明:Update设置 更新 SQL 的 SET 片段- 指定者:
set在接口中Update<UpdateWrapper<T>,String>- 参数:
condition- 是否加入 setcolumn- 字段val- 值- 返回:
- children
-
setSql
从接口复制的说明:Update设置 更新 SQL 的 SET 片段- 指定者:
setSql在接口中Update<UpdateWrapper<T>,String>sql- set sql- 返回:
- children
-
lambda
返回一个支持 lambda 函数写法的 wrapper -
instance
从类复制的说明:AbstractWrapper子类返回一个自己的新对象- 指定者:
instance在类中AbstractWrapper<T,String,UpdateWrapper<T>>
-
clear
public void clear()从类复制的说明:Wrapper条件清空- 覆盖:
clear在类中AbstractWrapper<T,String,UpdateWrapper<T>>
-