类 JpaBatchConfigurer
- java.lang.Object
- org.springframework.boot.autoconfigure.batch.BasicBatchConfigurer
- org.springframework.boot.autoconfigure.batch.JpaBatchConfigurer
- 所有已实现的接口:
org.springframework.batch.core.configuration.annotation.BatchConfigurer
public class JpaBatchConfigurer extends BasicBatchConfigurer
ABasicBatchConfigurertailored for JPA.
构造器概要
构造器 限定符 构造器 说明 protectedJpaBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers, javax.persistence.EntityManagerFactory entityManagerFactory)Create a newBasicBatchConfigurerinstance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected org.springframework.transaction.PlatformTransactionManagercreateTransactionManager()protected StringdetermineIsolationLevel()Determine the isolation level for create* operation of theJobRepository.从类继承的方法 org.springframework.boot.autoconfigure.batch.BasicBatchConfigurer
createJobExplorer, createJobLauncher, createJobRepository, getJobExplorer, getJobLauncher, getJobRepository, getTransactionManager, initialize
构造器详细资料
JpaBatchConfigurer
protected JpaBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers, javax.persistence.EntityManagerFactory entityManagerFactory)
Create a newBasicBatchConfigurerinstance.- 参数:
properties- the batch propertiesdataSource- the underlying data sourcetransactionManagerCustomizers- transaction manager customizers (ornull)entityManagerFactory- the entity manager factory (ornull)
方法详细资料
determineIsolationLevel
protected String determineIsolationLevel()
从类复制的说明:BasicBatchConfigurerDetermine the isolation level for create* operation of theJobRepository.- 覆盖:
determineIsolationLevel在类中BasicBatchConfigurer- 返回:
- the isolation level or
nullto use the default
createTransactionManager
protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()