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 Type
    Method
    Description
    boolean
    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.
    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, 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

    • existsByActionExecutionExecutionId

      boolean existsByActionExecutionExecutionId(String executionId)
      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 identifier
      pageable - 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 identifier
      severity - severity filter
      pageable - page request
      Returns:
      ordered event page