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 TypeMethodDescriptionFinds every execution for one job in action order with the newest execution first.findByExecutionId(String executionId) 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, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByExecutionId
Finds an execution by its public identifier.- Parameters:
executionId- public execution identifier- Returns:
- matching execution
-
findFirstByActionActionIdOrderByExecutionAttemptDesc
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
-