org.apache.ibatis.executor
Class BatchExecutor

java.lang.Object
  extended by org.apache.ibatis.executor.BaseExecutor
      extended by org.apache.ibatis.executor.BatchExecutor
All Implemented Interfaces:
Executor

public class BatchExecutor
extends BaseExecutor


Field Summary
static int BATCH_UPDATE_RETURN_VALUE
           
 
Fields inherited from class org.apache.ibatis.executor.BaseExecutor
batchResults, configuration, deferredLoads, localCache, queryStack, transaction
 
Fields inherited from interface org.apache.ibatis.executor.Executor
NO_RESULT_HANDLER
 
Constructor Summary
BatchExecutor(Configuration configuration, Transaction transaction)
           
 
Method Summary
 List<BatchResult> doFlushStatements()
           
 List doQuery(MappedStatement ms, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler)
           
 int doUpdate(MappedStatement ms, Object parameterObject)
           
 
Methods inherited from class org.apache.ibatis.executor.BaseExecutor
clearLocalCache, close, closeStatement, commit, createCacheKey, deferLoad, flushStatements, getTransaction, isCached, isClosed, query, rollback, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BATCH_UPDATE_RETURN_VALUE

public static final int BATCH_UPDATE_RETURN_VALUE
See Also:
Constant Field Values
Constructor Detail

BatchExecutor

public BatchExecutor(Configuration configuration,
                     Transaction transaction)
Method Detail

doUpdate

public int doUpdate(MappedStatement ms,
                    Object parameterObject)
             throws SQLException
Specified by:
doUpdate in class BaseExecutor
Throws:
SQLException

doQuery

public List doQuery(MappedStatement ms,
                    Object parameterObject,
                    RowBounds rowBounds,
                    ResultHandler resultHandler)
             throws SQLException
Specified by:
doQuery in class BaseExecutor
Throws:
SQLException

doFlushStatements

public List<BatchResult> doFlushStatements()
                                    throws SQLException
Specified by:
doFlushStatements in class BaseExecutor
Throws:
SQLException


Copyright © 2010. All Rights Reserved.