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 ResultHandler
NO_RESULT_HANDLER
-
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 parameter, RowBounds rowBounds, ResultHandler resultHandler)
<E> java.util.List<E>
query(MappedStatement ms, java.lang.Object parameter, RowBounds rowBounds, ResultHandler resultHandler, CacheKey cacheKey, 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 parameter)
-
-
-
Field Detail
-
NO_RESULT_HANDLER
static final ResultHandler NO_RESULT_HANDLER
-
-
Method Detail
-
update
int update(MappedStatement ms, java.lang.Object parameter) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
query
<E> java.util.List<E> query(MappedStatement ms, java.lang.Object parameter, RowBounds rowBounds, ResultHandler resultHandler, CacheKey cacheKey, BoundSql boundSql) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
query
<E> java.util.List<E> query(MappedStatement ms, java.lang.Object parameter, RowBounds rowBounds, ResultHandler resultHandler) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
queryCursor
<E> Cursor<E> queryCursor(MappedStatement ms, java.lang.Object parameter, RowBounds rowBounds) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
flushStatements
java.util.List<BatchResult> flushStatements() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
commit
void commit(boolean required) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
rollback
void rollback(boolean required) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
createCacheKey
CacheKey createCacheKey(MappedStatement ms, java.lang.Object parameterObject, RowBounds rowBounds, BoundSql boundSql)
-
isCached
boolean isCached(MappedStatement ms, CacheKey key)
-
clearLocalCache
void clearLocalCache()
-
deferLoad
void deferLoad(MappedStatement ms, MetaObject resultObject, java.lang.String property, CacheKey key, java.lang.Class<?> targetType)
-
getTransaction
Transaction getTransaction()
-
close
void close(boolean forceRollback)
-
isClosed
boolean isClosed()
-
setExecutorWrapper
void setExecutorWrapper(Executor executor)
-
-