Interface ISearchResultDao

All Superinterfaces:
org.springframework.data.repository.CrudRepository<SearchResult,Long>, IHapiFhirJpaRepository, org.springframework.data.jpa.repository.JpaRepository<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 Type
    Method
    Description
    int
    countForSearch(Long theSearchPid)
     
    void
    deleteByIds(List<Long> theContent)
     
    org.springframework.data.domain.Slice<Long>
    findForSearch(org.springframework.data.domain.Pageable thePage, Long theSearchPid)
     
    org.springframework.data.domain.Slice<Long>
    findWithSearchPid(Long theSearchPid, org.springframework.data.domain.Pageable thePage)
     
     

    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, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush

    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)
    • findForSearch

      @Query("SELECT r.myId FROM SearchResult r WHERE r.mySearchPid = :search") org.springframework.data.domain.Slice<Long> findForSearch(org.springframework.data.domain.Pageable thePage, @Param("search") Long theSearchPid)
    • deleteByIds

      @Modifying @Query("DELETE FROM SearchResult s WHERE s.myId IN :ids") void deleteByIds(@Param("ids") List<Long> theContent)
    • countForSearch

      @Query("SELECT count(r) FROM SearchResult r WHERE r.mySearchPid = :search") int countForSearch(@Param("search") Long theSearchPid)