IN PROGRESS - issue BATCH-340: Refactor JobRepository for greater clarity and consistency.

http://jira.springframework.org/browse/BATCH-340

Removed no-op update(StepInstance) and update(JobInstance) repository methods
This commit is contained in:
robokaso
2008-02-14 13:19:51 +00:00
parent 803a69aaef
commit 62ccc5d07a
8 changed files with 2 additions and 84 deletions

View File

@@ -66,17 +66,6 @@ public interface JobRepository {
public JobExecution createJobExecution(Job job, JobParameters jobParameters)
throws JobExecutionAlreadyRunningException;
/**
* Update a Job.
*
* Preconditions: Job must contain a valid ID. This can be ensured by first
* obtaining a job from findOrCreateJob.
*
* @param job
* @see JobInstance
*/
public void update(JobInstance jobInstance);
/**
* Save or Update a {@link JobExecution}. If no ID is found a new instance
* will be saved. If an ID does exist it will be updated. The ID should only
@@ -91,18 +80,6 @@ public interface JobRepository {
*/
public void saveOrUpdate(JobExecution jobExecution);
/**
* Update a step.
*
* Preconditions: {@link StepInstance} must contain a valid ID. This can be
* ensured by first obtaining a {@link JobInstance} from findOrCreateJob,
* and accessing it's step list.
*
* @param step
* @see StepInstance
*/
public void update(StepInstance stepInstance);
/**
* Save or Update a StepExecution. If no ID is found a new instance will be
* created. (saved). If an ID does exist it will be updated. It is not