Class KtDeleteJoinWrapper<T>
java.lang.Object
com.baomidou.mybatisplus.core.conditions.Wrapper<T>
com.github.yulichang.extension.kt.KtAbstractWrapper<T,Children>
com.github.yulichang.extension.kt.KtAbstractLambdaWrapper<T,KtDeleteJoinWrapper<T>>
com.github.yulichang.extension.kt.KtDeleteJoinWrapper<T>
- All Implemented Interfaces:
com.baomidou.mybatisplus.core.conditions.interfaces.Nested<KtDeleteJoinWrapper<T>,,KtDeleteJoinWrapper<T>> com.baomidou.mybatisplus.core.conditions.ISqlSegment,Compare<KtDeleteJoinWrapper<T>>,CompareIfExists<KtDeleteJoinWrapper<T>>,Func<KtDeleteJoinWrapper<T>>,OnCompare<KtDeleteJoinWrapper<T>>,QueryJoin<KtDeleteJoinWrapper<T>,,T> MPJBaseJoin<T>,StringJoin<KtDeleteJoinWrapper<T>,,T> CompareStr<KtDeleteJoinWrapper<T>,,String> CompareStrIfExists<KtDeleteJoinWrapper<T>,,String> DeleteChain<T>,FuncStr<KtDeleteJoinWrapper<T>,,String> Join<KtDeleteJoinWrapper<T>>,Serializable
public class KtDeleteJoinWrapper<T>
extends KtAbstractLambdaWrapper<T,KtDeleteJoinWrapper<T>>
implements DeleteChain<T>
- Since:
- 1.4.5
- Author:
- yulichang
- See Also:
-
Field Summary
Fields inherited from class com.github.yulichang.extension.kt.KtAbstractLambdaWrapper
alias, dynamicTableName, from, hasAlias, keyWord, logicDelType, logicSql, pageByMain, pageInfo, resultMap, resultMapCollection, subLogicSql, subTableAlias, tableFunc, tableIndexFields inherited from class com.github.yulichang.extension.kt.KtAbstractWrapper
checkSqlInjection, expression, ifExists, index, isMain, isNo, joinClass, lastSql, onWrappers, paramAlias, paramNameSeq, paramNameValuePairs, sqlComment, sqlFirst, tableList, tableName, typedThis -
Constructor Summary
ConstructorsConstructorDescriptionKtDeleteJoinWrapper(Class<T> clazz) 推荐使用此构造方法KtDeleteJoinWrapper(Class<T> clazz, String alias) 构造方法KtDeleteJoinWrapper(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.delete(User.class) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()删除表删除表 注意!!!删除表获取删除的表获取删除的表protected KtDeleteJoinWrapper<T>instance()用于生成嵌套 sqlprotected KtDeleteJoinWrapper<T>protected KtDeleteJoinWrapper<T>Methods inherited from class com.github.yulichang.extension.kt.KtAbstractLambdaWrapper
columnsToString, columnToString, disableLogicDel, disableSubLogicDel, enableLogicDel, enableSubLogicDel, getCache, getDefault, getFrom, getLogicSql, getPageInfo, getSubLogicSql, getTableName, getTableNameEnc, initNeed, isUseAnnotationOrderBy, join, join, logicDelToOn, logicDelToWhere, pageByMain, pageByMain, setTableNameMethods inherited from class com.github.yulichang.extension.kt.KtAbstractWrapper
addCondition, addCondition, addCondition, addNestedCondition, 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, eqSql, exists, first, formatParam, formatSqlMaybeWithParam, func, ge, ge, ge, geSql, geSql, getEntity, getEntityClass, getExpression, getParamAlias, getSqlComment, getSqlFirst, getSqlSegment, groupBy, groupBy, groupBy, groupBy, groupByStr, gt, gt, gt, gtSql, gtSql, having, in, in, in, in, inExpression, inExpression, inSql, inSql, isNotNull, isNotNull, isNull, isNull, last, le, le, le, leSql, leSql, like, like, likeLeft, likeLeft, likeRight, likeRight, likeValue, likeValue, lt, lt, lt, ltSql, ltSql, maybeDo, ne, ne, ne, nested, not, not, notBetween, notBetween, notExists, notIn, notIn, notIn, notIn, notInSql, notInSql, notLike, notLike, notLikeLeft, notLikeLeft, notLikeRight, notLikeRight, or, or, orderBy, orderBy, orderBy, orderByAsc, orderByDesc, orderByStr, setEntity, setEntityClass, setIfExists, setIfExists, setParamAlias, toChildren, toChildrenMethods inherited from class com.baomidou.mybatisplus.core.conditions.Wrapper
getCustomSqlSegment, getSqlSelect, getSqlSet, 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.extension.kt.interfaces.Compare
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.extension.kt.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.DeleteChain
deleteJoin, getEntityClassMethods inherited from interface com.github.yulichang.extension.kt.interfaces.Func
func, func, geSql, geSql, geSql, groupBy, 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, orderBy, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByAsc, orderByDesc, orderByDesc, 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.Join
apply, around, comment, exists, first, last, notExists, orMethods inherited from interface com.github.yulichang.interfaces.MPJBaseJoin
getUnionSqlMethods inherited from interface com.baomidou.mybatisplus.core.conditions.interfaces.Nested
and, nested, not, orMethods inherited from interface com.github.yulichang.extension.kt.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.extension.kt.interfaces.QueryJoin
fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin
-
Constructor Details
-
KtDeleteJoinWrapper
推荐使用此构造方法 -
KtDeleteJoinWrapper
构造方法- Parameters:
clazz- 主表class类alias- 主表别名
-
-
Method Details
-
getDeleteSql
获取删除的表- Specified by:
getDeleteSqlin interfaceMPJBaseJoin<T>
-
getDeleteLogicSql
获取删除的表- Specified by:
getDeleteLogicSqlin interfaceMPJBaseJoin<T>
-
deleteAll
删除表 -
delete
删除表 注意!!! 字符串不支持逻辑删除校验 也就算说此方法不管副表有没有逻辑删除 都按照主表的方式执行delete或update -
delete
删除表 -
instance
用于生成嵌套 sql故 sqlSelect 不向下传递
- Specified by:
instancein classKtAbstractWrapper<T,KtDeleteJoinWrapper<T>>
-
instanceEmpty
- Specified by:
instanceEmptyin classKtAbstractWrapper<T,KtDeleteJoinWrapper<T>>
-
instance
protected KtDeleteJoinWrapper<T> instance(Integer index, String keyWord, Class<?> joinClass, String tableName) - Specified by:
instancein classKtAbstractWrapper<T,KtDeleteJoinWrapper<T>>
-
clear
public void clear()- Overrides:
clearin classKtAbstractLambdaWrapper<T,KtDeleteJoinWrapper<T>>
-