@Intercepts(value={@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.statement.StatementHandler.class,method="prepare",args={java.sql.Connection.class,java.lang.Integer.class})})
public class CachePaginationInterceptor
extends PaginationInterceptor
implements org.apache.ibatis.plugin.Interceptor
缓存分页拦截器
| 构造器和说明 |
|---|
CachePaginationInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
intercept(org.apache.ibatis.plugin.Invocation invocation)
Physical Pagination Interceptor for all the queries with parameter
RowBounds |
java.lang.Object |
plugin(java.lang.Object target) |
CachePaginationInterceptor |
setDialectType(java.lang.String dialectType) |
CachePaginationInterceptor |
setOverflowCurrent(boolean overflowCurrent) |
void |
setProperties(java.util.Properties prop) |
CachePaginationInterceptor |
setSqlParser(com.baomidou.mybatisplus.plugins.parser.ISqlParser sqlParser) |
queryTotal, setDialectClazz, setLocalPagepublic java.lang.Object intercept(org.apache.ibatis.plugin.Invocation invocation)
throws java.lang.Throwable
RowBoundsintercept 在接口中 org.apache.ibatis.plugin.Interceptorintercept 在类中 PaginationInterceptorjava.lang.Throwablepublic java.lang.Object plugin(java.lang.Object target)
plugin 在接口中 org.apache.ibatis.plugin.Interceptorplugin 在类中 PaginationInterceptorpublic void setProperties(java.util.Properties prop)
setProperties 在接口中 org.apache.ibatis.plugin.InterceptorsetProperties 在类中 PaginationInterceptorpublic CachePaginationInterceptor setDialectType(java.lang.String dialectType)
setDialectType 在类中 PaginationInterceptorpublic CachePaginationInterceptor setSqlParser(com.baomidou.mybatisplus.plugins.parser.ISqlParser sqlParser)
setSqlParser 在类中 PaginationInterceptorpublic CachePaginationInterceptor setOverflowCurrent(boolean overflowCurrent)