public class MapJobRepositoryFactoryBean
extends AbstractJobRepositoryFactoryBean
A
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.
Author:
Robert Kasanicky
MapJobRepositoryFactoryBean
(org.springframework.transaction.PlatformTransactionManager transactionManager)
Create a new instance with the provided transaction manager.
Methods inherited from class org.springframework.batch.core.repository.support.
AbstractJobRepositoryFactoryBean
afterPropertiesSet
,
getJobRepository
,
getObject
,
getObjectType
,
getTransactionManager
,
isSingleton
,
setIsolationLevelForCreate
,
setTransactionManager
,
setValidateTransactionState
MapJobRepositoryFactoryBean
public MapJobRepositoryFactoryBean(org.springframework.transaction.PlatformTransactionManager transactionManager)
Create a new instance with the provided transaction manager.
Parameters:
transactionManager
-
PlatformTransactionManager
clear
public void clear()
Convenience method to clear all the map DAOs globally, removing all
entities.
createJobExecutionDao
protected JobExecutionDao createJobExecutionDao()
throws java.lang.Exception
Specified by:
createJobExecutionDao
in class
AbstractJobRepositoryFactoryBean
Returns:
fully configured
JobExecutionDao
implementation.
Throws:
java.lang.Exception
createJobInstanceDao
protected JobInstanceDao createJobInstanceDao()
throws java.lang.Exception
Specified by:
createJobInstanceDao
in class
AbstractJobRepositoryFactoryBean
Returns:
fully configured
JobInstanceDao
implementation.
Throws:
java.lang.Exception
createStepExecutionDao
protected StepExecutionDao createStepExecutionDao()
throws java.lang.Exception
Specified by:
createStepExecutionDao
in class
AbstractJobRepositoryFactoryBean
Returns:
fully configured
StepExecutionDao
implementation.
Throws:
java.lang.Exception
createExecutionContextDao
protected ExecutionContextDao createExecutionContextDao()
throws java.lang.Exception
Specified by:
createExecutionContextDao
in class
AbstractJobRepositoryFactoryBean
Returns:
fully configured
ExecutionContextDao
implementation.
Throws:
java.lang.Exception