Package org.apache.ibatis.executor
Class CachingExecutor
java.lang.Object
org.apache.ibatis.executor.CachingExecutor
- All Implemented Interfaces:
Executor
- Author:
- Clinton Begin, Eduardo Macarron
-
Field Summary
Fields inherited from interface org.apache.ibatis.executor.Executor
NO_RESULT_HANDLER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose(boolean forceRollback) voidcommit(boolean required) createCacheKey(MappedStatement ms, Object parameterObject, RowBounds rowBounds, BoundSql boundSql) voiddeferLoad(MappedStatement ms, MetaObject resultObject, String property, CacheKey key, Class<?> targetType) booleanisCached(MappedStatement ms, CacheKey key) booleanisClosed()<E> List<E> query(MappedStatement ms, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler) <E> List<E> query(MappedStatement ms, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, CacheKey key, BoundSql boundSql) <E> Cursor<E> queryCursor(MappedStatement ms, Object parameter, RowBounds rowBounds) voidrollback(boolean required) voidsetExecutorWrapper(Executor executor) intupdate(MappedStatement ms, Object parameterObject)
-
Constructor Details
-
CachingExecutor
-
-
Method Details
-
getTransaction
- Specified by:
getTransactionin interfaceExecutor
-
close
public void close(boolean forceRollback) -
isClosed
public boolean isClosed() -
update
- Specified by:
updatein interfaceExecutor- Throws:
SQLException
-
queryCursor
public <E> Cursor<E> queryCursor(MappedStatement ms, Object parameter, RowBounds rowBounds) throws SQLException - Specified by:
queryCursorin interfaceExecutor- Throws:
SQLException
-
query
public <E> List<E> query(MappedStatement ms, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler) throws SQLException - Specified by:
queryin interfaceExecutor- Throws:
SQLException
-
query
public <E> List<E> query(MappedStatement ms, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, CacheKey key, BoundSql boundSql) throws SQLException - Specified by:
queryin interfaceExecutor- Throws:
SQLException
-
flushStatements
- Specified by:
flushStatementsin interfaceExecutor- Throws:
SQLException
-
commit
- Specified by:
commitin interfaceExecutor- Throws:
SQLException
-
rollback
- Specified by:
rollbackin interfaceExecutor- Throws:
SQLException
-
createCacheKey
public CacheKey createCacheKey(MappedStatement ms, Object parameterObject, RowBounds rowBounds, BoundSql boundSql) - Specified by:
createCacheKeyin interfaceExecutor
-
isCached
-
deferLoad
public void deferLoad(MappedStatement ms, MetaObject resultObject, String property, CacheKey key, Class<?> targetType) -
clearLocalCache
public void clearLocalCache()- Specified by:
clearLocalCachein interfaceExecutor
-
setExecutorWrapper
- Specified by:
setExecutorWrapperin interfaceExecutor
-