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

嵌套类摘要
static class OffsetLimitInterceptor.BoundSqlSqlSource
           
 
构造方法摘要
OffsetLimitInterceptor()
           
 
方法摘要
 Object intercept(org.apache.ibatis.plugin.Invocation invocation)
           
 Object plugin(Object target)
           
 void setAsyncTotalCount(boolean asyncTotalCount)
           
 void setDialectClass(String dialectClass)
           
 void setPoolMaxSize(int poolMaxSize)
           
 void setProperties(Properties properties)
           
 
从类 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.