Class SqlSessionHolder

java.lang.Object
org.springframework.transaction.support.ResourceHolderSupport
org.mybatis.spring.SqlSessionHolder
All Implemented Interfaces:
org.springframework.transaction.support.ResourceHolder

public final class SqlSessionHolder extends org.springframework.transaction.support.ResourceHolderSupport
Used to keep current SqlSession in TransactionSynchronizationManager. The SqlSessionFactory that created that SqlSession is used as a key. ExecutorType is also kept to be able to check if the user is trying to change it during a TX (that is not allowed) and throw a Exception in that case.
Author:
Hunter Presnall, Eduardo Macarron