List of usage examples for org.apache.ibatis.executor ReuseExecutor ReuseExecutor
public ReuseExecutor(Configuration configuration, Transaction transaction)
From source file:com.dmm.framework.basedb.apache.ibatis.session.Configuration.java
License:Apache License
public Executor newExecutor(Transaction transaction, ExecutorType executorType) { executorType = executorType == null ? defaultExecutorType : executorType; executorType = executorType == null ? ExecutorType.SIMPLE : executorType; Executor executor;// w ww.j a va 2 s .co m if (ExecutorType.BATCH == executorType) { executor = new BatchExecutor(this, transaction); } else if (ExecutorType.REUSE == executorType) { executor = new ReuseExecutor(this, transaction); } else { executor = new SimpleExecutor(this, transaction); } if (cacheEnabled) { executor = new CachingExecutor(executor); } executor = (Executor) interceptorChain.pluginAll(executor); return executor; }