Interface ActionEventRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ActionEvent, Long>, org.springframework.data.jpa.repository.JpaRepository<ActionEvent, Long>, org.springframework.data.repository.ListCrudRepository<ActionEvent, Long>, org.springframework.data.repository.ListPagingAndSortingRepository<ActionEvent, Long>, org.springframework.data.repository.PagingAndSortingRepository<ActionEvent, Long>, org.springframework.data.repository.query.QueryByExampleExecutor<ActionEvent>, org.springframework.data.repository.Repository<ActionEvent, Long>
@Repository
public interface ActionEventRepository
extends org.springframework.data.jpa.repository.JpaRepository<ActionEvent, Long>
Data-access layer for operator-facing action events.
- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsByActionExecutionExecutionId(String executionId) Checks whether an execution has operator events.org.springframework.data.domain.Page<ActionEvent> findByActionExecutionExecutionIdAndSeverityOrderByOccurredAtAscIdAsc(String executionId, ActionEventSeverity severity, org.springframework.data.domain.Pageable pageable) Returns an ordered page of severity-filtered events for an execution.org.springframework.data.domain.Page<ActionEvent> findByActionExecutionExecutionIdOrderByOccurredAtAscIdAsc(String executionId, org.springframework.data.domain.Pageable pageable) Returns an ordered page of all events for an execution.findExecutionIdsWithEvents(Collection<String> executionIds) Returns execution identifiers that have at least one event.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
-
existsByActionExecutionExecutionId
Checks whether an execution has operator events.- Parameters:
executionId- public execution identifier- Returns:
- true when an event exists
-
findExecutionIdsWithEvents
@Query("SELECT DISTINCT e.actionExecution.executionId FROM ActionEvent e WHERE e.actionExecution.executionId IN :executionIds") List<String> findExecutionIdsWithEvents(@Param("executionIds") Collection<String> executionIds) Returns execution identifiers that have at least one event.- Parameters:
executionIds- candidate execution identifiers- Returns:
- identifiers with events
-
findByActionExecutionExecutionIdOrderByOccurredAtAscIdAsc
org.springframework.data.domain.Page<ActionEvent> findByActionExecutionExecutionIdOrderByOccurredAtAscIdAsc(String executionId, org.springframework.data.domain.Pageable pageable) Returns an ordered page of all events for an execution.- Parameters:
executionId- public execution identifierpageable- page request- Returns:
- ordered event page
-
findByActionExecutionExecutionIdAndSeverityOrderByOccurredAtAscIdAsc
org.springframework.data.domain.Page<ActionEvent> findByActionExecutionExecutionIdAndSeverityOrderByOccurredAtAscIdAsc(String executionId, ActionEventSeverity severity, org.springframework.data.domain.Pageable pageable) Returns an ordered page of severity-filtered events for an execution.- Parameters:
executionId- public execution identifierseverity- severity filterpageable- page request- Returns:
- ordered event page
-