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 TypeMethodDescriptionint
countForSearch
(Long theSearchPid) int
deleteBySearchIdInRange
(Long theSearchId, int theRangeStart, int theRangeEnd) int
deleteBySearchIds
(Collection<Long> theSearchIds) org.springframework.data.domain.Slice
<Long> findWithSearchPid
(Long theSearchPid, org.springframework.data.domain.Pageable thePage) findWithSearchPidOrderIndependent
(Long theSearchPid) Methods 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
-
findWithSearchPid
@Query("SELECT r.myResourcePid FROM SearchResult r WHERE r.mySearchPid = :search ORDER BY r.myOrder ASC") org.springframework.data.domain.Slice<Long> findWithSearchPid(@Param("search") Long theSearchPid, org.springframework.data.domain.Pageable thePage) -
findWithSearchPidOrderIndependent
@Query("SELECT r.myResourcePid FROM SearchResult r WHERE r.mySearchPid = :search") List<Long> 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)
-