com.github.miemiedev.mybatis.paginator
类 OffsetLimitInterceptor
java.lang.Object
com.github.miemiedev.mybatis.paginator.OffsetLimitInterceptor
- 所有已实现的接口:
- org.apache.ibatis.plugin.Interceptor
public class OffsetLimitInterceptor
- extends Object
- implements org.apache.ibatis.plugin.Interceptor
为MyBatis提供基于方言(Dialect)的分页查询的插件
将拦截Executor.query()方法实现分页方言的插入.
- 作者:
- badqiu, miemiedev
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OffsetLimitInterceptor
public OffsetLimitInterceptor()
intercept
public Object intercept(org.apache.ibatis.plugin.Invocation invocation)
throws Throwable
- 指定者:
- 接口
org.apache.ibatis.plugin.Interceptor 中的 intercept
- 抛出:
Throwable
plugin
public Object plugin(Object target)
- 指定者:
- 接口
org.apache.ibatis.plugin.Interceptor 中的 plugin
setProperties
public void setProperties(Properties properties)
- 指定者:
- 接口
org.apache.ibatis.plugin.Interceptor 中的 setProperties
setDialectClass
public void setDialectClass(String dialectClass)
setAsyncTotalCount
public void setAsyncTotalCount(boolean asyncTotalCount)
setPoolMaxSize
public void setPoolMaxSize(int poolMaxSize)
Copyright © 2015. All rights reserved.