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
static void clear()
           
 ExecutionContext findExecutionContext(StepExecution stepExecution)
          Find all ExecutionContext for the given StepExecution.
 StepExecution getStepExecution(JobExecution jobExecution, Step step)
           
 void saveOrUpdateExecutionContext(StepExecution stepExecution)
          Save the ExecutionContext of the given StepExecution.
 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 static void clear()

findExecutionContext

public ExecutionContext findExecutionContext(StepExecution stepExecution)
Description copied from interface: StepExecutionDao
Find all ExecutionContext for the given StepExecution.

Specified by:
findExecutionContext in interface StepExecutionDao

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,
                                      Step step)
Specified by:
getStepExecution in interface StepExecutionDao

saveOrUpdateExecutionContext

public void saveOrUpdateExecutionContext(StepExecution stepExecution)
Description copied from interface: StepExecutionDao
Save the ExecutionContext of the given StepExecution.

Specified by:
saveOrUpdateExecutionContext in interface StepExecutionDao
Parameters:
stepExecution - the StepExecution containing the ExecutionContext to be saved.


Copyright © 2008 SpringSource. All Rights Reserved.