类 AbstractDeleteInLogicMethod
- java.lang.Object
-
- com.baomidou.mybatisplus.core.injector.AbstractMethod
-
- org.shoulder.data.mybatis.injector.methods.AbstractDeleteInLogicMethod
-
- 所有已实现的接口:
com.baomidou.mybatisplus.core.toolkit.Constants,com.baomidou.mybatisplus.core.toolkit.StringPool,Serializable
public abstract class AbstractDeleteInLogicMethod extends com.baomidou.mybatisplus.core.injector.AbstractMethod逻辑删除 DELETE 方法改为 update xxx,只对LogicDeleteEntity生效- 作者:
- lym
- 另请参阅:
BaseMapper,LogicDeleteByIdWithFill,SqlMethod.LOGIC_DELETE_BY_ID,LogicDeleteEntity, 序列化表格
-
-
字段概要
-
从类继承的字段 com.baomidou.mybatisplus.core.injector.AbstractMethod
builderAssistant, configuration, languageDriver, logger
-
从接口继承的字段 com.baomidou.mybatisplus.core.toolkit.Constants
AES, AES_CBC_CIPHER, AS, COLLECTION, COLUMN_MAP, COLUMN_MAP_IS_EMPTY, ENTITY, ENTITY_DOT, MD5, MP_OPTLOCK_ET_ORIGINAL, MP_OPTLOCK_INTERCEPTOR, MP_OPTLOCK_VERSION_COLUMN, MP_OPTLOCK_VERSION_ORIGINAL, MYBATIS_PLUS, Q_WRAPPER_SQL_COMMENT, Q_WRAPPER_SQL_FIRST, Q_WRAPPER_SQL_SELECT, U_WRAPPER_SQL_SET, WHERE, WRAPPER, WRAPPER_DOT, WRAPPER_EMPTYOFNORMAL, WRAPPER_EMPTYOFWHERE, WRAPPER_ENTITY, WRAPPER_ENTITY_DOT, WRAPPER_NONEMPTYOFENTITY, WRAPPER_NONEMPTYOFNORMAL, WRAPPER_NONEMPTYOFWHERE, WRAPPER_PARAM, WRAPPER_PARAM_FORMAT, WRAPPER_SQLSEGMENT
-
从接口继承的字段 com.baomidou.mybatisplus.core.toolkit.StringPool
AMPERSAND, AND, ASTERISK, AT, BACK_SLASH, BACKTICK, BYTES_NEW_LINE, COLON, COMMA, CRLF, DASH, DOLLAR, DOLLAR_LEFT_BRACE, DOT, DOT_CLASS, DOT_JAVA, DOT_NEWLINE, DOT_XML, DOTDOT, EMPTY, EMPTY_ARRAY, EQUALS, EXCLAMATION_MARK, FALSE, HASH, HASH_LEFT_BRACE, HAT, HTML_AMP, HTML_GT, HTML_LT, HTML_NBSP, HTML_QUOTE, ISO_8859_1, LEFT_BRACE, LEFT_BRACKET, LEFT_CHEV, LEFT_SQ_BRACKET, N, NEWLINE, NO, NULL, OFF, ON, ONE, PERCENT, PIPE, PLUS, QUESTION_MARK, QUOTE, RETURN, RIGHT_BRACE, RIGHT_BRACKET, RIGHT_CHEV, RIGHT_SQ_BRACKET, SEMICOLON, SINGLE_QUOTE, SLASH, SPACE, STAR, TAB, TILDA, TRUE, UNDERSCORE, US_ASCII, UTF_8, Y, YES, ZERO
-
-
构造器概要
构造器 构造器 说明 AbstractDeleteInLogicMethod()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected StringbaseSql()基础 sqlprotected StringgenSetSql(Class<?> mapperClass, Class<?> modelClass, com.baomidou.mybatisplus.core.metadata.TableInfo tableInfo)set sql SET delete_version=NOW()protected StringgenWhereSql(Class<?> mapperClass, Class<?> modelClass, com.baomidou.mybatisplus.core.metadata.TableInfo tableInfo)where sql 条件 id = #{id} and delete_version=0org.apache.ibatis.mapping.MappedStatementinjectMappedStatement(Class<?> mapperClass, Class<?> modelClass, com.baomidou.mybatisplus.core.metadata.TableInfo tableInfo)protected booleansupport(Class<?> mapperClass, Class<?> modelClass, com.baomidou.mybatisplus.core.metadata.TableInfo tableInfo)是否支持逻辑删除-
从类继承的方法 com.baomidou.mybatisplus.core.injector.AbstractMethod
addDeleteMappedStatement, addInsertMappedStatement, addMappedStatement, addSelectMappedStatementForOther, addSelectMappedStatementForTable, addUpdateMappedStatement, filterTableFieldInfo, getMethod, inject, optlockVersion, sqlComment, sqlCount, sqlFirst, sqlLogicSet, sqlSelectColumns, sqlSelectObjsColumns, sqlSet, sqlWhereByMap, sqlWhereEntityWrapper
-
-
-
-
方法详细资料
-
injectMappedStatement
public org.apache.ibatis.mapping.MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, com.baomidou.mybatisplus.core.metadata.TableInfo tableInfo)
- 指定者:
injectMappedStatement在类中com.baomidou.mybatisplus.core.injector.AbstractMethod
-
support
protected boolean support(Class<?> mapperClass, Class<?> modelClass, com.baomidou.mybatisplus.core.metadata.TableInfo tableInfo)
是否支持逻辑删除
-
baseSql
protected String baseSql()
基础 sql
-
genSetSql
protected String genSetSql(Class<?> mapperClass, Class<?> modelClass, com.baomidou.mybatisplus.core.metadata.TableInfo tableInfo)
set sql SET delete_version=NOW()
-
-