Package org.aoju.bus.pager.dialect
Class AbstractDialect
java.lang.Object
org.aoju.bus.pager.dialect.AbstractDialect
- All Implemented Interfaces:
Dialect
- Direct Known Subclasses:
AbstractPaging,AbstractRowBounds
基于 CountSqlParser 的智能 Count 查询
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCountSql(org.apache.ibatis.mapping.MappedStatement ms, org.apache.ibatis.mapping.BoundSql boundSql, Object parameterObject, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.cache.CacheKey countKey) 生成 count 查询 sqlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aoju.bus.pager.Dialect
afterAll, afterCount, afterPage, beforeCount, beforePage, getPageSql, processParameterObject, setProperties, skip
-
Field Details
-
countSqlParser
处理SQL
-
-
Constructor Details
-
AbstractDialect
public AbstractDialect()
-
-
Method Details
-
getCountSql
public String getCountSql(org.apache.ibatis.mapping.MappedStatement ms, org.apache.ibatis.mapping.BoundSql boundSql, Object parameterObject, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.cache.CacheKey countKey) Description copied from interface:Dialect生成 count 查询 sql- Specified by:
getCountSqlin interfaceDialect- Parameters:
ms- MappedStatementboundSql- 绑定 SQL 对象parameterObject- 方法参数rowBounds- 分页参数countKey- count 缓存 key- Returns:
- the object
-