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 TypeMethodDescriptionvoid
void
close(boolean forceRollback)
void
commit(boolean required)
createCacheKey(MappedStatement ms, Object parameterObject, RowBounds rowBounds, BoundSql boundSql)
void
deferLoad(MappedStatement ms, MetaObject resultObject, String property, CacheKey key, Class<?> targetType)
boolean
isCached(MappedStatement ms, CacheKey key)
boolean
isClosed()
<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)
void
rollback(boolean required)
void
setExecutorWrapper(Executor executor)
int
update(MappedStatement ms, Object parameterObject)
-
Constructor Details
-
CachingExecutor
-
-
Method Details
-
getTransaction
- Specified by:
getTransaction
in interfaceExecutor
-
close
public void close(boolean forceRollback) -
isClosed
public boolean isClosed() -
update
- Specified by:
update
in interfaceExecutor
- Throws:
SQLException
-
queryCursor
public <E> Cursor<E> queryCursor(MappedStatement ms, Object parameter, RowBounds rowBounds) throws SQLException- Specified by:
queryCursor
in interfaceExecutor
- Throws:
SQLException
-
query
public <E> List<E> query(MappedStatement ms, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler) throws SQLException- Specified by:
query
in 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:
query
in interfaceExecutor
- Throws:
SQLException
-
flushStatements
- Specified by:
flushStatements
in interfaceExecutor
- Throws:
SQLException
-
commit
- Specified by:
commit
in interfaceExecutor
- Throws:
SQLException
-
rollback
- Specified by:
rollback
in interfaceExecutor
- Throws:
SQLException
-
createCacheKey
public CacheKey createCacheKey(MappedStatement ms, Object parameterObject, RowBounds rowBounds, BoundSql boundSql)- Specified by:
createCacheKey
in interfaceExecutor
-
isCached
-
deferLoad
public void deferLoad(MappedStatement ms, MetaObject resultObject, String property, CacheKey key, Class<?> targetType) -
clearLocalCache
public void clearLocalCache()- Specified by:
clearLocalCache
in interfaceExecutor
-
setExecutorWrapper
- Specified by:
setExecutorWrapper
in interfaceExecutor
-