类 MapJobRepositoryFactoryBean
- java.lang.Object
- org.springframework.batch.core.repository.support.AbstractJobRepositoryFactoryBean
- org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean
- 所有已实现的接口:
org.springframework.beans.factory.FactoryBean<JobRepository>
,org.springframework.beans.factory.InitializingBean
public class MapJobRepositoryFactoryBean extends AbstractJobRepositoryFactoryBean
AFactoryBean
that automates the creation of aSimpleJobRepository
using non-persistent in-memory DAO implementations. This repository is only really intended for use in testing and rapid prototyping. In such settings you might find thatResourcelessTransactionManager
is useful (as long as your business logic does not use a relational database). Not suited for use in multi-threaded jobs with splits, although it should be safe to use in a multi-threaded step.- 作者:
- Robert Kasanicky
构造器概要
构造器 构造器 说明 MapJobRepositoryFactoryBean()
Create a new instance with aResourcelessTransactionManager
.MapJobRepositoryFactoryBean(org.springframework.transaction.PlatformTransactionManager transactionManager)
Create a new instance with the provided transaction manager.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
clear()
Convenience method to clear all the map DAOs globally, removing all entities.protected ExecutionContextDao
createExecutionContextDao()
protected JobExecutionDao
createJobExecutionDao()
protected JobInstanceDao
createJobInstanceDao()
protected StepExecutionDao
createStepExecutionDao()
ExecutionContextDao
getExecutionContextDao()
JobExecutionDao
getJobExecutionDao()
JobInstanceDao
getJobInstanceDao()
StepExecutionDao
getStepExecutionDao()
从类继承的方法 org.springframework.batch.core.repository.support.AbstractJobRepositoryFactoryBean
afterPropertiesSet, getJobRepository, getObject, getObjectType, getTransactionManager, isSingleton, setIsolationLevelForCreate, setTransactionManager, setValidateTransactionState
构造器详细资料
MapJobRepositoryFactoryBean
public MapJobRepositoryFactoryBean()
Create a new instance with aResourcelessTransactionManager
.
MapJobRepositoryFactoryBean
public MapJobRepositoryFactoryBean(org.springframework.transaction.PlatformTransactionManager transactionManager)
Create a new instance with the provided transaction manager.- 参数:
transactionManager
-PlatformTransactionManager
方法详细资料
getJobExecutionDao
public JobExecutionDao getJobExecutionDao()
getJobInstanceDao
public JobInstanceDao getJobInstanceDao()
getStepExecutionDao
public StepExecutionDao getStepExecutionDao()
getExecutionContextDao
public ExecutionContextDao getExecutionContextDao()
clear
public void clear()
Convenience method to clear all the map DAOs globally, removing all entities.
createJobExecutionDao
protected JobExecutionDao createJobExecutionDao() throws java.lang.Exception
- 指定者:
createJobExecutionDao
在类中AbstractJobRepositoryFactoryBean
- 返回:
- fully configured
JobExecutionDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs creating JobExecutionDao.
createJobInstanceDao
protected JobInstanceDao createJobInstanceDao() throws java.lang.Exception
- 指定者:
createJobInstanceDao
在类中AbstractJobRepositoryFactoryBean
- 返回:
- fully configured
JobInstanceDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs creating JobInstanceDao.
createStepExecutionDao
protected StepExecutionDao createStepExecutionDao() throws java.lang.Exception
- 指定者:
createStepExecutionDao
在类中AbstractJobRepositoryFactoryBean
- 返回:
- fully configured
StepExecutionDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs creating StepExecutionDao.
createExecutionContextDao
protected ExecutionContextDao createExecutionContextDao() throws java.lang.Exception
- 指定者:
createExecutionContextDao
在类中AbstractJobRepositoryFactoryBean
- 返回:
- fully configured
ExecutionContextDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs creating ExecutionContextDao.