接口 ExecutionContextDao
public interface ExecutionContextDao
DAO interface for persisting and retrievingExecutionContexts.- 作者:
- Robert Kasanicky, David Turanski
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ExecutionContextgetExecutionContext(JobExecution jobExecution)ExecutionContextgetExecutionContext(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(java.util.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.
方法详细资料
getExecutionContext
ExecutionContext getExecutionContext(JobExecution jobExecution)
- 参数:
jobExecution-JobExecutioninstance that contains the context.- 返回:
- execution context associated with the given jobExecution
getExecutionContext
ExecutionContext getExecutionContext(StepExecution stepExecution)
- 参数:
stepExecution-StepExecutioninstance that contains the context.- 返回:
- execution context associated with the given stepExecution
saveExecutionContext
void saveExecutionContext(JobExecution jobExecution)
Persist the execution context associated with the given jobExecution, persistent entry for the context should not exist yet.- 参数:
jobExecution-JobExecutioninstance that contains the context.
saveExecutionContext
void saveExecutionContext(StepExecution stepExecution)
Persist the execution context associated with the given stepExecution, persistent entry for the context should not exist yet.- 参数:
stepExecution-StepExecutioninstance that contains the context.
saveExecutionContexts
void saveExecutionContexts(java.util.Collection<StepExecution> stepExecutions)
Persist the execution context associated with each stepExecution in a given collection, persistent entry for the context should not exist yet.- 参数:
stepExecutions- a collection ofStepExecutions that contain the contexts.
updateExecutionContext
void updateExecutionContext(JobExecution jobExecution)
Persist the updates of execution context associated with the given jobExecution. Persistent entry should already exist for this context.- 参数:
jobExecution-JobExecutioninstance that contains the context.
updateExecutionContext
void updateExecutionContext(StepExecution stepExecution)
Persist the updates of execution context associated with the given stepExecution. Persistent entry should already exist for this context.- 参数:
stepExecution-StepExecutioninstance that contains the context.