Interface IBulkExportJobDao

All Superinterfaces:
org.springframework.data.repository.CrudRepository<BulkExportJobEntity,Long>, IHapiFhirJpaRepository, org.springframework.data.jpa.repository.JpaRepository<BulkExportJobEntity,Long>, org.springframework.data.repository.PagingAndSortingRepository<BulkExportJobEntity,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<BulkExportJobEntity>, org.springframework.data.repository.Repository<BulkExportJobEntity,Long>

public interface IBulkExportJobDao extends org.springframework.data.jpa.repository.JpaRepository<BulkExportJobEntity,Long>, IHapiFhirJpaRepository
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    org.springframework.data.domain.Slice<BulkExportJobEntity>
    findByExpiry(org.springframework.data.domain.Pageable thePage, Date theCutoff)
     
     
    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)
     
    org.springframework.data.domain.Slice<BulkExportJobEntity>
    findNotRunningByExpiry(org.springframework.data.domain.Pageable thePage, Date theCutoff)
     

    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, findBy, findOne
  • Method Details

    • findByJobId

      @Query("SELECT j FROM BulkExportJobEntity j WHERE j.myJobId = :jobid") Optional<BulkExportJobEntity> findByJobId(@Param("jobid") String theUuid)
    • findByStatus

      @Query("SELECT j FROM BulkExportJobEntity j WHERE j.myStatus = :status") org.springframework.data.domain.Slice<BulkExportJobEntity> findByStatus(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<BulkExportJobEntity> findByExpiry(org.springframework.data.domain.Pageable thePage, @Param("cutoff") Date theCutoff)
    • findNotRunningByExpiry

      @Query("SELECT j FROM BulkExportJobEntity j WHERE j.myExpiry IS NOT NULL and j.myExpiry < :cutoff AND j.myStatus <> \'BUILDING\'") org.springframework.data.domain.Slice<BulkExportJobEntity> findNotRunningByExpiry(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<BulkExportJobEntity> findExistingJob(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)