org.springframework.batch.core.repository.dao
Interface StepExecutionDao

All Known Implementing Classes:
JdbcStepExecutionDao, MapStepExecutionDao

public interface StepExecutionDao


Method Summary
 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.
 

Method Detail

saveStepExecution

void saveStepExecution(StepExecution stepExecution)
Save the given StepExecution. Preconditions: Id must be null. Postconditions: Id will be set to a unique Long.

Parameters:
stepExecution -

updateStepExecution

void updateStepExecution(StepExecution stepExecution)
Update the given StepExecution Preconditions: Id must not be null.

Parameters:
stepExecution -

findExecutionContext

ExecutionContext findExecutionContext(StepExecution stepExecution)
Find all ExecutionContext for the given StepExecution.

Throws:
IllegalArgumentException - if the id is null.

saveOrUpdateExecutionContext

void saveOrUpdateExecutionContext(StepExecution stepExecution)
Save the ExecutionContext of the given StepExecution.

Parameters:
stepExecution - the StepExecution containing the ExecutionContext to be saved.
Throws:
IllegalArgumentException - if the attributes are null.

getStepExecution

StepExecution getStepExecution(JobExecution jobExecution,
                               Step step)


Copyright © 2008 SpringSource. All Rights Reserved.