@Intercepts(value=@Signature(type=org.apache.ibatis.executor.parameter.ParameterHandler.class,method="setParameters",args=java.sql.PreparedStatement.class)) public class ParameterHandlerInterceptor extends Object implements org.apache.ibatis.plugin.Interceptor
ParameterHandlerCustomizer| Constructor and Description |
|---|
ParameterHandlerInterceptor(ParameterHandlerCustomizer parameterHandlerCustomizer)
初始化 ParameterHandler 拦截器
|
| Modifier and Type | Method and Description |
|---|---|
Object |
intercept(org.apache.ibatis.plugin.Invocation invocation) |
Object |
plugin(Object target) |
void |
setProperties(Properties properties) |
public ParameterHandlerInterceptor(ParameterHandlerCustomizer parameterHandlerCustomizer)
parameterHandlerCustomizer - 自定义通用 SQL SELECT statements 处理
Parameter 逻辑public Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws Throwable
intercept in interface org.apache.ibatis.plugin.InterceptorThrowablepublic Object plugin(Object target)
plugin in interface org.apache.ibatis.plugin.Interceptorpublic void setProperties(Properties properties)
setProperties in interface org.apache.ibatis.plugin.InterceptorCopyright © 2018–2021. All rights reserved.