Package ca.uhn.fhir.jpa.dao.data
Interface INpmPackageVersionDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<NpmPackageVersionEntity,
,Long> IHapiFhirJpaRepository
,org.springframework.data.jpa.repository.JpaRepository<NpmPackageVersionEntity,
,Long> org.springframework.data.repository.ListCrudRepository<NpmPackageVersionEntity,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<NpmPackageVersionEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<NpmPackageVersionEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<NpmPackageVersionEntity>
,org.springframework.data.repository.Repository<NpmPackageVersionEntity,
Long>
public interface INpmPackageVersionDao
extends org.springframework.data.jpa.repository.JpaRepository<NpmPackageVersionEntity,Long>, IHapiFhirJpaRepository
-
Method Summary
Modifier and TypeMethodDescriptionfindByPackageId
(String thePackageId) findByPackageIdAndVersion
(String thePackageId, String thePackageVersion) findVersionIdsByPackageIdAndLikeVersion
(String theId, String thePartialVersionString) Uses a "like" expression on the version IDMethods 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
-
findByPackageId
@Query("SELECT p FROM NpmPackageVersionEntity p WHERE lower(p.myPackageId) = lower(:id)") Collection<NpmPackageVersionEntity> findByPackageId(@Param("id") String thePackageId) -
findByPackageIdAndVersion
@Query("SELECT p FROM NpmPackageVersionEntity p WHERE lower(p.myPackageId) = lower(:id) AND p.myVersionId = :version") Optional<NpmPackageVersionEntity> findByPackageIdAndVersion(@Param("id") String thePackageId, @Param("version") String thePackageVersion) -
findVersionIdsByPackageIdAndLikeVersion
@Query("SELECT p.myVersionId FROM NpmPackageVersionEntity p WHERE lower(p.myPackageId) = lower(:id) AND p.myVersionId like :version") List<String> findVersionIdsByPackageIdAndLikeVersion(@Param("id") String theId, @Param("version") String thePartialVersionString) Uses a "like" expression on the version ID
-