public class SqlServer extends AbstractPaging
| Modifier and Type | Field and Description |
|---|---|
protected Cache<String,String> |
CACHE_COUNTSQL |
protected Cache<String,String> |
CACHE_PAGESQL |
protected SqlServerParser |
pageSql |
protected ReplaceSql |
replaceSql |
PAGEPARAMETER_FIRST, PAGEPARAMETER_SECOND, SUFFIX_COUNT, SUFFIX_PAGEcountSqlParser| Constructor and Description |
|---|
SqlServer() |
| Modifier and Type | Method and Description |
|---|---|
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)
生成 count 查询 sql
|
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)
生成分页查询 sql
|
String |
getPageSql(String sql,
Page page,
org.apache.ibatis.cache.CacheKey pageKey)
单独处理分页部分
|
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)
处理分页参数
|
void |
setProperties(Properties properties)
设置参数
|
afterAll, afterCount, afterPage, beforeCount, beforePage, getLocalPage, handleParameter, processParameterObject, skipprotected SqlServerParser pageSql
protected ReplaceSql replaceSql
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)
DialectgetCountSql in interface DialectgetCountSql in class AbstractPagingms - MappedStatementboundSql - 绑定 SQL 对象parameterObject - 方法参数rowBounds - 分页参数countKey - count 缓存 keypublic 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)
AbstractPagingprocessPageParameter in class AbstractPagingms - MappedStatementparamMap - Mappage - PageboundSql - BoundSqlpageKey - CacheKeypublic String getPageSql(String sql, Page page, org.apache.ibatis.cache.CacheKey pageKey)
AbstractPaginggetPageSql in class AbstractPagingsql - sqlpage - PagepageKey - CacheKeypublic 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)
DialectgetPageSql in interface DialectgetPageSql in class AbstractPagingms - MappedStatementboundSql - 绑定 SQL 对象parameterObject - 方法参数rowBounds - 分页参数pageKey - 分页缓存 keypublic void setProperties(Properties properties)
DialectsetProperties in interface DialectsetProperties in class AbstractPagingproperties - 插件属性Copyright © 2021. All rights reserved.