Interface IForcedIdDao

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ForcedId,Long>, 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>

public interface IForcedIdDao extends org.springframework.data.jpa.repository.JpaRepository<ForcedId,Long>, IHapiFhirJpaRepository
  • Method Details

    • findAllByResourcePid

      @Query("SELECT f FROM ForcedId f WHERE 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)
    • findAndResolveByForcedIdWithNoType

      @Query("SELECT f.myResourceType, f.myResourcePid, f.myForcedId, t.myDeleted FROM ForcedId f JOIN ResourceTable t ON t.myId = f.myResourcePid WHERE f.myResourceType = :resource_type AND f.myForcedId IN ( :forced_id )") Collection<Object[]> findAndResolveByForcedIdWithNoType(@Param("resource_type") String theResourceType, @Param("forced_id") Collection<String> theForcedIds)
      This method returns a Collection where each row is an element in the collection. Each element in the collection is an object array, where the order matters (the array represents columns returned by the query). Be careful if you change this query in any way.
    • findAndResolveByForcedIdWithNoTypeInPartition

      @Query("SELECT f.myResourceType, f.myResourcePid, f.myForcedId, t.myDeleted FROM ForcedId f JOIN ResourceTable t ON t.myId = f.myResourcePid WHERE f.myResourceType = :resource_type AND f.myForcedId IN ( :forced_id ) AND f.myPartitionIdValue IN :partition_id") Collection<Object[]> findAndResolveByForcedIdWithNoTypeInPartition(@Param("resource_type") String theResourceType, @Param("forced_id") Collection<String> theForcedIds, @Param("partition_id") Collection<Integer> thePartitionId)
      This method returns a Collection where each row is an element in the collection. Each element in the collection is an object array, where the order matters (the array represents columns returned by the query). Be careful if you change this query in any way.
    • findAndResolveByForcedIdWithNoTypeInPartitionNull

      @Query("SELECT f.myResourceType, f.myResourcePid, f.myForcedId, t.myDeleted FROM ForcedId f JOIN ResourceTable t ON t.myId = f.myResourcePid WHERE f.myResourceType = :resource_type AND f.myForcedId IN ( :forced_id ) AND f.myPartitionIdValue IS NULL") Collection<Object[]> findAndResolveByForcedIdWithNoTypeInPartitionNull(@Param("resource_type") String theResourceType, @Param("forced_id") Collection<String> theForcedIds)
      This method returns a Collection where each row is an element in the collection. Each element in the collection is an object array, where the order matters (the array represents columns returned by the query). Be careful if you change this query in any way.
    • findAndResolveByForcedIdWithNoTypeInPartitionIdOrNullPartitionId

      @Query("SELECT f.myResourceType, f.myResourcePid, f.myForcedId, t.myDeleted FROM ForcedId f JOIN ResourceTable t ON t.myId = f.myResourcePid WHERE f.myResourceType = :resource_type AND f.myForcedId IN ( :forced_id ) AND (f.myPartitionIdValue IS NULL OR f.myPartitionIdValue IN :partition_id)") Collection<Object[]> findAndResolveByForcedIdWithNoTypeInPartitionIdOrNullPartitionId(@Param("resource_type") String theNextResourceType, @Param("forced_id") Collection<String> theNextIds, @Param("forced_id") List<Integer> thePartitionIdsWithoutDefault)
      This method returns a Collection where each row is an element in the collection. Each element in the collection is an object array, where the order matters (the array represents columns returned by the query). Be careful if you change this query in any way.