org.springframework.batch.core.repository.dao
Class MapStepExecutionDao

java.lang.Object
  extended by org.springframework.batch.core.repository.dao.MapStepExecutionDao
All Implemented Interfaces:
StepExecutionDao

public class MapStepExecutionDao
extends Object
implements StepExecutionDao

In-memory implementation of StepExecutionDao.


Constructor Summary
MapStepExecutionDao()
           
 
Method Summary
 void addStepExecutions(JobExecution jobExecution)
          Retrieve all the StepExecution for the parent JobExecution.
 void clear()
           
 StepExecution getStepExecution(JobExecution jobExecution, Long stepExecutionId)
          Retrieve a StepExecution from its id.
 void saveStepExecution(StepExecution stepExecution)
          Save the given StepExecution.
 void updateStepExecution(StepExecution stepExecution)
          Update the given StepExecution Preconditions: Id must not be null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapStepExecutionDao

public MapStepExecutionDao()
Method Detail

clear

public void clear()

saveStepExecution

public void saveStepExecution(StepExecution stepExecution)
Description copied from interface: StepExecutionDao
Save the given StepExecution. Preconditions: Id must be null. Postconditions: Id will be set to a unique Long.

Specified by:
saveStepExecution in interface StepExecutionDao

updateStepExecution

public void updateStepExecution(StepExecution stepExecution)
Description copied from interface: StepExecutionDao
Update the given StepExecution Preconditions: Id must not be null.

Specified by:
updateStepExecution in interface StepExecutionDao

getStepExecution

public StepExecution getStepExecution(JobExecution jobExecution,
                                      Long stepExecutionId)
Description copied from interface: StepExecutionDao
Retrieve a StepExecution from its id.

Specified by:
getStepExecution in interface StepExecutionDao
Parameters:
jobExecution - the parent JobExecution
stepExecutionId - the step execution id
Returns:
a StepExecution

addStepExecutions

public void addStepExecutions(JobExecution jobExecution)
Description copied from interface: StepExecutionDao
Retrieve all the StepExecution for the parent JobExecution.

Specified by:
addStepExecutions in interface StepExecutionDao
Parameters:
jobExecution - the parent job execution


Copyright © 2013 SpringSource. All Rights Reserved.