Package org.apache.ibatis.executor
Class CachingExecutor
- java.lang.Object
-
- org.apache.ibatis.executor.CachingExecutor
-
-
Field Summary
-
Fields inherited from interface org.apache.ibatis.executor.Executor
NO_RESULT_HANDLER
-
-
Constructor Summary
Constructors Constructor Description CachingExecutor(Executor delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearLocalCache()voidclose(boolean forceRollback)voidcommit(boolean required)CacheKeycreateCacheKey(MappedStatement ms, Object parameterObject, RowBounds rowBounds, BoundSql boundSql)voiddeferLoad(MappedStatement ms, MetaObject resultObject, String property, CacheKey key, Class<?> targetType)List<BatchResult>flushStatements()TransactiongetTransaction()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 Detail
-
CachingExecutor
public CachingExecutor(Executor delegate)
-
-
Method Detail
-
getTransaction
public Transaction getTransaction()
- Specified by:
getTransactionin interfaceExecutor
-
update
public int update(MappedStatement ms, Object parameterObject) throws SQLException
- 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
public List<BatchResult> flushStatements() throws SQLException
- Specified by:
flushStatementsin interfaceExecutor- Throws:
SQLException
-
commit
public void commit(boolean required) throws SQLException- Specified by:
commitin interfaceExecutor- Throws:
SQLException
-
rollback
public void rollback(boolean required) throws SQLException- Specified by:
rollbackin interfaceExecutor- Throws:
SQLException
-
createCacheKey
public CacheKey createCacheKey(MappedStatement ms, Object parameterObject, RowBounds rowBounds, BoundSql boundSql)
- Specified by:
createCacheKeyin interfaceExecutor
-
isCached
public boolean isCached(MappedStatement ms, CacheKey key)
-
deferLoad
public void deferLoad(MappedStatement ms, MetaObject resultObject, String property, CacheKey key, Class<?> targetType)
-
clearLocalCache
public void clearLocalCache()
- Specified by:
clearLocalCachein interfaceExecutor
-
setExecutorWrapper
public void setExecutorWrapper(Executor executor)
- Specified by:
setExecutorWrapperin interfaceExecutor
-
-