Example usage for org.apache.ibatis.executor BatchExecutor getTransaction

List of usage examples for org.apache.ibatis.executor BatchExecutor getTransaction

Introduction

In this page you can find the example usage for org.apache.ibatis.executor BatchExecutor getTransaction.

Prototype

@Override
    public Transaction getTransaction() 

Source Link

Usage

From source file:com.luxoft.mybatis.splitter.UpdateSplitterPlugin.java

License:Apache License

private Object replaceBatchExecutor(BatchExecutor target) {
    try {//from   w w w.  j  a va 2s.  co  m
        return new ReusingBatchExecutor((Configuration) executorConfiguration.get(target),
                target.getTransaction(), retainExecuteOrder, reuseBetweenFlushes);
    } catch (IllegalAccessException e) {
        throw new ExecutorException(MSG_ERROR_ACCESSING_CONFIGURATION, e);
    }
}