Interface StepExecutionDao
- All Known Implementing Classes:
JdbcStepExecutionDao
public interface StepExecutionDao
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStepExecutions(JobExecution jobExecution) Retrieve all theStepExecutionfor the parentJobExecution.default longcountStepExecutions(JobInstance jobInstance, String stepName) Counts all theStepExecutionfor a given step name.default voiddeleteStepExecution(StepExecution stepExecution) Delete the given step execution.default StepExecutiongetLastStepExecution(JobInstance jobInstance, String stepName) Retrieve the lastStepExecutionfor a givenJobInstanceordered by creation time and then id.getStepExecution(JobExecution jobExecution, Long stepExecutionId) Retrieve aStepExecutionfrom its id.voidsaveStepExecution(StepExecution stepExecution) Save the given StepExecution.voidsaveStepExecutions(Collection<StepExecution> stepExecutions) Save the given collection of StepExecution as a batch.voidupdateStepExecution(StepExecution stepExecution) Update the given StepExecution
-
Method Details
-
saveStepExecution
Save the given StepExecution.Preconditions: Id must be null.
Postconditions: Id will be set to a unique Long.
- Parameters:
stepExecution-StepExecutioninstance to be saved.
-
saveStepExecutions
Save the given collection of StepExecution as a batch.Preconditions: StepExecution Id must be null.
Postconditions: StepExecution Id will be set to a unique Long.
- Parameters:
stepExecutions- a collection ofJobExecutioninstances to be saved.
-
updateStepExecution
Update the given StepExecutionPreconditions: Id must not be null.
- Parameters:
stepExecution-StepExecutioninstance to be updated.
-
getStepExecution
Retrieve aStepExecutionfrom its id.- Parameters:
jobExecution- the parentJobExecutionstepExecutionId- the step execution id- Returns:
- a
StepExecution
-
getLastStepExecution
Retrieve the lastStepExecutionfor a givenJobInstanceordered by creation time and then id.- Parameters:
jobInstance- the parentJobInstancestepName- the name of the step- Returns:
- a
StepExecution
-
addStepExecutions
Retrieve all theStepExecutionfor the parentJobExecution.- Parameters:
jobExecution- the parent job execution
-
countStepExecutions
Counts all theStepExecutionfor a given step name.- Parameters:
jobInstance- the parentJobInstancestepName- the name of the step- Returns:
- the count of
StepExecutions for a given step - Since:
- 4.3
-
deleteStepExecution
Delete the given step execution.- Parameters:
stepExecution- the step execution to delete- Since:
- 5.0
-