Interface ISearchResultDao

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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)  
      List<Long> 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, 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, findOne
    • Method Detail

      • findWithSearchPid

        @Query("SELECT r.myResourcePid FROM SearchResult r WHERE r.mySearchPid = :search ORDER BY r.myOrder ASC")
        org.springframework.data.domain.Slice<LongfindWithSearchPid​(@Param("search")
                                                                      Long theSearchPid,
                                                                      org.springframework.data.domain.Pageable thePage)
      • findForSearch

        @Query("SELECT r.myId FROM SearchResult r WHERE r.mySearchPid = :search")
        org.springframework.data.domain.Slice<LongfindForSearch​(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)