public class MapJobRepositoryFactoryBean extends AbstractJobRepositoryFactoryBean
FactoryBean that automates the creation of a
SimpleJobRepository 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 that
ResourcelessTransactionManager 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.| Constructor and Description |
|---|
MapJobRepositoryFactoryBean()
Create a new instance with a
ResourcelessTransactionManager. |
MapJobRepositoryFactoryBean(org.springframework.transaction.PlatformTransactionManager transactionManager)
Create a new instance with the provided transaction manager.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
afterPropertiesSet, getJobRepository, getObject, getObjectType, getTransactionManager, isSingleton, setIsolationLevelForCreate, setTransactionManager, setValidateTransactionStatepublic MapJobRepositoryFactoryBean()
ResourcelessTransactionManager.public MapJobRepositoryFactoryBean(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager - PlatformTransactionManagerpublic JobExecutionDao getJobExecutionDao()
public JobInstanceDao getJobInstanceDao()
public StepExecutionDao getStepExecutionDao()
public ExecutionContextDao getExecutionContextDao()
public void clear()
protected JobExecutionDao createJobExecutionDao() throws java.lang.Exception
createJobExecutionDao in class AbstractJobRepositoryFactoryBeanJobExecutionDao implementation.java.lang.Exception - thrown if error occurs creating JobExecutionDao.protected JobInstanceDao createJobInstanceDao() throws java.lang.Exception
createJobInstanceDao in class AbstractJobRepositoryFactoryBeanJobInstanceDao implementation.java.lang.Exception - thrown if error occurs creating JobInstanceDao.protected StepExecutionDao createStepExecutionDao() throws java.lang.Exception
createStepExecutionDao in class AbstractJobRepositoryFactoryBeanStepExecutionDao implementation.java.lang.Exception - thrown if error occurs creating StepExecutionDao.protected ExecutionContextDao createExecutionContextDao() throws java.lang.Exception
createExecutionContextDao in class AbstractJobRepositoryFactoryBeanExecutionContextDao implementation.java.lang.Exception - thrown if error occurs creating ExecutionContextDao.