Package org.apache.ibatis.executor
Interface Executor
-
- All Known Implementing Classes:
BaseExecutor,BatchExecutor,CachingExecutor,ReuseExecutor,SimpleExecutor
public interface Executor- Author:
- Clinton Begin
-
-
Field Summary
Fields Modifier and Type Field Description static ResultHandlerNO_RESULT_HANDLER
-
Method Summary
All Methods Instance Methods Abstract 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 parameter, RowBounds rowBounds, ResultHandler resultHandler)<E> List<E>query(MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, CacheKey cacheKey, BoundSql boundSql)<E> Cursor<E>queryCursor(MappedStatement ms, Object parameter, RowBounds rowBounds)voidrollback(boolean required)voidsetExecutorWrapper(Executor executor)intupdate(MappedStatement ms, Object parameter)
-
-
-
Field Detail
-
NO_RESULT_HANDLER
static final ResultHandler NO_RESULT_HANDLER
-
-
Method Detail
-
update
int update(MappedStatement ms, Object parameter) throws SQLException
- Throws:
SQLException
-
query
<E> List<E> query(MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, CacheKey cacheKey, BoundSql boundSql) throws SQLException
- Throws:
SQLException
-
query
<E> List<E> query(MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler) throws SQLException
- Throws:
SQLException
-
queryCursor
<E> Cursor<E> queryCursor(MappedStatement ms, Object parameter, RowBounds rowBounds) throws SQLException
- Throws:
SQLException
-
flushStatements
List<BatchResult> flushStatements() throws SQLException
- Throws:
SQLException
-
commit
void commit(boolean required) throws SQLException- Throws:
SQLException
-
rollback
void rollback(boolean required) throws SQLException- Throws:
SQLException
-
createCacheKey
CacheKey createCacheKey(MappedStatement ms, Object parameterObject, RowBounds rowBounds, BoundSql boundSql)
-
isCached
boolean isCached(MappedStatement ms, CacheKey key)
-
clearLocalCache
void clearLocalCache()
-
deferLoad
void deferLoad(MappedStatement ms, MetaObject resultObject, String property, CacheKey key, Class<?> targetType)
-
getTransaction
Transaction getTransaction()
-
close
void close(boolean forceRollback)
-
isClosed
boolean isClosed()
-
setExecutorWrapper
void setExecutorWrapper(Executor executor)
-
-