org.apache.ibatis.executor
Class CachingExecutor
java.lang.Object
org.apache.ibatis.executor.CachingExecutor
- All Implemented Interfaces:
- Executor
public class CachingExecutor
- extends Object
- implements Executor
Method Summary |
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)
|
List<BatchResult> |
flushStatements()
|
Transaction |
getTransaction()
|
boolean |
isCached(MappedStatement ms,
CacheKey key)
|
boolean |
isClosed()
|
|
query(MappedStatement ms,
Object parameterObject,
RowBounds rowBounds,
ResultHandler resultHandler)
|
|
query(MappedStatement ms,
Object parameterObject,
RowBounds rowBounds,
ResultHandler resultHandler,
CacheKey key,
BoundSql boundSql)
|
void |
rollback(boolean required)
|
int |
update(MappedStatement ms,
Object parameterObject)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingExecutor
public CachingExecutor(Executor delegate)
CachingExecutor
public CachingExecutor(Executor delegate,
boolean autoCommit)
getTransaction
public Transaction getTransaction()
- Specified by:
getTransaction
in interface Executor
close
public void close(boolean forceRollback)
- Specified by:
close
in interface Executor
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interface Executor
update
public int update(MappedStatement ms,
Object parameterObject)
throws SQLException
- Specified by:
update
in interface Executor
- Throws:
SQLException
query
public <E> List<E> query(MappedStatement ms,
Object parameterObject,
RowBounds rowBounds,
ResultHandler resultHandler)
throws SQLException
- Specified by:
query
in interface Executor
- Throws:
SQLException
query
public <E> List<E> query(MappedStatement ms,
Object parameterObject,
RowBounds rowBounds,
ResultHandler resultHandler,
CacheKey key,
BoundSql boundSql)
throws SQLException
- Specified by:
query
in interface Executor
- Throws:
SQLException
flushStatements
public List<BatchResult> flushStatements()
throws SQLException
- Specified by:
flushStatements
in interface Executor
- Throws:
SQLException
commit
public void commit(boolean required)
throws SQLException
- Specified by:
commit
in interface Executor
- Throws:
SQLException
rollback
public void rollback(boolean required)
throws SQLException
- Specified by:
rollback
in interface Executor
- Throws:
SQLException
createCacheKey
public CacheKey createCacheKey(MappedStatement ms,
Object parameterObject,
RowBounds rowBounds,
BoundSql boundSql)
- Specified by:
createCacheKey
in interface Executor
isCached
public boolean isCached(MappedStatement ms,
CacheKey key)
- Specified by:
isCached
in interface Executor
deferLoad
public void deferLoad(MappedStatement ms,
MetaObject resultObject,
String property,
CacheKey key)
- Specified by:
deferLoad
in interface Executor
clearLocalCache
public void clearLocalCache()
- Specified by:
clearLocalCache
in interface Executor
Copyright © 2010-2012 MyBatis.org. All Rights Reserved.