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

All Known Implementing Classes:
JdbcJobExecutionDao, MapJobExecutionDao

public interface JobExecutionDao

Data Access Object for job executions.

Author:
Lucas Ward, Robert Kasanicky

Method Summary
 List findJobExecutions(JobInstance jobInstance)
          Return list of JobExecutions for given JobInstance.
 int getJobExecutionCount(JobInstance jobInstance)
          Return the number of JobExecutions for the given JobInstance Preconditions: jobInstance must have an id.
 JobExecution getLastJobExecution(JobInstance jobInstance)
           
 void saveJobExecution(JobExecution jobExecution)
          Save a new JobExecution.
 void updateJobExecution(JobExecution jobExecution)
          Update and existing JobExecution.
 

Method Detail

saveJobExecution

void saveJobExecution(JobExecution jobExecution)
Save a new JobExecution. Preconditions: jobInstance the jobExecution belongs to must have a jobInstanceId.

Parameters:
jobExecution -

updateJobExecution

void updateJobExecution(JobExecution jobExecution)
Update and existing JobExecution. Preconditions: jobExecution must have an Id (which can be obtained by the save method) and a jobInstanceId.

Parameters:
jobExecution -

getJobExecutionCount

int getJobExecutionCount(JobInstance jobInstance)
Return the number of JobExecutions for the given JobInstance Preconditions: jobInstance must have an id.


findJobExecutions

List findJobExecutions(JobInstance jobInstance)
Return list of JobExecutions for given JobInstance.

Parameters:
jobInstance -
Returns:
list of jobExecutions.

getLastJobExecution

JobExecution getLastJobExecution(JobInstance jobInstance)
Returns:
last JobExecution for given JobInstance.


Copyright © 2008 SpringSource. All Rights Reserved.