public abstract class BaseExecutor extends Object implements Executor
Modifier and Type | Field and Description |
---|---|
protected Configuration |
configuration |
protected ConcurrentLinkedQueue<org.apache.ibatis.executor.BaseExecutor.DeferredLoad> |
deferredLoads |
protected PerpetualCache |
localCache |
protected PerpetualCache |
localOutputParameterCache |
protected int |
queryStack |
protected Transaction |
transaction |
protected Executor |
wrapper |
NO_RESULT_HANDLER
Modifier | Constructor and Description |
---|---|
protected |
BaseExecutor(Configuration configuration,
Transaction transaction) |
Modifier and Type | Method and Description |
---|---|
void |
clearLocalCache() |
void |
close(boolean forceRollback) |
protected void |
closeStatement(Statement statement) |
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) |
protected abstract List<BatchResult> |
doFlushStatements(boolean isRollback) |
protected abstract <E> List<E> |
doQuery(MappedStatement ms,
Object parameter,
RowBounds rowBounds,
ResultHandler resultHandler,
BoundSql boundSql) |
protected abstract int |
doUpdate(MappedStatement ms,
Object parameter) |
List<BatchResult> |
flushStatements() |
List<BatchResult> |
flushStatements(boolean isRollBack) |
protected Connection |
getConnection(Log statementLog) |
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) |
void |
rollback(boolean required) |
void |
setExecutorWrapper(Executor wrapper) |
int |
update(MappedStatement ms,
Object parameter) |
protected Transaction transaction
protected Executor wrapper
protected ConcurrentLinkedQueue<org.apache.ibatis.executor.BaseExecutor.DeferredLoad> deferredLoads
protected PerpetualCache localCache
protected PerpetualCache localOutputParameterCache
protected Configuration configuration
protected int queryStack
protected BaseExecutor(Configuration configuration, Transaction transaction)
public Transaction getTransaction()
getTransaction
in interface Executor
public int update(MappedStatement ms, Object parameter) throws SQLException
update
in interface Executor
SQLException
public List<BatchResult> flushStatements() throws SQLException
flushStatements
in interface Executor
SQLException
public List<BatchResult> flushStatements(boolean isRollBack) throws SQLException
SQLException
public <E> List<E> query(MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler) throws SQLException
query
in interface Executor
SQLException
public <E> List<E> query(MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, CacheKey key, BoundSql boundSql) throws SQLException
query
in interface Executor
SQLException
public void deferLoad(MappedStatement ms, MetaObject resultObject, String property, CacheKey key, Class<?> targetType)
public CacheKey createCacheKey(MappedStatement ms, Object parameterObject, RowBounds rowBounds, BoundSql boundSql)
createCacheKey
in interface Executor
public boolean isCached(MappedStatement ms, CacheKey key)
public void commit(boolean required) throws SQLException
commit
in interface Executor
SQLException
public void rollback(boolean required) throws SQLException
rollback
in interface Executor
SQLException
public void clearLocalCache()
clearLocalCache
in interface Executor
protected abstract int doUpdate(MappedStatement ms, Object parameter) throws SQLException
SQLException
protected abstract List<BatchResult> doFlushStatements(boolean isRollback) throws SQLException
SQLException
protected abstract <E> List<E> doQuery(MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql) throws SQLException
SQLException
protected void closeStatement(Statement statement)
protected Connection getConnection(Log statementLog) throws SQLException
SQLException
public void setExecutorWrapper(Executor wrapper)
setExecutorWrapper
in interface Executor
Copyright © 2010–2015 MyBatis.org. All rights reserved.