Package com.github.yulichang.wrapper
Class UpdateJoinWrapper<T>
java.lang.Object
com.baomidou.mybatisplus.core.conditions.Wrapper<T>
com.github.yulichang.wrapper.JoinAbstractWrapper<T,Children>
com.github.yulichang.wrapper.JoinAbstractLambdaWrapper<T,UpdateJoinWrapper<T>>
com.github.yulichang.wrapper.UpdateJoinWrapper<T>
- All Implemented Interfaces:
com.baomidou.mybatisplus.core.conditions.ISqlSegment,MPJBaseJoin<T>,StringJoin<UpdateJoinWrapper<T>,,T> Ext<UpdateJoinWrapper<T>>,Compare<UpdateJoinWrapper<T>>,CompareIfExists<UpdateJoinWrapper<T>>,CompareStr<UpdateJoinWrapper<T>,,String> CompareStrIfExists<UpdateJoinWrapper<T>,,String> CompareWrapper<UpdateJoinWrapper<T>>,Func<UpdateJoinWrapper<T>>,FuncStr<UpdateJoinWrapper<T>,,String> FuncWrapper<UpdateJoinWrapper<T>>,Join<UpdateJoinWrapper<T>>,Nested<UpdateJoinWrapper<T>,,UpdateJoinWrapper<T>> OnCompare<UpdateJoinWrapper<T>>,QueryJoin<UpdateJoinWrapper<T>,,T> Update<UpdateJoinWrapper<T>>,UpdateChain<T>,Serializable
public class UpdateJoinWrapper<T>
extends JoinAbstractLambdaWrapper<T,UpdateJoinWrapper<T>>
implements Update<UpdateJoinWrapper<T>>, UpdateChain<T>
- Since:
- 1.4.5
- Author:
- yulichang
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.github.yulichang.wrapper.JoinAbstractLambdaWrapper
dynamicTableName, from, hasAlias, keyWord, logicDelType, logicSql, pageByMain, pageInfo, resultMap, resultMapCollection, subLogicSql, tableFunc, tableIndexFields inherited from class com.github.yulichang.wrapper.JoinAbstractWrapper
alias, checkSqlInjection, expression, ifExists, index, isMain, isOn, joinClass, lastSql, onWrappers, paramAlias, paramNameSeq, paramNameValuePairs, sqlComment, sqlFirst, subTableAlias, tableList, tableName, typedThis -
Constructor Summary
ConstructorsModifierConstructorDescriptionUpdateJoinWrapper(Class<T> clazz) 推荐使用此构造方法UpdateJoinWrapper(Class<T> clazz, String alias) UpdateJoinWrapper(T entity) protectedUpdateJoinWrapper(T entity, Class<T> entityClass, AtomicInteger paramNameSeq, Map<String, Object> paramNameValuePairs, com.baomidou.mybatisplus.core.conditions.segments.MergeSegments mergeSegments, com.baomidou.mybatisplus.core.conditions.SharedString lastSql, com.baomidou.mybatisplus.core.conditions.SharedString sqlComment, com.baomidou.mybatisplus.core.conditions.SharedString sqlFirst, TableList tableList, Integer index, String keyWord, Class<?> joinClass, String tableName) 不建议直接 new 该实例,使用 JoinWrappers.update(User.class)UpdateJoinWrapper(T entity, String alias) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()获取 更新 SQL 的 SET 片段protected UpdateJoinWrapper<T>instance()用于生成嵌套 sqlprotected UpdateJoinWrapper<T>protected UpdateJoinWrapper<T><R,V> UpdateJoinWrapper<T> set(boolean condition, com.baomidou.mybatisplus.core.toolkit.support.SFunction<R, ?> column, com.baomidou.mybatisplus.core.toolkit.support.SFunction<V, ?> val, String mapping) <R> UpdateJoinWrapper<T>set(boolean condition, com.baomidou.mybatisplus.core.toolkit.support.SFunction<R, ?> column, Object val, String mapping) 设置 更新 SQL 的 SET 片段setApply(boolean condition, String applySql, MFunction<FuncConsumer> consumerFunction, Object... values) <R> UpdateJoinWrapper<T>setDecrBy(boolean condition, com.baomidou.mybatisplus.core.toolkit.support.SFunction<R, ?> column, Number val) <R> UpdateJoinWrapper<T>setIncrBy(boolean condition, com.baomidou.mybatisplus.core.toolkit.support.SFunction<R, ?> column, Number val) 设置 更新 SQL 的 SET 片段setUpdateEntity(Object... entity) 设置更新的实体set语句部分, 更新非空字段setUpdateEntityAndNull(Object... entity) 设置更新的实体set语句部分, 更新非空字段Methods inherited from class com.github.yulichang.wrapper.JoinAbstractLambdaWrapper
checkJoinTable, columnsToString, columnToString, disableLogicDel, disableSubLogicDel, enableLogicDel, enableSubLogicDel, from, getCache, getDefault, getFrom, getLogicSql, getPageInfo, getSubLogicSql, getTableName, getTableNameEnc, initNeed, isUseAnnotationOrderBy, join, join, logicDelToOn, logicDelToWhere, pageByMain, pageByMain, setAlias, setTableNameMethods inherited from class com.github.yulichang.wrapper.JoinAbstractWrapper
addCondition, addCondition, addCondition, addCondition, addNestedCondition, allEq, allEq, allEqStr, allEqStr, and, and, appendSqlSegments, apply, applyFunc, applyFunc, around, between, between, checkSqlInjection, clone, columnSqlInjectFilter, columnsToString, columnsToString, columnsToString, columnToSqlSegment, columnToSqlSegment, columnToSqlSegmentS, columnToString, comment, eq, eq, eq, eq, eqSql, eqSql, exists, exists, first, formatParam, formatSqlMaybeWithParam, fromInstance, func, ge, ge, ge, ge, geSql, geSql, getEntity, getEntityClass, getExpression, getParamAlias, getSqlComment, getSqlFirst, getSqlSegment, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupByStr, gt, gt, gt, gt, gtSql, gtSql, having, in, in, in, in, in, inExpression, inExpression, inSql, inSql, isNotNull, isNotNull, isNotNull, isNull, isNull, isNull, last, le, le, le, le, leSql, leSql, like, like, likeLeft, likeLeft, likeRight, likeRight, likeValue, likeValue, lt, lt, lt, lt, ltSql, ltSql, maybeDo, ne, ne, ne, ne, nested, not, not, notBetween, notBetween, notExists, notExists, notIn, notIn, notIn, notIn, notIn, notInSql, notInSql, notLike, notLike, notLikeLeft, notLikeLeft, notLikeRight, notLikeRight, or, or, orderBy, orderBy, orderBy, orderBy, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByStr, setEntity, setEntityClass, setIfExists, setIfExists, setParamAlias, subInstance, subInstanceMethods inherited from class com.baomidou.mybatisplus.core.conditions.Wrapper
getCustomSqlSegment, getSqlSelect, getTargetSql, isEmptyOfEntity, isEmptyOfNormal, isEmptyOfWhere, isNonEmptyOfEntity, isNonEmptyOfNormal, isNonEmptyOfWhere, nonEmptyOfEntity, nonEmptyOfNormal, nonEmptyOfWhereMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.yulichang.wrapper.interfaces.Compare
allEq, allEq, allEq, allEq, between, between, between, eq, eq, eq, ge, ge, ge, gt, gt, gt, le, le, le, like, like, like, likeLeft, likeLeft, likeLeft, likeRight, likeRight, likeRight, lt, lt, lt, ne, ne, ne, notBetween, notBetween, notBetween, notLike, notLike, notLike, notLikeLeft, notLikeLeft, notLikeLeft, notLikeRight, notLikeRight, notLikeRightMethods inherited from interface com.github.yulichang.wrapper.interfaces.CompareIfExists
eqIfExists, eqIfExists, geIfExists, geIfExists, getIfExists, gtIfExists, gtIfExists, leIfExists, leIfExists, likeIfExists, likeIfExists, likeLeftIfExists, likeLeftIfExists, likeRightIfExists, likeRightIfExists, ltIfExists, ltIfExists, neIfExists, neIfExists, notLikeIfExists, notLikeIfExists, notLikeLeftIfExists, notLikeLeftIfExists, notLikeRightIfExists, notLikeRightIfExistsMethods inherited from interface com.github.yulichang.wrapper.interfaces.CompareStr
allEqStr, allEqStr, allEqStr, allEqStr, between, eq, ge, gt, le, like, likeLeft, likeRight, lt, ne, notBetween, notLike, notLikeLeft, notLikeRightMethods inherited from interface com.github.yulichang.wrapper.interfaces.CompareStrIfExists
eqIfExists, geIfExists, getIfExists, gtIfExists, leIfExists, likeIfExists, likeLeftIfExists, likeRightIfExists, ltIfExists, neIfExists, notLikeIfExists, notLikeLeftIfExists, notLikeRightIfExistsMethods inherited from interface com.github.yulichang.wrapper.interfaces.CompareWrapper
eq, eq, eq, ge, ge, ge, gt, gt, gt, le, le, le, lt, lt, lt, ne, ne, neMethods inherited from interface com.github.yulichang.wrapper.interfaces.Func
eqSql, eqSql, eqSql, func, func, geSql, geSql, geSql, groupBy, groupBy, groupBy, groupBy, groupBy, gtSql, gtSql, gtSql, having, in, in, in, in, in, in, inSql, inSql, inSql, isNotNull, isNotNull, isNotNull, isNull, isNull, isNull, leSql, leSql, leSql, ltSql, ltSql, ltSql, notIn, notIn, notIn, notIn, notIn, notIn, notInSql, notInSql, notInSql, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDescMethods inherited from interface com.github.yulichang.wrapper.interfaces.FuncStr
eqSql, geSql, groupBy, groupBy, groupByStr, gtSql, in, in, inSql, isNotNull, isNull, leSql, ltSql, notIn, notIn, notInSql, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAscStr, orderByAscStr, orderByDesc, orderByDesc, orderByDesc, orderByDesc, orderByDescStr, orderByDescStrMethods inherited from interface com.github.yulichang.wrapper.interfaces.FuncWrapper
exists, in, in, in, isNotNull, isNotNull, isNotNull, isNull, isNull, isNull, notExists, notIn, notIn, notInMethods inherited from interface com.github.yulichang.wrapper.interfaces.Join
apply, around, comment, exists, first, last, notExists, orMethods inherited from interface com.github.yulichang.interfaces.MPJBaseJoin
getDeleteLogicSql, getDeleteSql, getUnionSqlMethods inherited from interface com.github.yulichang.wrapper.interfaces.Nested
and, nested, not, orMethods inherited from interface com.github.yulichang.wrapper.interfaces.OnCompare
eq, eq, eq, eq, eq, eq, eq, ge, ge, ge, ge, ge, ge, ge, gt, gt, gt, gt, gt, gt, gt, le, le, le, le, le, le, le, lt, lt, lt, lt, lt, lt, lt, ne, ne, ne, ne, ne, ne, neMethods inherited from interface com.github.yulichang.wrapper.interfaces.QueryJoin
fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoinMethods inherited from interface com.github.yulichang.query.interfaces.StringJoin
fullJoin, fullJoin, fullJoin, fullJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, leftJoin, leftJoin, leftJoin, leftJoin, rightJoin, rightJoin, rightJoin, rightJoinMethods inherited from interface com.github.yulichang.wrapper.interfaces.Update
set, set, set, set, set, set, setApply, setDecrBy, setIncrBy, setSqlMethods inherited from interface com.github.yulichang.wrapper.interfaces.UpdateChain
getEntityClass, update, update, updateAndNull, updateAndNull
-
Constructor Details
-
UpdateJoinWrapper
推荐使用此构造方法 -
UpdateJoinWrapper
-
UpdateJoinWrapper
-
UpdateJoinWrapper
-
-
Method Details
-
setUpdateEntity
设置更新的实体set语句部分, 更新非空字段注意!!! 这里这是的实体类是set部分, 不作为条件, where条件是wrapper.setEntity()
-
setUpdateEntityAndNull
设置更新的实体set语句部分, 更新非空字段注意!!! 这里这是的实体类是set部分, 不作为条件, where条件是wrapper.setEntity()
-
set
public <R> UpdateJoinWrapper<T> set(boolean condition, com.baomidou.mybatisplus.core.toolkit.support.SFunction<R, ?> column, Object val, String mapping) Description copied from interface:Update设置 更新 SQL 的 SET 片段 -
set
public <R,V> UpdateJoinWrapper<T> set(boolean condition, com.baomidou.mybatisplus.core.toolkit.support.SFunction<R, ?> column, com.baomidou.mybatisplus.core.toolkit.support.SFunction<V, ?> val, String mapping) -
setIncrBy
public <R> UpdateJoinWrapper<T> setIncrBy(boolean condition, com.baomidou.mybatisplus.core.toolkit.support.SFunction<R, ?> column, Number val) -
setDecrBy
public <R> UpdateJoinWrapper<T> setDecrBy(boolean condition, com.baomidou.mybatisplus.core.toolkit.support.SFunction<R, ?> column, Number val) -
setApply
public UpdateJoinWrapper<T> setApply(boolean condition, String applySql, MFunction<FuncConsumer> consumerFunction, Object... values) -
setSql
Description copied from interface:Update设置 更新 SQL 的 SET 片段 -
getSqlSet
Description copied from interface:Update获取 更新 SQL 的 SET 片段 -
instance
用于生成嵌套 sql故 sqlSelect 不向下传递
- Specified by:
instancein classJoinAbstractWrapper<T,UpdateJoinWrapper<T>>
-
instanceEmpty
- Specified by:
instanceEmptyin classJoinAbstractWrapper<T,UpdateJoinWrapper<T>>
-
instance
protected UpdateJoinWrapper<T> instance(Integer index, String keyWord, Class<?> joinClass, String tableName) - Specified by:
instancein classJoinAbstractWrapper<T,UpdateJoinWrapper<T>>
-
getUpdateSet
-
clear
public void clear()- Overrides:
clearin classJoinAbstractLambdaWrapper<T,UpdateJoinWrapper<T>>
-