Interface UserSearchRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<UserSearch,UUID>, org.springframework.data.jpa.repository.JpaRepository<UserSearch,UUID>, org.springframework.data.repository.ListCrudRepository<UserSearch,UUID>, org.springframework.data.repository.ListPagingAndSortingRepository<UserSearch,UUID>, org.springframework.data.repository.PagingAndSortingRepository<UserSearch,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<UserSearch>, org.springframework.data.repository.Repository<UserSearch,UUID>

public interface UserSearchRepository extends org.springframework.data.jpa.repository.JpaRepository<UserSearch,UUID>
Repository for UserSearch entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deletes all user searches for a user.
    findByUserId(UUID userId, org.springframework.data.domain.Pageable pageable)
    Finds a list of user searches for a user.

    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

    • findByUserId

      List<UserSearch> findByUserId(UUID userId, org.springframework.data.domain.Pageable pageable)
      Finds a list of user searches for a user.
      Parameters:
      userId - The ID of the user.
      pageable - The pageable request.
      Returns:
      A list of user searches.
    • deleteAllByUserId

      int deleteAllByUserId(UUID userId)
      Deletes all user searches for a user.
      Parameters:
      userId - The ID of the user.
      Returns:
      The number of deleted searches.