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

public interface ErrorRepository extends org.springframework.data.jpa.repository.JpaRepository<Error,UUID>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Error>
  • Method Details

    • findAllPermanent

      @Query("select e from Error e where (e.state = \'PERMANENT\' OR e.state = \'SEND_TO_MANUALTASK\') ORDER BY e.created DESC") org.springframework.data.domain.Page<Error> findAllPermanent(org.springframework.data.domain.Pageable pageable)
    • findAllByStateEqualsOrderByCreatedDesc

      org.springframework.data.domain.Page<Error> findAllByStateEqualsOrderByCreatedDesc(Error.ErrorState errorState, org.springframework.data.domain.Pageable pageable)
    • countErrorsByErrorEventIdempotenceId

      @Query("select count(e) from Error e where e.errorEventMetadata.idempotenceId = ?1") int countErrorsByErrorEventIdempotenceId(String errorEventIdempotenceId)
    • countErrorsForCausingEvent

      @Query("select count(e) from Error e where e.causingEvent.metadata.id = ?1") int countErrorsForCausingEvent(String causingEventId)
    • countErrorsInStateTemporaryRetryPending

      @Query("select count(e) from Error e where e.state = \'TEMPORARY_RETRY_PENDING\'") int countErrorsInStateTemporaryRetryPending()
    • countErrorsInStatesPermanentOrSendToManualTask

      @Query("select count(e) from Error e where e.state = \'PERMANENT\' OR e.state = \'SEND_TO_MANUALTASK\'") int countErrorsInStatesPermanentOrSendToManualTask()
    • countErrorsInStateSendToManualTask

      @Query("select count(e) from Error e where e.state = \'SEND_TO_MANUALTASK\'") int countErrorsInStateSendToManualTask()
    • countErrorsInStateResolveOnManualTask

      @Query("select count(e) from Error e where e.state = \'RESOLVE_ON_MANUALTASK\'") int countErrorsInStateResolveOnManualTask()
    • countErrorsInStateDeleteOnManualTask

      @Query("select count(e) from Error e where e.state = \'DELETE_ON_MANUALTASK\'") int countErrorsInStateDeleteOnManualTask()
    • findIdByStateInAndCreatedBefore

      org.springframework.data.domain.Slice<ErrorQueryResult> findIdByStateInAndCreatedBefore(List<Error.ErrorState> state, ZonedDateTime created, org.springframework.data.domain.Pageable pageable)
    • search

      default org.springframework.data.domain.Page<Error> search(ErrorSearchCriteria criteria, org.springframework.data.domain.Pageable pageable)
    • getAllEventSources

      @Query("select distinct e.errorEventMetadata.publisher.service from Error e") List<String> getAllEventSources()
    • getAllErrorCodes

      @Query("select distinct e.errorEventData.code from Error e") List<String> getAllErrorCodes()
    • getAllEventNames

      @Query("select distinct e.causingEvent.metadata.type.name from Error e") List<String> getAllEventNames()
    • deleteAllById

      @Modifying @Query(nativeQuery=true, value="DELETE FROM error e WHERE e.id in (:errorIds) ") void deleteAllById(@Param("errorIds") Set<UUID> errorIds)