|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
SqlSessionFactory
instance.
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
SqlSession
passed as an argument is being managed by Spring
MapperFactoryBean
.ItemWriter
that uses the batching features from
SqlSessionTemplate
to execute a batch of statements for all items
provided.MyBatisBatchItemWriter.write(List)
is called inside a transaction.DataAccessExceptionTranslator
instance.
org.springframework.batch.item.ItemReader
for reading database
records using MyBatis in a paging fashion.UncategorizedDataAccessException
, for MyBatis system errors that do
not match any concrete org.springframework.dao
exceptions.MapperFactoryBean#setAddToConfig(boolean)
SqlSessionFactory
config file.
<properties>
tag in the configuration xml file.
DataSource
that this instance should manage transactions for.
Environment
you have set in the MyBatis
config file.
SqlSessionFactory
configuration at runtime.
SqlSessionFactory
for injection purposes.
SqlSessionFactory
for injection purposes.
SqlSessionFactory
to use in the case that there is
more than one in the spring context.
SqlSessionFactoryBuilder
to use when creating the SqlSessionFactory
.
SqlSessionTemplate
.
SqlSessionTemplate
to use in the case that there is
more than one in the spring context.
SpringManagedTransaction
handles the lifecycle of a JDBC connection.SpringManagedTransaction
.FactoryBean
that creates an MyBatis SqlSessionFactory
.SqlSession
in 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 |