Interface ExecutionContextDao
- All Known Implementing Classes:
JdbcExecutionContextDao,MongoExecutionContextDao
public interface ExecutionContextDao
DAO interface for persisting and retrieving
ExecutionContexts.- Author:
- Robert Kasanicky, David Turanski, Mahmoud Ben Hassine
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddeleteExecutionContext(JobExecution jobExecution) Delete the execution context of the givenJobExecution.default voiddeleteExecutionContext(StepExecution stepExecution) Delete the execution context of the givenStepExecution.getExecutionContext(JobExecution jobExecution) getExecutionContext(StepExecution stepExecution) voidsaveExecutionContext(JobExecution jobExecution) Persist the execution context associated with the given jobExecution, persistent entry for the context should not exist yet.voidsaveExecutionContext(StepExecution stepExecution) Persist the execution context associated with the given stepExecution, persistent entry for the context should not exist yet.voidsaveExecutionContexts(Collection<StepExecution> stepExecutions) Persist the execution context associated with each stepExecution in a given collection, persistent entry for the context should not exist yet.voidupdateExecutionContext(JobExecution jobExecution) Persist the updates of execution context associated with the given jobExecution.voidupdateExecutionContext(StepExecution stepExecution) Persist the updates of execution context associated with the given stepExecution.
-
Method Details
-
getExecutionContext
- Parameters:
jobExecution-JobExecutioninstance that contains the context.- Returns:
- execution context associated with the given jobExecution
-
getExecutionContext
- Parameters:
stepExecution-StepExecutioninstance that contains the context.- Returns:
- execution context associated with the given stepExecution
-
saveExecutionContext
Persist the execution context associated with the given jobExecution, persistent entry for the context should not exist yet.- Parameters:
jobExecution-JobExecutioninstance that contains the context.
-
saveExecutionContext
Persist the execution context associated with the given stepExecution, persistent entry for the context should not exist yet.- Parameters:
stepExecution-StepExecutioninstance that contains the context.
-
saveExecutionContexts
Persist the execution context associated with each stepExecution in a given collection, persistent entry for the context should not exist yet.- Parameters:
stepExecutions- a collection ofStepExecutions that contain the contexts.
-
updateExecutionContext
Persist the updates of execution context associated with the given jobExecution. Persistent entry should already exist for this context.- Parameters:
jobExecution-JobExecutioninstance that contains the context.
-
updateExecutionContext
Persist the updates of execution context associated with the given stepExecution. Persistent entry should already exist for this context.- Parameters:
stepExecution-StepExecutioninstance that contains the context.
-
deleteExecutionContext
Delete the execution context of the givenJobExecution.- Parameters:
jobExecution-JobExecutionthat contains the context to delete.- Since:
- 5.0
-
deleteExecutionContext
Delete the execution context of the givenStepExecution.- Parameters:
stepExecution-StepExecutionthat contains the context to delete.- Since:
- 5.0
-