@Component
@Intercepts(value=@Signature(type=org.apache.ibatis.executor.statement.StatementHandler.class,method="prepare",args={java.sql.Connection.class,java.lang.Integer.class}))
public class SqlInterceptor
extends Object
implements org.apache.ibatis.plugin.Interceptor
| 限定符和类型 | 字段和说明 |
|---|---|
String |
boundSqlStr |
| 构造器和说明 |
|---|
SqlInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
intercept(org.apache.ibatis.plugin.Invocation invocation) |
Object |
plugin(Object target) |
static <T> T |
realTarget(Object target)
获得真正的处理对象,可能多层代理.
|
void |
setProperties(Properties properties) |
public Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws Throwable
intercept 在接口中 org.apache.ibatis.plugin.InterceptorThrowablepublic void setProperties(Properties properties)
setProperties 在接口中 org.apache.ibatis.plugin.Interceptorpublic static <T> T realTarget(Object target)
Copyright © 2023. All rights reserved.