public class ReplacePlaceholderInnerInterceptor extends java.lang.Object implements InnerInterceptor
GlobalConfig.DbConfig#isReplacePlaceholder(),
只是这个是在运行时实时替换,适用范围更广| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.ibatis.logging.Log |
logger |
| 构造器和说明 |
|---|
ReplacePlaceholderInnerInterceptor() |
ReplacePlaceholderInnerInterceptor(java.lang.String escapeSymbol) |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
Executor.query(MappedStatement, Object, RowBounds, ResultHandler, CacheKey, BoundSql) 操作前置处理
改改sql啥的 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeforeGetBoundSql, beforePrepare, beforeUpdate, setProperties, willDoQuery, willDoUpdatepublic ReplacePlaceholderInnerInterceptor()
public ReplacePlaceholderInnerInterceptor(java.lang.String escapeSymbol)
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 在接口中 InnerInterceptorexecutor - Executor(可能是代理对象)ms - MappedStatementparameter - parameterrowBounds - rowBoundsresultHandler - resultHandlerboundSql - boundSqljava.sql.SQLException