Interface ActionExecutionRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ActionExecution, Long>, org.springframework.data.jpa.repository.JpaRepository<ActionExecution, Long>, org.springframework.data.repository.ListCrudRepository<ActionExecution, Long>, org.springframework.data.repository.ListPagingAndSortingRepository<ActionExecution, Long>, org.springframework.data.repository.PagingAndSortingRepository<ActionExecution, Long>, org.springframework.data.repository.query.QueryByExampleExecutor<ActionExecution>, org.springframework.data.repository.Repository<ActionExecution, Long>

@Repository public interface ActionExecutionRepository extends org.springframework.data.jpa.repository.JpaRepository<ActionExecution, Long>
Data-access layer for action executions.
Version:
3.0.6
Author:
Stephen Prizio
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds every execution for one job in action order with the newest execution first.
    Finds an execution by its public identifier.
    Finds the latest execution for a stable action identifier.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByExecutionId

      Optional<ActionExecution> findByExecutionId(String executionId)
      Finds an execution by its public identifier.
      Parameters:
      executionId - public execution identifier
      Returns:
      matching execution
    • findFirstByActionActionIdOrderByExecutionAttemptDesc

      Optional<ActionExecution> findFirstByActionActionIdOrderByExecutionAttemptDesc(String actionId)
      Finds the latest execution for a stable action identifier.
      Parameters:
      actionId - public action identifier
      Returns:
      latest execution
    • findByActionJobJobIdOrderByActionSequenceAscExecutionAttemptDesc

      List<ActionExecution> findByActionJobJobIdOrderByActionSequenceAscExecutionAttemptDesc(String jobId)
      Finds every execution for one job in action order with the newest execution first.
      Parameters:
      jobId - public job identifier
      Returns:
      ordered action executions