Interface ReportEntityRepository

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

public interface ReportEntityRepository extends org.springframework.data.jpa.repository.JpaRepository<ReportEntity,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    findDispatchedReportsThatAreNotFinalizedYet(String organisationId, Set<BlockchainPublishStatus> notFinalisedButVisibleOnChain, org.springframework.data.domain.Limit limit)
     
    findReportsByStatus(String organisationId, Set<BlockchainPublishStatus> publishStatuses, org.springframework.data.domain.Limit limit)
     

    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

    • findReportsByStatus

      @Query("SELECT r FROM blockchain_publisher.report.ReportEntity r WHERE r.organisation.id = :organisationId AND r.l1SubmissionData.publishStatus IN :publishStatuses ORDER BY r.createdAt ASC, r.id ASC") Set<ReportEntity> findReportsByStatus(@Param("organisationId") String organisationId, @Param("publishStatuses") Set<BlockchainPublishStatus> publishStatuses, org.springframework.data.domain.Limit limit)
    • findDispatchedReportsThatAreNotFinalizedYet

      @Query("SELECT r FROM blockchain_publisher.report.ReportEntity r WHERE r.organisation.id = :organisationId AND r.l1SubmissionData.publishStatus IN :publishStatuses AND r.l1SubmissionData IS NOT NULL ORDER BY r.createdAt ASC, r.id ASC") Set<ReportEntity> findDispatchedReportsThatAreNotFinalizedYet(@Param("organisationId") String organisationId, @Param("publishStatuses") Set<BlockchainPublishStatus> notFinalisedButVisibleOnChain, org.springframework.data.domain.Limit limit)