Interface SearchDAO

    • Method Detail

      • findByUserIdAndName

        SavedSearch findByUserIdAndName​(long userId,
                                        String name)
                                 throws PersistenceException
        Gets the search using the alternate key
        Parameters:
        userId - Identifier of the user
        name - The name of the search
        Returns:
        the found search record, if any
        Throws:
        PersistenceException - Error in the database
      • findByUserId

        List<SavedSearch> findByUserId​(long userId)
                                throws PersistenceException
        Gets all the searches of a given user ordered by name asc
        Parameters:
        userId - Identifier of the user
        Returns:
        orderer list of searches
        Throws:
        PersistenceException - Error in the database