Interface StepExecutionDao
- All Known Implementing Classes:
JdbcStepExecutionDao
public interface StepExecutionDao
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStepExecutions
(JobExecution jobExecution) Retrieve all theStepExecution
for the parentJobExecution
.default int
countStepExecutions
(JobInstance jobInstance, String stepName) Counts all theStepExecution
for a given step name.default StepExecution
getLastStepExecution
(JobInstance jobInstance, String stepName) Retrieve the lastStepExecution
for a givenJobInstance
ordered by starting time and then id.getStepExecution
(JobExecution jobExecution, Long stepExecutionId) Retrieve aStepExecution
from its id.void
saveStepExecution
(StepExecution stepExecution) Save the given StepExecution.void
saveStepExecutions
(Collection<StepExecution> stepExecutions) Save the given collection of StepExecution as a batch.void
updateStepExecution
(StepExecution stepExecution) Update the given StepExecution Preconditions: Id must not be null.
-
Method Details
-
saveStepExecution
Save the given StepExecution. Preconditions: Id must be null. Postconditions: Id will be set to a unique Long.- Parameters:
stepExecution
-StepExecution
instance 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 ofJobExecution
instances to be saved.
-
updateStepExecution
Update the given StepExecution Preconditions: Id must not be null.- Parameters:
stepExecution
-StepExecution
instance to be updated.
-
getStepExecution
Retrieve aStepExecution
from its id.- Parameters:
jobExecution
- the parentJobExecution
stepExecutionId
- the step execution id- Returns:
- a
StepExecution
-
getLastStepExecution
Retrieve the lastStepExecution
for a givenJobInstance
ordered by starting time and then id.- Parameters:
jobInstance
- the parentJobInstance
stepName
- the name of the step- Returns:
- a
StepExecution
-
addStepExecutions
Retrieve all theStepExecution
for the parentJobExecution
.- Parameters:
jobExecution
- the parent job execution
-
countStepExecutions
Counts all theStepExecution
for a given step name.- Parameters:
jobInstance
- the parentJobInstance
stepName
- the name of the step- Returns:
- the count of
StepExecution
s for a given step - Since:
- 4.3
-