Interface SuggestionEventRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<SuggestionEvent,,String> org.springframework.data.elasticsearch.repository.ElasticsearchRepository<SuggestionEvent,,String> org.springframework.data.repository.PagingAndSortingRepository<SuggestionEvent,,String> org.springframework.data.repository.Repository<SuggestionEvent,String>
public interface SuggestionEventRepository
extends org.springframework.data.elasticsearch.repository.ElasticsearchRepository<SuggestionEvent,String>
-
Method Summary
Modifier and TypeMethodDescriptionlongdeleteByCreationDateBetween(long from, long to) longdeleteByExpiryDateBetween(long from, long to) findByTopic(String topic) org.springframework.data.domain.Page<SuggestionEvent>findByTopic(String topic, org.springframework.data.domain.Pageable pageable) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAllMethods inherited from interface org.springframework.data.elasticsearch.repository.ElasticsearchRepository
searchSimilarMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll, findAll
-
Method Details
-
findByTopic
-
findByTopic
org.springframework.data.domain.Page<SuggestionEvent> findByTopic(String topic, org.springframework.data.domain.Pageable pageable) -
deleteByExpiryDateBetween
long deleteByExpiryDateBetween(long from, long to) -
deleteByCreationDateBetween
long deleteByCreationDateBetween(long from, long to)
-