public abstract class

BaseExecutor

extends Object
implements Executor
java.lang.Object
   ↳ org.apache.ibatis.executor.BaseExecutor
Known Direct Subclasses

Summary

Fields
protected Configuration configuration
protected ConcurrentLinkedQueue<BaseExecutor.DeferredLoad> deferredLoads
protected PerpetualCache localCache
protected PerpetualCache localOutputParameterCache
protected int queryStack
protected Transaction transaction
protected Executor wrapper
[Expand]
Inherited Fields
From interface org.apache.ibatis.executor.Executor
Protected Constructors
BaseExecutor(Configuration configuration, Transaction transaction)
Public Methods
void clearLocalCache()
void close(boolean forceRollback)
void commit(boolean required)
CacheKey createCacheKey(MappedStatement ms, Object parameterObject, RowBounds rowBounds, BoundSql boundSql)
void deferLoad(MappedStatement ms, MetaObject resultObject, String property, CacheKey key, Class<?> targetType)
List<BatchResult> flushStatements()
List<BatchResult> flushStatements(boolean isRollBack)
Transaction getTransaction()
boolean isCached(MappedStatement ms, CacheKey key)
boolean isClosed()
<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 key, BoundSql boundSql)
<E> Cursor<E> queryCursor(MappedStatement ms, Object parameter, RowBounds rowBounds)
void rollback(boolean required)
void setExecutorWrapper(Executor wrapper)
int update(MappedStatement ms, Object parameter)
Protected Methods
void applyTransactionTimeout(Statement statement)
Apply a transaction timeout.
void closeStatement(Statement statement)
abstract List<BatchResult> doFlushStatements(boolean isRollback)
abstract <E> List<E> doQuery(MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
abstract <E> Cursor<E> doQueryCursor(MappedStatement ms, Object parameter, RowBounds rowBounds, BoundSql boundSql)
abstract int doUpdate(MappedStatement ms, Object parameter)
Connection getConnection(Log statementLog)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.ibatis.executor.Executor

Fields

protected Configuration configuration

protected ConcurrentLinkedQueue<BaseExecutor.DeferredLoad> deferredLoads

protected PerpetualCache localCache

protected PerpetualCache localOutputParameterCache

protected int queryStack

protected Transaction transaction

protected Executor wrapper

Protected Constructors

protected BaseExecutor (Configuration configuration, Transaction transaction)

Public Methods

public void clearLocalCache ()

public void close (boolean forceRollback)

public void commit (boolean required)

Throws
SQLException

public CacheKey createCacheKey (MappedStatement ms, Object parameterObject, RowBounds rowBounds, BoundSql boundSql)

public void deferLoad (MappedStatement ms, MetaObject resultObject, String property, CacheKey key, Class<?> targetType)

public List<BatchResult> flushStatements ()

Throws
SQLException

public List<BatchResult> flushStatements (boolean isRollBack)

Throws
SQLException

public Transaction getTransaction ()

public boolean isCached (MappedStatement ms, CacheKey key)

public boolean isClosed ()

public List<E> query (MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler)

Throws
SQLException

public List<E> query (MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, CacheKey key, BoundSql boundSql)

Throws
SQLException

public Cursor<E> queryCursor (MappedStatement ms, Object parameter, RowBounds rowBounds)

Throws
SQLException

public void rollback (boolean required)

Throws
SQLException

public void setExecutorWrapper (Executor wrapper)

public int update (MappedStatement ms, Object parameter)

Throws
SQLException

Protected Methods

protected void applyTransactionTimeout (Statement statement)

Apply a transaction timeout.

Parameters
statement a current statement
Throws
SQLException if a database access error occurs, this method is called on a closed Statement

protected void closeStatement (Statement statement)

protected abstract List<BatchResult> doFlushStatements (boolean isRollback)

Throws
SQLException

protected abstract List<E> doQuery (MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)

Throws
SQLException

protected abstract Cursor<E> doQueryCursor (MappedStatement ms, Object parameter, RowBounds rowBounds, BoundSql boundSql)

Throws
SQLException

protected abstract int doUpdate (MappedStatement ms, Object parameter)

Throws
SQLException

protected Connection getConnection (Log statementLog)

Throws
SQLException