Package org.apache.ibatis.executor
Class SimpleExecutor
- java.lang.Object
-
- org.apache.ibatis.executor.BaseExecutor
-
- org.apache.ibatis.executor.SimpleExecutor
-
- All Implemented Interfaces:
Executor
public class SimpleExecutor extends BaseExecutor
- Author:
- Clinton Begin
-
-
Field Summary
-
Fields inherited from class org.apache.ibatis.executor.BaseExecutor
configuration, deferredLoads, localCache, localOutputParameterCache, queryStack, transaction, wrapper
-
Fields inherited from interface org.apache.ibatis.executor.Executor
NO_RESULT_HANDLER
-
-
Constructor Summary
Constructors Constructor Description SimpleExecutor(Configuration configuration, Transaction transaction)
-
Method Summary
Modifier and Type Method Description java.util.List<BatchResult>
doFlushStatements(boolean isRollback)
<E> java.util.List<E>
doQuery(MappedStatement ms, java.lang.Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
protected <E> Cursor<E>
doQueryCursor(MappedStatement ms, java.lang.Object parameter, RowBounds rowBounds, BoundSql boundSql)
int
doUpdate(MappedStatement ms, java.lang.Object parameter)
-
Methods inherited from class org.apache.ibatis.executor.BaseExecutor
applyTransactionTimeout, clearLocalCache, close, closeStatement, commit, createCacheKey, deferLoad, flushStatements, flushStatements, getConnection, getTransaction, isCached, isClosed, query, query, queryCursor, rollback, setExecutorWrapper, update
-
-
-
-
Constructor Detail
-
SimpleExecutor
public SimpleExecutor(Configuration configuration, Transaction transaction)
-
-
Method Detail
-
doUpdate
public int doUpdate(MappedStatement ms, java.lang.Object parameter) throws java.sql.SQLException
- Specified by:
doUpdate
in classBaseExecutor
- Throws:
java.sql.SQLException
-
doQuery
public <E> java.util.List<E> doQuery(MappedStatement ms, java.lang.Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql) throws java.sql.SQLException
- Specified by:
doQuery
in classBaseExecutor
- Throws:
java.sql.SQLException
-
doQueryCursor
protected <E> Cursor<E> doQueryCursor(MappedStatement ms, java.lang.Object parameter, RowBounds rowBounds, BoundSql boundSql) throws java.sql.SQLException
- Specified by:
doQueryCursor
in classBaseExecutor
- Throws:
java.sql.SQLException
-
doFlushStatements
public java.util.List<BatchResult> doFlushStatements(boolean isRollback)
- Specified by:
doFlushStatements
in classBaseExecutor
-
-