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 void
clearLocalCache()
void
close(boolean forceRollback)
void
commit(boolean required)
CacheKey
createCacheKey(MappedStatement ms, java.lang.Object parameterObject, RowBounds rowBounds, BoundSql boundSql)
void
deferLoad(MappedStatement ms, MetaObject resultObject, java.lang.String property, CacheKey key, java.lang.Class<?> targetType)
java.util.List<BatchResult>
flushStatements()
Transaction
getTransaction()
boolean
isCached(MappedStatement ms, CacheKey key)
boolean
isClosed()
<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)
void
rollback(boolean required)
void
setExecutorWrapper(Executor executor)
int
update(MappedStatement ms, java.lang.Object parameterObject)
-
-
-
Constructor Detail
-
CachingExecutor
public CachingExecutor(Executor delegate)
-
-
Method Detail
-
getTransaction
public Transaction getTransaction()
- Specified by:
getTransaction
in 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:
queryCursor
in 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:
flushStatements
in 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:
createCacheKey
in 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:
clearLocalCache
in interfaceExecutor
-
setExecutorWrapper
public void setExecutorWrapper(Executor executor)
- Specified by:
setExecutorWrapper
in interfaceExecutor
-
-