Package org.miaixz.bus.pager.plugin
Class PageSqlHandler
java.lang.Object
org.miaixz.bus.mapper.handler.AbstractSqlHandler
org.miaixz.bus.pager.plugin.SqlParserHandler
org.miaixz.bus.pager.plugin.PageSqlHandler
- All Implemented Interfaces:
org.apache.ibatis.plugin.Interceptor,org.miaixz.bus.mapper.handler.SQLHandler
@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 SqlParserHandler
implements org.apache.ibatis.plugin.Interceptor
通用分页拦截器
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsFields inherited from class org.miaixz.bus.mapper.handler.AbstractSqlHandler
DELEGATE_BOUNDSQL, DELEGATE_BOUNDSQL_SQL, DELEGATE_MAPPEDSTATEMENT, MAPPEDSTATEMENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void输出启用分页方法时的调用堆栈信息intercept(org.apache.ibatis.plugin.Invocation invocation) static booleanisDebug()voidsetProperties(Properties properties) Methods inherited from class org.miaixz.bus.pager.plugin.SqlParserHandler
allowProcess, doFilter, parser, processDelete, processInsert, processParser, processSelectBody, processUpdateMethods inherited from class org.miaixz.bus.mapper.handler.AbstractSqlHandler
getMappedStatement, getMappedStatement, getSqlParserInfo, realTargetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.miaixz.bus.mapper.handler.SQLHandler
afterCompletion, postHandle, preHandle
-
Field Details
-
msCountMap
-
countMsId
-
-
Constructor Details
-
PageSqlHandler
public PageSqlHandler()
-
-
Method Details
-
isDebug
public static boolean isDebug() -
debugStackTraceLog
protected void debugStackTraceLog()输出启用分页方法时的调用堆栈信息 -
intercept
- Specified by:
interceptin interfaceorg.apache.ibatis.plugin.Interceptor- Throws:
Throwable
-
plugin
- Specified by:
pluginin interfaceorg.apache.ibatis.plugin.Interceptor
-
setProperties
- Specified by:
setPropertiesin interfaceorg.apache.ibatis.plugin.Interceptor
-