public abstract class ExecutorUtil extends Object
| 构造器和说明 |
|---|
ExecutorUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Long |
executeAutoCount(Dialect dialect,
org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement countMs,
Object parameter,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.session.ResultHandler resultHandler)
执行自动生成的 count 查询
|
static Long |
executeManualCount(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement countMs,
Object parameter,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.session.ResultHandler resultHandler)
执行手动设置的 count 查询,该查询支持的参数必须和被分页的方法相同
|
static Map<String,Object> |
getAdditionalParameter(org.apache.ibatis.mapping.BoundSql boundSql)
获取 BoundSql 属性值 additionalParameters
|
static org.apache.ibatis.mapping.MappedStatement |
getExistedMappedStatement(org.apache.ibatis.session.Configuration configuration,
String msId)
尝试获取已经存在的在 MS,提供对手写count和page的支持
|
static <E> List<E> |
pageQuery(Dialect dialect,
org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
Object parameter,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.session.ResultHandler resultHandler,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.cache.CacheKey cacheKey)
分页查询
|
public static Map<String,Object> getAdditionalParameter(org.apache.ibatis.mapping.BoundSql boundSql)
boundSql - public static org.apache.ibatis.mapping.MappedStatement getExistedMappedStatement(org.apache.ibatis.session.Configuration configuration,
String msId)
configuration - msId - public static Long executeManualCount(org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement countMs, Object parameter, org.apache.ibatis.mapping.BoundSql boundSql, org.apache.ibatis.session.ResultHandler resultHandler) throws SQLException
executor - countMs - parameter - boundSql - resultHandler - SQLExceptionpublic static Long executeAutoCount(Dialect dialect, org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement countMs, Object parameter, org.apache.ibatis.mapping.BoundSql boundSql, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler resultHandler) throws SQLException
dialect - executor - countMs - parameter - boundSql - rowBounds - resultHandler - SQLExceptionpublic static <E> List<E> pageQuery(Dialect dialect, org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement ms, Object parameter, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler resultHandler, org.apache.ibatis.mapping.BoundSql boundSql, org.apache.ibatis.cache.CacheKey cacheKey) throws SQLException
E - dialect - executor - ms - parameter - rowBounds - resultHandler - boundSql - cacheKey - SQLExceptionCopyright © 2018. All rights reserved.