Package ca.uhn.fhir.jpa.dao.data
Interface IBulkImportJobFileDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<BulkImportJobFileEntity,
,Long> IHapiFhirJpaRepository
,org.springframework.data.jpa.repository.JpaRepository<BulkImportJobFileEntity,
,Long> org.springframework.data.repository.ListCrudRepository<BulkImportJobFileEntity,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<BulkImportJobFileEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<BulkImportJobFileEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<BulkImportJobFileEntity>
,org.springframework.data.repository.Repository<BulkImportJobFileEntity,
Long>
public interface IBulkImportJobFileDao
extends org.springframework.data.jpa.repository.JpaRepository<BulkImportJobFileEntity,Long>, IHapiFhirJpaRepository
-
Method Summary
Modifier and TypeMethodDescriptionfindAllForJob
(String theJobId) findAllIdsForJob
(String theJobId) findFileDescriptionForJob
(BulkImportJobEntity theJob, int theFileIndex) findForJob
(BulkImportJobEntity theJob, int theFileIndex) 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
-
findAllForJob
@Query("SELECT f FROM BulkImportJobFileEntity f WHERE f.myJob.myJobId = :jobId ORDER BY f.myFileSequence ASC") List<BulkImportJobFileEntity> findAllForJob(@Param("jobId") String theJobId) -
findForJob
@Query("SELECT f FROM BulkImportJobFileEntity f WHERE f.myJob = :job AND f.myFileSequence = :fileIndex") Optional<BulkImportJobFileEntity> findForJob(@Param("job") BulkImportJobEntity theJob, @Param("fileIndex") int theFileIndex) -
findFileDescriptionForJob
@Query("SELECT f.myFileDescription FROM BulkImportJobFileEntity f WHERE f.myJob = :job AND f.myFileSequence = :fileIndex") Optional<String> findFileDescriptionForJob(@Param("job") BulkImportJobEntity theJob, @Param("fileIndex") int theFileIndex) -
findAllIdsForJob
@Query("SELECT f.myId FROM BulkImportJobFileEntity f WHERE f.myJob.myJobId = :jobId ORDER BY f.myFileSequence ASC") List<Long> findAllIdsForJob(@Param("jobId") String theJobId)
-