
Package ca.uhn.fhir.jpa.dao.data
Interface ITermCodeSystemDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<TermCodeSystem,,IdAndPartitionId> IHapiFhirJpaRepository,org.springframework.data.jpa.repository.JpaRepository<TermCodeSystem,,IdAndPartitionId> org.springframework.data.repository.ListCrudRepository<TermCodeSystem,,IdAndPartitionId> org.springframework.data.repository.ListPagingAndSortingRepository<TermCodeSystem,,IdAndPartitionId> org.springframework.data.repository.PagingAndSortingRepository<TermCodeSystem,,IdAndPartitionId> org.springframework.data.repository.query.QueryByExampleExecutor<TermCodeSystem>,org.springframework.data.repository.Repository<TermCodeSystem,IdAndPartitionId>
public interface ITermCodeSystemDao
extends org.springframework.data.jpa.repository.JpaRepository<TermCodeSystem,IdAndPartitionId>, IHapiFhirJpaRepository
-
Method Summary
Modifier and TypeMethodDescriptionfindByCodeSystemUri(String theCodeSystemUri) findByPid(long thePid) Deprecated.findByResourcePid(JpaPid theResourcePid) findWithCodeSystemVersionAsCurrentVersion(Long theCodeSystemVersionPid) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByCodeSystemUri
@Query("SELECT cs FROM TermCodeSystem cs WHERE cs.myCodeSystemUri = :code_system_uri") TermCodeSystem findByCodeSystemUri(@Param("code_system_uri") String theCodeSystemUri) -
findByResourcePid
@Query("SELECT cs FROM TermCodeSystem cs WHERE cs.myResource.myPid = :resource_pid") TermCodeSystem findByResourcePid(@Param("resource_pid") JpaPid theResourcePid) -
findWithCodeSystemVersionAsCurrentVersion
@Query("SELECT cs FROM TermCodeSystem cs WHERE cs.myCurrentVersion.myId = :csv_pid") Optional<TermCodeSystem> findWithCodeSystemVersionAsCurrentVersion(@Param("csv_pid") Long theCodeSystemVersionPid) -
findByPid
@Deprecated @Query("SELECT cs FROM TermCodeSystem cs WHERE cs.myId = :pid") Optional<TermCodeSystem> findByPid(@Param("pid") long thePid) Deprecated.// TODO: JA2 Use partitioned query here
-