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
Modifier and Type Method Description voidclearLocalCache()voidclose(boolean forceRollback)voidcommit(boolean required)CacheKeycreateCacheKey(MappedStatement ms, java.lang.Object parameterObject, RowBounds rowBounds, BoundSql boundSql)voiddeferLoad(MappedStatement ms, MetaObject resultObject, java.lang.String property, CacheKey key, java.lang.Class<?> targetType)java.util.List<BatchResult>flushStatements()TransactiongetTransaction()booleanisCached(MappedStatement ms, CacheKey key)booleanisClosed()<E> java.util.List<E>query(MappedStatement ms, java.lang.Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler)<E> java.util.List<E>query(MappedStatement ms, java.lang.Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, CacheKey key, BoundSql boundSql)<E> Cursor<E>queryCursor(MappedStatement ms, java.lang.Object parameter, RowBounds rowBounds)voidrollback(boolean required)voidsetExecutorWrapper(Executor executor)intupdate(MappedStatement ms, java.lang.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, java.lang.Object parameterObject) throws java.sql.SQLException
-
query
public <E> java.util.List<E> query(MappedStatement ms, java.lang.Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler) throws java.sql.SQLException
-
queryCursor
public <E> Cursor<E> queryCursor(MappedStatement ms, java.lang.Object parameter, RowBounds rowBounds) throws java.sql.SQLException
- Specified by:
queryCursorin interfaceExecutor- Throws:
java.sql.SQLException
-
query
public <E> java.util.List<E> query(MappedStatement ms, java.lang.Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, CacheKey key, BoundSql boundSql) throws java.sql.SQLException
-
flushStatements
public java.util.List<BatchResult> flushStatements() throws java.sql.SQLException
- Specified by:
flushStatementsin interfaceExecutor- Throws:
java.sql.SQLException
-
commit
public void commit(boolean required) throws java.sql.SQLException
-
rollback
public void rollback(boolean required) throws java.sql.SQLException
-
createCacheKey
public CacheKey createCacheKey(MappedStatement ms, java.lang.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, java.lang.String property, CacheKey key, java.lang.Class<?> targetType)
-
clearLocalCache
public void clearLocalCache()
- Specified by:
clearLocalCachein interfaceExecutor
-
setExecutorWrapper
public void setExecutorWrapper(Executor executor)
- Specified by:
setExecutorWrapperin interfaceExecutor
-
-