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

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

javadoc updates
This commit is contained in:
robokaso
2008-02-18 13:50:59 +00:00
parent 942765093b
commit 1ec3ef5777
2 changed files with 5 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ public interface JobExecutionDao {
/**
* Save a new JobExecution.
*
* Preconditions: jobExecution must have a jobInstanceId.
* Preconditions: jobInstance the jobExecution belongs to must have a jobInstanceId.
*
* @param jobExecution
*/

View File

@@ -36,18 +36,14 @@ public interface StepExecutionDao {
int getStepExecutionCount(StepInstance stepInstance);
/**
* Find all {@link ExecutionContext} for the given execution id.
* Find all {@link ExecutionContext} for the given {@link StepExecution}.
*
* @param executionId - Long id of the {@link StepExecution} that the
* attributes belongs to.
* @return attributes for the provided id. If none are found, an empty
* {@link ExecutionContext} will be returned.
* @throws IllegalArgumentException if the id is null.
*/
ExecutionContext findExecutionContext(StepExecution stepExecution);
/**
* Save the provided {@link ExecutionContext} for the given executionId.
* Save the {@link ExecutionContext} of the given {@link StepExecution}.
*
* @param executionId to be saved
* @param executionContext to be saved.
@@ -57,15 +53,13 @@ public interface StepExecutionDao {
void saveExecutionContext(StepExecution stepExecution);
/**
* Update the provided ExecutionContext.
*
* @param executionId
* @param executionContext
* Update the ExecutionContext of given {@link StepExecution}.
*/
void updateExecutionContext(StepExecution stepExecution);
/**
* @param lastJobExecution last job execution
* @param stepInstance
* @return the last execution of the given instance
*/
StepExecution getLastStepExecution(StepInstance stepInstance, JobExecution lastJobExecution);