Interface CausingEventRepository

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

public interface CausingEventRepository extends org.springframework.data.jpa.repository.JpaRepository<CausingEvent,UUID>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
     
    org.springframework.data.domain.Slice<UUID>
    findCausingEventIdsWithoutError(org.springframework.data.domain.Pageable pageable)
     

    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

    • findByCausingEventId

      @Query("select c from CausingEvent c where c.metadata.id = ?1") Optional<CausingEvent> findByCausingEventId(String eventId)
    • findCausingEventIdsWithoutError

      @Query("select causingEvent.id from CausingEvent causingEvent left join Error error on causingEvent.id = error.causingEvent.id where error is null") org.springframework.data.domain.Slice<UUID> findCausingEventIdsWithoutError(org.springframework.data.domain.Pageable pageable)
    • deleteAllById

      @Modifying @Query(nativeQuery=true, value="DELETE FROM causing_event ce WHERE ce.id in (:ids) ") void deleteAllById(@Param("ids") List<UUID> ids)
    • deleteAllHeadersByCausingEventIds

      @Modifying @Query(nativeQuery=true, value="DELETE FROM message_header mh WHERE mh.causing_event_id in (:ids) ") void deleteAllHeadersByCausingEventIds(@Param("ids") List<UUID> ids)