类 ReplacePlaceholderInnerInterceptor
- java.lang.Object
-
- com.baomidou.mybatisplus.extension.plugins.inner.ReplacePlaceholderInnerInterceptor
-
- 所有已实现的接口:
InnerInterceptor
public class ReplacePlaceholderInnerInterceptor extends java.lang.Object implements InnerInterceptor
功能类似于GlobalConfig.DbConfig.isReplacePlaceholder(), 只是这个是在运行时实时替换,适用范围更广- 从以下版本开始:
- 2020-11-19
- 作者:
- miemie
-
-
字段概要
字段 修饰符和类型 字段 说明 protected org.apache.ibatis.logging.Loglogger
-
构造器概要
构造器 构造器 说明 ReplacePlaceholderInnerInterceptor()ReplacePlaceholderInnerInterceptor(java.lang.String escapeSymbol)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidbeforeQuery(org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement ms, java.lang.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
-
-
-
-
方法详细资料
-
beforeQuery
public void beforeQuery(org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement ms, java.lang.Object parameter, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler resultHandler, org.apache.ibatis.mapping.BoundSql boundSql) throws java.sql.SQLException从接口复制的说明:InnerInterceptorExecutor.query(MappedStatement, Object, RowBounds, ResultHandler, CacheKey, BoundSql)操作前置处理改改sql啥的
- 指定者:
beforeQuery在接口中InnerInterceptor- 参数:
executor- Executor(可能是代理对象)ms- MappedStatementparameter- parameterrowBounds- rowBoundsresultHandler- resultHandlerboundSql- boundSql- 抛出:
java.sql.SQLException
-
-