
Package ca.uhn.fhir.jpa.dao.data
Interface ISearchResultDao
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<SearchResult,,Long> IHapiFhirJpaRepository,org.springframework.data.jpa.repository.JpaRepository<SearchResult,,Long> org.springframework.data.repository.ListCrudRepository<SearchResult,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<SearchResult,,Long> org.springframework.data.repository.PagingAndSortingRepository<SearchResult,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<SearchResult>,org.springframework.data.repository.Repository<SearchResult,Long>
public interface ISearchResultDao
extends org.springframework.data.jpa.repository.JpaRepository<SearchResult,Long>, IHapiFhirJpaRepository
-
Method Summary
Modifier and TypeMethodDescriptionintcountForSearch(Long theSearchPid) intdeleteBySearchIdInRange(Long theSearchId, int theRangeStart, int theRangeEnd) intdeleteBySearchIds(Collection<Long> theSearchIds) org.springframework.data.domain.Slice<Object[]> findWithSearchPid(Long theSearchPid, org.springframework.data.domain.Pageable thePage) findWithSearchPidOrderIndependent(Long theSearchPid) toJpaPidList(List<Object[]> theArrays) Converts a response fromfindWithSearchPid(Long, Pageable)to a List of JpaPid objectsMethods 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
-
findWithSearchPid
@Query("SELECT r.myResourcePartitionId,r.myResourcePid FROM SearchResult r WHERE r.mySearchPid = :search ORDER BY r.myOrder ASC") org.springframework.data.domain.Slice<Object[]> findWithSearchPid(@Param("search") Long theSearchPid, org.springframework.data.domain.Pageable thePage) -
findWithSearchPidOrderIndependent
@Query("SELECT r.myResourcePartitionId,r.myResourcePid FROM SearchResult r WHERE r.mySearchPid = :search") List<Object[]> findWithSearchPidOrderIndependent(@Param("search") Long theSearchPid) -
deleteBySearchIds
@Modifying @Query("DELETE FROM SearchResult s WHERE s.mySearchPid IN :searchIds") @CanIgnoreReturnValue int deleteBySearchIds(@Param("searchIds") Collection<Long> theSearchIds) -
deleteBySearchIdInRange
@Modifying @Query("DELETE FROM SearchResult s WHERE s.mySearchPid = :searchId and s.myOrder >= :rangeStart and s.myOrder <= :rangeEnd") @CanIgnoreReturnValue int deleteBySearchIdInRange(@Param("searchId") Long theSearchId, @Param("rangeStart") int theRangeStart, @Param("rangeEnd") int theRangeEnd) -
countForSearch
@Query("SELECT count(r) FROM SearchResult r WHERE r.mySearchPid = :search") int countForSearch(@Param("search") Long theSearchPid) -
toJpaPidList
Converts a response fromfindWithSearchPid(Long, Pageable)to a List of JpaPid objects
-