public abstract class AbstractParser extends Object implements Parser, Constant
| 限定符和类型 | 字段和说明 |
|---|---|
static SqlParser |
sqlParser |
ORIGINAL_PARAMETER_OBJECT, PAGEPARAMETER_FIRST, PAGEPARAMETER_SECOND, PROVIDER_OBJECT, SUFFIX_COUNT, SUFFIX_PAGE| 构造器和说明 |
|---|
AbstractParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 Parser |
newParser(Dialect dialect) |
static Map<String,Object> |
processParameter(org.apache.ibatis.mapping.MappedStatement ms,
Object parameterObject,
org.apache.ibatis.mapping.BoundSql boundSql) |
Map |
setPageParameter(org.apache.ibatis.mapping.MappedStatement ms,
Object parameterObject,
org.apache.ibatis.mapping.BoundSql boundSql,
Page page)
设置分页参数
|
public static final SqlParser sqlParser
public boolean isSupportedMappedStatementCache()
ParserisSupportedMappedStatementCache 在接口中 Parserpublic String getCountSql(String sql)
ParsergetCountSql 在接口中 Parsersql - 原查询sqlpublic abstract String getPageSql(String sql)
ParsergetPageSql 在接口中 Parsersql - 原查询sqlpublic List<org.apache.ibatis.mapping.ParameterMapping> getPageParameterMapping(org.apache.ibatis.session.Configuration configuration, org.apache.ibatis.mapping.BoundSql boundSql)
ParsergetPageParameterMapping 在接口中 Parserpublic static Map<String,Object> processParameter(org.apache.ibatis.mapping.MappedStatement ms, Object parameterObject, org.apache.ibatis.mapping.BoundSql boundSql)
Copyright © 2015. All rights reserved.