Interface IBulkExportJobDao

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteAllFiles()  
      void deleteByPid​(Long theId)  
      org.springframework.data.domain.Slice<BulkExportJobEntity> findByExpiry​(org.springframework.data.domain.Pageable thePage, Date theCutoff)  
      Optional<BulkExportJobEntity> findByJobId​(String theUuid)  
      org.springframework.data.domain.Slice<BulkExportJobEntity> findByStatus​(org.springframework.data.domain.Pageable thePage, ca.uhn.fhir.jpa.bulk.export.model.BulkExportJobStatusEnum theSubmitted)  
      org.springframework.data.domain.Slice<BulkExportJobEntity> findExistingJob​(org.springframework.data.domain.Pageable thePage, String theRequest, Date theCreatedAfter, ca.uhn.fhir.jpa.bulk.export.model.BulkExportJobStatusEnum theNotStatus)  
      • 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, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByStatus

        @Query("SELECT j FROM BulkExportJobEntity j WHERE j.myStatus = :status")
        org.springframework.data.domain.Slice<BulkExportJobEntityfindByStatus​(org.springframework.data.domain.Pageable thePage,
                                                                                @Param("status")
                                                                                ca.uhn.fhir.jpa.bulk.export.model.BulkExportJobStatusEnum theSubmitted)
      • findByExpiry

        @Query("SELECT j FROM BulkExportJobEntity j WHERE j.myExpiry < :cutoff")
        org.springframework.data.domain.Slice<BulkExportJobEntityfindByExpiry​(org.springframework.data.domain.Pageable thePage,
                                                                                @Param("cutoff")
                                                                                Date theCutoff)
      • findExistingJob

        @Query("SELECT j FROM BulkExportJobEntity j WHERE j.myRequest = :request AND j.myCreated > :createdAfter AND j.myStatus <> :status ORDER BY j.myCreated DESC")
        org.springframework.data.domain.Slice<BulkExportJobEntityfindExistingJob​(org.springframework.data.domain.Pageable thePage,
                                                                                   @Param("request")
                                                                                   String theRequest,
                                                                                   @Param("createdAfter")
                                                                                   Date theCreatedAfter,
                                                                                   @Param("status")
                                                                                   ca.uhn.fhir.jpa.bulk.export.model.BulkExportJobStatusEnum theNotStatus)
      • deleteAllFiles

        @Modifying
        @Query("DELETE FROM BulkExportJobEntity t")
        void deleteAllFiles()
      • deleteByPid

        @Modifying
        @Query("DELETE FROM BulkExportJobEntity t WHERE t.myId = :pid")
        void deleteByPid​(@Param("pid")
                         Long theId)