diff --git a/spring-batch-execution/src/main/java/org/springframework/batch/execution/repository/dao/JobExecutionDao.java b/spring-batch-execution/src/main/java/org/springframework/batch/execution/repository/dao/JobExecutionDao.java index f3be2a3e5..bd574b49f 100644 --- a/spring-batch-execution/src/main/java/org/springframework/batch/execution/repository/dao/JobExecutionDao.java +++ b/spring-batch-execution/src/main/java/org/springframework/batch/execution/repository/dao/JobExecutionDao.java @@ -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 */ diff --git a/spring-batch-execution/src/main/java/org/springframework/batch/execution/repository/dao/StepExecutionDao.java b/spring-batch-execution/src/main/java/org/springframework/batch/execution/repository/dao/StepExecutionDao.java index 948d148d6..24d95d9b1 100644 --- a/spring-batch-execution/src/main/java/org/springframework/batch/execution/repository/dao/StepExecutionDao.java +++ b/spring-batch-execution/src/main/java/org/springframework/batch/execution/repository/dao/StepExecutionDao.java @@ -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);