public interface JobExecutionDao
| Modifier and Type | Method and Description |
|---|---|
java.util.List<JobExecution> |
findJobExecutions(JobInstance jobInstance)
Return all
JobExecutions for given JobInstance, sorted
backwards by creation order (so the first element is the most recent). |
java.util.Set<JobExecution> |
findRunningJobExecutions(java.lang.String jobName) |
JobExecution |
getJobExecution(java.lang.Long executionId) |
JobExecution |
getLastJobExecution(JobInstance jobInstance)
Find the last
JobExecution to have been created for a given
JobInstance. |
void |
saveJobExecution(JobExecution jobExecution)
Save a new JobExecution.
|
void |
synchronizeStatus(JobExecution jobExecution)
Because it may be possible that the status of a JobExecution is updated
while running, the following method will synchronize only the status and
version fields.
|
void |
updateJobExecution(JobExecution jobExecution)
Update and existing JobExecution.
|
void saveJobExecution(JobExecution jobExecution)
jobExecution - JobExecution instance to be saved.void updateJobExecution(JobExecution jobExecution)
jobExecution - JobExecution instance to be updated.java.util.List<JobExecution> findJobExecutions(JobInstance jobInstance)
JobExecutions for given JobInstance, sorted
backwards by creation order (so the first element is the most recent).jobInstance - parent JobInstance of the JobExecutions to find.List containing JobExecutions for the jobInstance.@Nullable JobExecution getLastJobExecution(JobInstance jobInstance)
JobExecution to have been created for a given
JobInstance.jobInstance - the JobInstanceJobExecution to execute for this instance or
null if no job execution is found for the given job instance.java.util.Set<JobExecution> findRunningJobExecutions(java.lang.String jobName)
jobName - String containing the name of the job.JobExecution that are still running (or indeterminate
state), i.e. having null end date, for the specified job name.@Nullable JobExecution getJobExecution(java.lang.Long executionId)
executionId - Long containing the id of the execution.JobExecution for given identifier.void synchronizeStatus(JobExecution jobExecution)
jobExecution - to be updated.