public interface StepExecutionDao
Modifier and Type | Method and Description |
---|---|
void |
addStepExecutions(JobExecution jobExecution)
Retrieve all the
StepExecution for the parent JobExecution . |
default int |
countStepExecutions(JobInstance jobInstance,
java.lang.String stepName)
Counts all the
StepExecution for a given step name. |
default StepExecution |
getLastStepExecution(JobInstance jobInstance,
java.lang.String stepName)
Retrieve the last
StepExecution for a given JobInstance
ordered by starting time and then id. |
StepExecution |
getStepExecution(JobExecution jobExecution,
java.lang.Long stepExecutionId)
Retrieve a
StepExecution from its id. |
void |
saveStepExecution(StepExecution stepExecution)
Save the given StepExecution.
|
void |
saveStepExecutions(java.util.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.
|
void saveStepExecution(StepExecution stepExecution)
stepExecution
- StepExecution
instance to be saved.void saveStepExecutions(java.util.Collection<StepExecution> stepExecutions)
stepExecutions
- a collection of JobExecution
instances to be saved.void updateStepExecution(StepExecution stepExecution)
stepExecution
- StepExecution
instance to be updated.@Nullable StepExecution getStepExecution(JobExecution jobExecution, java.lang.Long stepExecutionId)
StepExecution
from its id.jobExecution
- the parent JobExecution
stepExecutionId
- the step execution idStepExecution
@Nullable default StepExecution getLastStepExecution(JobInstance jobInstance, java.lang.String stepName)
StepExecution
for a given JobInstance
ordered by starting time and then id.jobInstance
- the parent JobInstance
stepName
- the name of the stepStepExecution
void addStepExecutions(JobExecution jobExecution)
StepExecution
for the parent JobExecution
.jobExecution
- the parent job executiondefault int countStepExecutions(JobInstance jobInstance, java.lang.String stepName)
StepExecution
for a given step name.jobInstance
- the parent JobInstance
stepName
- the name of the stepStepExecution
s for a given step