Package org.aoju.bus.pager.dialect.base
Class SqlServer
java.lang.Object
org.aoju.bus.pager.dialect.AbstractDialect
org.aoju.bus.pager.dialect.AbstractPaging
org.aoju.bus.pager.dialect.base.SqlServer
- All Implemented Interfaces:
Dialect
- Direct Known Subclasses:
SqlServer2012
数据库方言 sqlserver
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsFields inherited from class org.aoju.bus.pager.dialect.AbstractPaging
PAGEPARAMETER_FIRST, PAGEPARAMETER_SECOND, SUFFIX_COUNT, SUFFIX_PAGEFields inherited from class org.aoju.bus.pager.dialect.AbstractDialect
countSqlParser -
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 查询 sqlgetPageSql(String sql, Page page, org.apache.ibatis.cache.CacheKey pageKey) 单独处理分页部分getPageSql(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 pageKey) 生成分页查询 sqlprocessPageParameter(org.apache.ibatis.mapping.MappedStatement ms, Map<String, Object> paramMap, Page page, org.apache.ibatis.mapping.BoundSql boundSql, org.apache.ibatis.cache.CacheKey pageKey) 处理分页参数voidsetProperties(Properties properties) 设置参数Methods inherited from class org.aoju.bus.pager.dialect.AbstractPaging
afterAll, afterCount, afterPage, beforeCount, beforePage, getLocalPage, handleParameter, processParameterObject, skip
-
Field Details
-
pageSql
-
CACHE_COUNTSQL
-
CACHE_PAGESQL
-
replaceSql
-
-
Constructor Details
-
SqlServer
public SqlServer()
-
-
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- Overrides:
getCountSqlin classAbstractPaging- Parameters:
ms- MappedStatementboundSql- 绑定 SQL 对象parameterObject- 方法参数rowBounds- 分页参数countKey- count 缓存 key- Returns:
- the object
-
processPageParameter
public Object processPageParameter(org.apache.ibatis.mapping.MappedStatement ms, Map<String, Object> paramMap, Page page, org.apache.ibatis.mapping.BoundSql boundSql, org.apache.ibatis.cache.CacheKey pageKey) Description copied from class:AbstractPaging处理分页参数- Specified by:
processPageParameterin classAbstractPaging- Parameters:
ms- MappedStatementparamMap- Mappage- PageboundSql- BoundSqlpageKey- CacheKey- Returns:
- 结果
-
getPageSql
Description copied from class:AbstractPaging单独处理分页部分- Specified by:
getPageSqlin classAbstractPaging- Parameters:
sql- sqlpage- PagepageKey- CacheKey- Returns:
- the string
-
getPageSql
public String getPageSql(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 pageKey) Description copied from interface:Dialect生成分页查询 sql- Specified by:
getPageSqlin interfaceDialect- Overrides:
getPageSqlin classAbstractPaging- Parameters:
ms- MappedStatementboundSql- 绑定 SQL 对象parameterObject- 方法参数rowBounds- 分页参数pageKey- 分页缓存 key- Returns:
- the object
-
setProperties
Description copied from interface:Dialect设置参数- Specified by:
setPropertiesin interfaceDialect- Overrides:
setPropertiesin classAbstractPaging- Parameters:
properties- 插件属性
-