Class PageSqlHandler

java.lang.Object
org.aoju.bus.pager.plugins.PageSqlHandler
All Implemented Interfaces:
org.apache.ibatis.plugin.Interceptor

@Signature(type=org.apache.ibatis.executor.Executor.class,method="query",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class,org.apache.ibatis.session.RowBounds.class,org.apache.ibatis.session.ResultHandler.class}) @Signature(type=org.apache.ibatis.executor.Executor.class,method="query",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class,org.apache.ibatis.session.RowBounds.class,org.apache.ibatis.session.ResultHandler.class,org.apache.ibatis.cache.CacheKey.class,org.apache.ibatis.mapping.BoundSql.class}) public class PageSqlHandler extends Object implements org.apache.ibatis.plugin.Interceptor
通用分页拦截器
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • msCountMap

      protected Cache<String,org.apache.ibatis.mapping.MappedStatement> msCountMap
  • Constructor Details

    • PageSqlHandler

      public PageSqlHandler()
  • Method Details

    • intercept

      public Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws Throwable
      Specified by:
      intercept in interface org.apache.ibatis.plugin.Interceptor
      Throws:
      Throwable
    • plugin

      public Object plugin(Object target)
      Specified by:
      plugin in interface org.apache.ibatis.plugin.Interceptor
    • setProperties

      public void setProperties(Properties properties)
      Specified by:
      setProperties in interface org.apache.ibatis.plugin.Interceptor