public class JpaBatchConfigurer extends BasicBatchConfigurer
BasicBatchConfigurer
tailored for JPA.Modifier | Constructor and Description |
---|---|
protected |
JpaBatchConfigurer(BatchProperties properties,
DataSource dataSource,
TransactionManagerCustomizers transactionManagerCustomizers,
javax.persistence.EntityManagerFactory entityManagerFactory)
Create a new
BasicBatchConfigurer instance. |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.transaction.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, javax.persistence.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 org.springframework.transaction.PlatformTransactionManager createTransactionManager()
createTransactionManager
in class BasicBatchConfigurer
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.