ORIGINAL_PARAMETER_OBJECT, PAGEPARAMETER_FIRST, PAGEPARAMETER_SECOND, PROVIDER_OBJECT, SUFFIX_COUNT, SUFFIX_PAGE| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.ibatis.mapping.MappedStatement |
getMappedStatement(org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.SqlSource sqlSource,
Object parameterObject,
String suffix)
获取ms - 在这里对新建的ms做了缓存,第一次新增,后面都会使用缓存值
|
org.apache.ibatis.mapping.SqlSource |
getsqlSource(org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.SqlSource sqlSource,
Object parameterObject,
boolean count)
获取新的sqlSource
|
org.apache.ibatis.mapping.SqlSource |
getStaticCountSqlSource(org.apache.ibatis.session.Configuration configuration,
org.apache.ibatis.mapping.SqlSource sqlSource,
Object parameterObject)
获取静态的count的SqlSource
|
org.apache.ibatis.mapping.SqlSource |
getStaticPageSqlSource(org.apache.ibatis.session.Configuration configuration,
org.apache.ibatis.mapping.SqlSource sqlSource,
Object parameterObject)
获取静态的分页SqlSource
ParameterMappings需要增加分页参数的映射 |
org.apache.ibatis.mapping.MappedStatement |
newMappedStatement(org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.SqlSource sqlSource,
String suffix)
新建count查询和分页查询的MappedStatement
|
void |
processCountMappedStatement(org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.SqlSource sqlSource,
Object[] args)
处理count查询的MappedStatement
|
void |
processPageMappedStatement(org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.SqlSource sqlSource,
Page page,
Object[] args)
处理分页查询的MappedStatement
|
Map |
setPageParameter(org.apache.ibatis.mapping.MappedStatement ms,
Object parameterObject,
Page page)
设置分页参数
|
public MSUtils(Parser parser)
public void processCountMappedStatement(org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.SqlSource sqlSource,
Object[] args)
ms - sqlSource - args - public void processPageMappedStatement(org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.SqlSource sqlSource,
Page page,
Object[] args)
ms - sqlSource - page - args - public Map setPageParameter(org.apache.ibatis.mapping.MappedStatement ms, Object parameterObject, Page page)
parameterObject - page - public org.apache.ibatis.mapping.MappedStatement getMappedStatement(org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.SqlSource sqlSource,
Object parameterObject,
String suffix)
ms - sqlSource - suffix - public org.apache.ibatis.mapping.MappedStatement newMappedStatement(org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.SqlSource sqlSource,
String suffix)
ms - sqlSource - suffix - public org.apache.ibatis.mapping.SqlSource getsqlSource(org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.SqlSource sqlSource,
Object parameterObject,
boolean count)
ms - sqlSource - parameterObject - count - public org.apache.ibatis.mapping.SqlSource getStaticPageSqlSource(org.apache.ibatis.session.Configuration configuration,
org.apache.ibatis.mapping.SqlSource sqlSource,
Object parameterObject)
configuration - sqlSource - parameterObject - public org.apache.ibatis.mapping.SqlSource getStaticCountSqlSource(org.apache.ibatis.session.Configuration configuration,
org.apache.ibatis.mapping.SqlSource sqlSource,
Object parameterObject)
configuration - sqlSource - parameterObject - Copyright © 2015. All rights reserved.