类 ReplacePlaceholderInnerInterceptor
java.lang.Object
com.baomidou.mybatisplus.extension.plugins.inner.ReplacePlaceholderInnerInterceptor
- 所有已实现的接口:
InnerInterceptor
功能类似于
GlobalConfig.DbConfig.isReplacePlaceholder(),
只是这个是在运行时实时替换,适用范围更广- 从以下版本开始:
- 2020-11-19
- 作者:
- miemie
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidbeforeQuery(org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement ms, Object parameter, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler resultHandler, org.apache.ibatis.mapping.BoundSql boundSql) Executor.query(MappedStatement, Object, RowBounds, ResultHandler, CacheKey, BoundSql)操作前置处理从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor
beforeGetBoundSql, beforePrepare, beforeUpdate, setProperties, willDoQuery, willDoUpdate
-
字段详细资料
-
logger
protected final org.apache.ibatis.logging.Log logger
-
-
构造器详细资料
-
ReplacePlaceholderInnerInterceptor
public ReplacePlaceholderInnerInterceptor() -
ReplacePlaceholderInnerInterceptor
-
-
方法详细资料
-
beforeQuery
public void beforeQuery(org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement ms, Object parameter, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler resultHandler, org.apache.ibatis.mapping.BoundSql boundSql) throws SQLException 从接口复制的说明:InnerInterceptorExecutor.query(MappedStatement, Object, RowBounds, ResultHandler, CacheKey, BoundSql)操作前置处理改改sql啥的
- 指定者:
beforeQuery在接口中InnerInterceptor- 参数:
executor- Executor(可能是代理对象)ms- MappedStatementparameter- parameterrowBounds- rowBoundsresultHandler- resultHandlerboundSql- boundSql- 抛出:
SQLException
-