Package org.localify.repositories
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 TypeMethodDescriptionintdeleteAllByUserId(UUID userId) 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, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByUserId
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
Deletes all user searches for a user.- Parameters:
userId- The ID of the user.- Returns:
- The number of deleted searches.
-