org.springframework.batch.core.repository.support
Class MapJobRepositoryFactoryBean

java.lang.Object
  extended by org.springframework.batch.core.repository.support.AbstractJobRepositoryFactoryBean
      extended by org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean
All Implemented Interfaces:
FactoryBean, InitializingBean

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

Constructor Summary
MapJobRepositoryFactoryBean()
          Create a new instance with a ResourcelessTransactionManager.
MapJobRepositoryFactoryBean(PlatformTransactionManager transactionManager)
          Create a new instance with the provided transaction manager.
 
Method Summary
 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()
           
 
Methods inherited from class org.springframework.batch.core.repository.support.AbstractJobRepositoryFactoryBean
afterPropertiesSet, getJobRepository, getObject, getObjectType, getTransactionManager, isSingleton, setIsolationLevelForCreate, setTransactionManager, setValidateTransactionState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapJobRepositoryFactoryBean

public MapJobRepositoryFactoryBean()
Create a new instance with a ResourcelessTransactionManager.


MapJobRepositoryFactoryBean

public MapJobRepositoryFactoryBean(PlatformTransactionManager transactionManager)
Create a new instance with the provided transaction manager.

Parameters:
transactionManager -
Method Detail

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 Exception
Specified by:
createJobExecutionDao in class AbstractJobRepositoryFactoryBean
Returns:
fully configured JobExecutionDao implementation.
Throws:
Exception

createJobInstanceDao

protected JobInstanceDao createJobInstanceDao()
                                       throws Exception
Specified by:
createJobInstanceDao in class AbstractJobRepositoryFactoryBean
Returns:
fully configured JobInstanceDao implementation.
Throws:
Exception

createStepExecutionDao

protected StepExecutionDao createStepExecutionDao()
                                           throws Exception
Specified by:
createStepExecutionDao in class AbstractJobRepositoryFactoryBean
Returns:
fully configured StepExecutionDao implementation.
Throws:
Exception

createExecutionContextDao

protected ExecutionContextDao createExecutionContextDao()
                                                 throws Exception
Specified by:
createExecutionContextDao in class AbstractJobRepositoryFactoryBean
Returns:
fully configured ExecutionContextDao implementation.
Throws:
Exception


Copyright © 2013 SpringSource. All Rights Reserved.