public class SqlServerDialect extends AbstractHelperDialect
Modifier and Type | Field and Description |
---|---|
protected Cache<String,String> |
CACHE_COUNTSQL |
protected Cache<String,String> |
CACHE_PAGESQL |
protected SqlServerParser |
pageSql |
protected ReplaceSql |
replaceSql |
countSqlParser
PAGEPARAMETER_FIRST, PAGEPARAMETER_SECOND, SUFFIX_COUNT, SUFFIX_PAGE
Constructor and Description |
---|
SqlServerDialect() |
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(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, getPageSql, handleParameter, processParameterObject, skip
protected 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)
Dialect
getCountSql
in interface Dialect
getCountSql
in class AbstractHelperDialect
ms
- 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)
AbstractHelperDialect
processPageParameter
in class AbstractHelperDialect
public String getPageSql(String sql, Page page, org.apache.ibatis.cache.CacheKey pageKey)
AbstractHelperDialect
getPageSql
in class AbstractHelperDialect
public void setProperties(Properties properties)
Dialect
setProperties
in interface Dialect
setProperties
in class AbstractHelperDialect
properties
- 插件属性Copyright © 2018. All rights reserved.