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 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, initializeprotected 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()
BasicBatchConfigurerJobRepository.determineIsolationLevel in class BasicBatchConfigurernull to use the defaultprotected org.springframework.transaction.PlatformTransactionManager createTransactionManager()
createTransactionManager in class BasicBatchConfigurerCopyright © 2019 Pivotal Software, Inc.. All rights reserved.