Package ca.uhn.fhir.jpa.dao.data
Interface ITermConceptDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TermConcept,
,Long> IHapiFhirJpaRepository
,org.springframework.data.jpa.repository.JpaRepository<TermConcept,
,Long> org.springframework.data.repository.PagingAndSortingRepository<TermConcept,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<TermConcept>
,org.springframework.data.repository.Repository<TermConcept,
Long>
public interface ITermConceptDao
extends org.springframework.data.jpa.repository.JpaRepository<TermConcept,Long>, IHapiFhirJpaRepository
-
Method Summary
Modifier and TypeMethodDescriptioncountByCodeSystemVersion
(Long thePid) int
deleteByCodeSystemVersion
(Long thePid) findByCodeSystemAndCode
(TermCodeSystemVersion theCodeSystem, String theCode) findByCodeSystemVersion
(TermCodeSystemVersion theCodeSystem) org.springframework.data.domain.Page<TermConcept>
findResourcesRequiringReindexing
(org.springframework.data.domain.Pageable thePageRequest) 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
-
countByCodeSystemVersion
@Query("SELECT COUNT(t) FROM TermConcept t WHERE t.myCodeSystem.myId = :cs_pid") Integer countByCodeSystemVersion(@Param("cs_pid") Long thePid) -
findByCodeSystemAndCode
@Query("SELECT c FROM TermConcept c WHERE c.myCodeSystem = :code_system AND c.myCode = :code") Optional<TermConcept> findByCodeSystemAndCode(@Param("code_system") TermCodeSystemVersion theCodeSystem, @Param("code") String theCode) -
deleteByCodeSystemVersion
@Modifying @Query("DELETE FROM TermConcept WHERE myCodeSystem.myId = :cs_pid") int deleteByCodeSystemVersion(@Param("cs_pid") Long thePid) -
findByCodeSystemVersion
@Query("SELECT c FROM TermConcept c WHERE c.myCodeSystem = :code_system") List<TermConcept> findByCodeSystemVersion(@Param("code_system") TermCodeSystemVersion theCodeSystem) -
findResourcesRequiringReindexing
@Query("SELECT t FROM TermConcept t WHERE t.myIndexStatus = null") org.springframework.data.domain.Page<TermConcept> findResourcesRequiringReindexing(org.springframework.data.domain.Pageable thePageRequest)
-