public class JpaBatchConfigurer extends BasicBatchConfigurer
BasicBatchConfigurer
tailored for JPA.Modifier | Constructor and Description |
---|---|
protected |
JpaBatchConfigurer(BatchProperties properties,
DataSource dataSource,
TransactionManagerCustomizers transactionManagerCustomizers,
EntityManagerFactory entityManagerFactory)
Create a new
BasicBatchConfigurer instance. |
Modifier and Type | Method and Description |
---|---|
protected PlatformTransactionManager |
createTransactionManager() |
protected String |
determineIsolationLevel()
Determine the isolation level for create* operation of the
JobRepository . |
createJobExplorer, createJobLauncher, createJobRepository, getJobExplorer, getJobLauncher, getJobRepository, getTransactionManager, initialize
protected JpaBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers, EntityManagerFactory entityManagerFactory)
BasicBatchConfigurer
instance.properties
- the batch propertiesdataSource
- the underlying data sourcetransactionManagerCustomizers
- transaction manager customizers (or
null
)entityManagerFactory
- the entity manager factory (or null
)protected String determineIsolationLevel()
BasicBatchConfigurer
JobRepository
.determineIsolationLevel
in class BasicBatchConfigurer
null
to use the defaultprotected PlatformTransactionManager createTransactionManager()
createTransactionManager
in class BasicBatchConfigurer