Interface ExecutionContextDao

All Known Implementing Classes:
JdbcExecutionContextDao

public interface ExecutionContextDao
DAO interface for persisting and retrieving ExecutionContexts.
Author:
Robert Kasanicky, David Turanski, Mahmoud Ben Hassine
  • Method Details

    • getExecutionContext

      ExecutionContext getExecutionContext(JobExecution jobExecution)
      Parameters:
      jobExecution - JobExecution instance that contains the context.
      Returns:
      execution context associated with the given jobExecution
    • getExecutionContext

      ExecutionContext getExecutionContext(StepExecution stepExecution)
      Parameters:
      stepExecution - StepExecution instance that contains the context.
      Returns:
      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.
      Parameters:
      jobExecution - JobExecution instance 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.
      Parameters:
      stepExecution - StepExecution instance that contains the context.
    • saveExecutionContexts

      void saveExecutionContexts(Collection<StepExecution> stepExecutions)
      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 of StepExecutions 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.
      Parameters:
      jobExecution - JobExecution instance 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.
      Parameters:
      stepExecution - StepExecution instance that contains the context.
    • deleteExecutionContext

      default void deleteExecutionContext(JobExecution jobExecution)
      Delete the execution context of the given JobExecution.
      Parameters:
      jobExecution - JobExecution that contains the context to delete.
      Since:
      5.0
    • deleteExecutionContext

      default void deleteExecutionContext(StepExecution stepExecution)
      Delete the execution context of the given StepExecution.
      Parameters:
      stepExecution - StepExecution that contains the context to delete.
      Since:
      5.0