|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
SqlSession
passed as an argument is managed by Spring TransactionSynchronizationManager
If it is not, it closes it, otherwise it just updates the reference counter and
lets Spring call the close callback when the managed transaction ends
SqlSession
from the SqlSessionFactory
provided as a parameter and using its DataSource
and ExecutorType
DataSourceUtils
to get a
Spring managed Connection
, then creates a new SqlSession
with this connection and synchronizes it with the transaction.
SqlSession
passed as an argument is being managed by Spring
MapperFactoryBean
.org.springframework.dao
exceptions.<properties>
tag in the configuration xml file.
JdbcTransaction
and the
ManagedTransaction
.SpringManagedTransaction
.FactoryBean
that creates an MyBatis
SqlSessionFactory
.TransactionSynchronizationManager
.SqlSession
that works with Spring
transaction management to ensure that that the actual SqlSession used is the
one associated with the current Spring transaction.SqlSessionFactory
provided as an argument.
SqlSessionFactory
provided as an argument and the given ExecutorType
ExecutorType
cannot be changed once the SqlSessionTemplate
is constructed.
SqlSession
with the given
SqlSessionFactory
and ExecutorType
.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |