org.springframework.batch.core.repository.dao
Class MapJobExecutionDao

java.lang.Object
  extended by org.springframework.batch.core.repository.dao.MapJobExecutionDao
All Implemented Interfaces:
JobExecutionDao

public class MapJobExecutionDao
extends Object
implements JobExecutionDao

In-memory implementation of JobExecutionDao.


Constructor Summary
MapJobExecutionDao()
           
 
Method Summary
static void clear()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapJobExecutionDao

public MapJobExecutionDao()
Method Detail

clear

public static void clear()

getJobExecutionCount

public int getJobExecutionCount(JobInstance jobInstance)
Description copied from interface: JobExecutionDao
Return the number of JobExecutions for the given JobInstance Preconditions: jobInstance must have an id.

Specified by:
getJobExecutionCount in interface JobExecutionDao

saveJobExecution

public void saveJobExecution(JobExecution jobExecution)
Description copied from interface: JobExecutionDao
Save a new JobExecution. Preconditions: jobInstance the jobExecution belongs to must have a jobInstanceId.

Specified by:
saveJobExecution in interface JobExecutionDao

findJobExecutions

public List findJobExecutions(JobInstance jobInstance)
Description copied from interface: JobExecutionDao
Return list of JobExecutions for given JobInstance.

Specified by:
findJobExecutions in interface JobExecutionDao
Returns:
list of jobExecutions.

updateJobExecution

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

Specified by:
updateJobExecution in interface JobExecutionDao

getLastJobExecution

public JobExecution getLastJobExecution(JobInstance jobInstance)
Specified by:
getLastJobExecution in interface JobExecutionDao
Returns:
last JobExecution for given JobInstance.


Copyright © 2008 SpringSource. All Rights Reserved.