public class SqlServerRowBoundsDialect extends AbstractRowBoundsDialect
Modifier and Type | Field and Description |
---|---|
protected SqlServerParser |
pageSql |
protected ReplaceSql |
replaceSql |
countSqlParser
Constructor and Description |
---|
SqlServerRowBoundsDialect() |
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,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.cache.CacheKey pageKey) |
void |
setProperties(Properties properties)
设置参数
|
afterAll, afterCount, afterPage, beforeCount, beforePage, getPageSql, 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 AbstractDialect
ms
- MappedStatementboundSql
- 绑定 SQL 对象parameterObject
- 方法参数rowBounds
- 分页参数countKey
- count 缓存 keypublic String getPageSql(String sql, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.cache.CacheKey pageKey)
getPageSql
in class AbstractRowBoundsDialect
public void setProperties(Properties properties)
Dialect
setProperties
in interface Dialect
setProperties
in class AbstractRowBoundsDialect
properties
- 插件属性Copyright © 2018. All rights reserved.