public class PaginationStage1Interceptor extends Object implements org.apache.ibatis.plugin.Interceptor
| 构造器和说明 |
|---|
PaginationStage1Interceptor(DatabaseType databaseType) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
intercept(org.apache.ibatis.plugin.Invocation invocation)
拦截后要执行的方法
对于StatementHandler其实只有两个实现类,一个是RoutingStatementHandler,另一个是抽象类BaseStatementHandler,
BaseStatementHandler有三个子类,分别是SimpleStatementHandler,PreparedStatementHandler和CallableStatementHandler,
SimpleStatementHandler是用于处理Statement的,PreparedStatementHandler是处理PreparedStatement的,而CallableStatementHandler是
处理CallableStatement的。
|
Object |
plugin(Object target)
拦截器对应的封装原始对象的方法
|
void |
setProperties(Properties properties)
设置注册拦截器时设定的属性
|
public PaginationStage1Interceptor(DatabaseType databaseType)
public Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws Throwable
intercept 在接口中 org.apache.ibatis.plugin.InterceptorThrowablepublic Object plugin(Object target)
plugin 在接口中 org.apache.ibatis.plugin.Interceptorpublic void setProperties(Properties properties)
setProperties 在接口中 org.apache.ibatis.plugin.InterceptorCopyright © 2016. All rights reserved.