Package ca.uhn.fhir.jpa.dao.data
Interface IForcedIdDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ForcedId,,Long> IForcedIdQueries,IHapiFhirJpaRepository,org.springframework.data.jpa.repository.JpaRepository<ForcedId,,Long> org.springframework.data.repository.PagingAndSortingRepository<ForcedId,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ForcedId>,org.springframework.data.repository.Repository<ForcedId,Long>
@Repository
public interface IForcedIdDao
extends org.springframework.data.jpa.repository.JpaRepository<ForcedId,Long>, IHapiFhirJpaRepository, IForcedIdQueries
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByPid(Long theId) findAllByResourcePid(List<Long> theResourcePids) findByResourcePid(Long theResourcePid) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface ca.uhn.fhir.jpa.dao.data.custom.IForcedIdQueries
findAndResolveByForcedIdWithNoType, findAndResolveByForcedIdWithNoTypeIncludeDeleted, findAndResolveByForcedIdWithNoTypeInPartition, findAndResolveByForcedIdWithNoTypeInPartitionIdOrNullPartitionId, findAndResolveByForcedIdWithNoTypeInPartitionNullMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods 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
-
findAllByResourcePid
@Query("SELECT f FROM ForcedId f WHERE f.myResourcePid IN (:resource_pids)") List<ForcedId> findAllByResourcePid(@Param("resource_pids") List<Long> theResourcePids) -
findByResourcePid
@Query("SELECT f FROM ForcedId f WHERE f.myResourcePid = :resource_pid") Optional<ForcedId> findByResourcePid(@Param("resource_pid") Long theResourcePid) -
deleteByPid
@Modifying @Query("DELETE FROM ForcedId t WHERE t.myId = :pid") void deleteByPid(@Param("pid") Long theId)
-