@Signature(type=org.apache.ibatis.executor.Executor.class,method="query",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class,org.apache.ibatis.session.RowBounds.class,org.apache.ibatis.session.ResultHandler.class}) @Signature(type=org.apache.ibatis.executor.Executor.class,method="query",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class,org.apache.ibatis.session.RowBounds.class,org.apache.ibatis.session.ResultHandler.class,org.apache.ibatis.cache.CacheKey.class,org.apache.ibatis.mapping.BoundSql.class}) @Signature(type=org.apache.ibatis.executor.Executor.class,method="update",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class})
public class ActualSqlInterceptor
extends Object
implements org.apache.ibatis.plugin.Interceptor
| 构造器和说明 |
|---|
ActualSqlInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
intercept(org.apache.ibatis.plugin.Invocation invocation)
拦截器的拦截方法
|
Object |
plugin(Object target)
plugin方法是拦截器用于封装目标对象的
通过该方法可以返回目标对象本身,也可以返回一个代理对象
|
void |
setProperties(Properties properties) |
public Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws SQLException
intercept 在接口中 org.apache.ibatis.plugin.Interceptorinvocation - 调用的上下文SQLException - 整个拦截器链都可能抛Throwable的异常,所以不处理直接向上抛public Object plugin(Object target)
plugin 在接口中 org.apache.ibatis.plugin.Interceptortarget - 目标对象public void setProperties(Properties properties)
setProperties 在接口中 org.apache.ibatis.plugin.InterceptorCopyright © 2024. All rights reserved.