public abstract static class SqlUtil.SimpleParser extends Object implements SqlUtil.Parser
| 构造器和说明 |
|---|
SqlUtil.SimpleParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCountSql(String sql)
获取总数sql - 如果要支持其他数据库,修改这里就可以
|
List<org.apache.ibatis.mapping.ParameterMapping> |
getPageParameterMapping(org.apache.ibatis.session.Configuration configuration,
org.apache.ibatis.mapping.BoundSql boundSql)
获取分页参数映射
|
abstract String |
getPageSql(String sql)
获取分页sql - 如果要支持其他数据库,修改这里就可以
|
boolean |
isSupportedMappedStatementCache()
是否支持MappedStatement全局缓存
|
static SqlUtil.Parser |
newParser(SqlUtil.Dialect dialect) |
Map |
setPageParameter(org.apache.ibatis.mapping.MappedStatement ms,
Object parameterObject,
org.apache.ibatis.mapping.BoundSql boundSql,
Page page)
设置分页参数
|
public static SqlUtil.Parser newParser(SqlUtil.Dialect dialect)
public boolean isSupportedMappedStatementCache()
SqlUtil.ParserisSupportedMappedStatementCache 在接口中 SqlUtil.Parserpublic String getCountSql(String sql)
SqlUtil.ParsergetCountSql 在接口中 SqlUtil.Parsersql - 原查询sqlpublic abstract String getPageSql(String sql)
SqlUtil.ParsergetPageSql 在接口中 SqlUtil.Parsersql - 原查询sqlpublic List<org.apache.ibatis.mapping.ParameterMapping> getPageParameterMapping(org.apache.ibatis.session.Configuration configuration, org.apache.ibatis.mapping.BoundSql boundSql)
SqlUtil.ParsergetPageParameterMapping 在接口中 SqlUtil.Parserpublic Map setPageParameter(org.apache.ibatis.mapping.MappedStatement ms, Object parameterObject, org.apache.ibatis.mapping.BoundSql boundSql, Page page)
SqlUtil.ParsersetPageParameter 在接口中 SqlUtil.ParserCopyright © 2015. All rights reserved.