Interface AlertNotificationRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<AlertNotification,,String> org.springframework.data.elasticsearch.repository.ElasticsearchRepository<AlertNotification,,String> org.springframework.data.repository.PagingAndSortingRepository<AlertNotification,,String> org.springframework.data.repository.Repository<AlertNotification,String>
public interface AlertNotificationRepository
extends org.springframework.data.elasticsearch.repository.ElasticsearchRepository<AlertNotification,String>
-
Method Summary
Modifier and TypeMethodDescriptionlongcountBySubscriptionId(String subscriptionId) longcountBySubscriptionIdAndDateAfter(String subscriptionId, long from) longdeleteByDateBefore(long date) longdeleteByDateBetween(long from, long to) voiddeleteBySubscriptionId(String subscriptionId) org.springframework.data.domain.Page<AlertNotification>findAll(org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<AlertNotification>findByEventId(String topic, org.springframework.data.domain.Pageable pageable) findBySubscriptionId(String subscriptionId) 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
-
Method Details
-
findBySubscriptionId
-
findAll
org.springframework.data.domain.Page<AlertNotification> findAll(org.springframework.data.domain.Pageable pageable) - Specified by:
findAllin interfaceorg.springframework.data.repository.PagingAndSortingRepository<AlertNotification,String>
-
findByEventId
org.springframework.data.domain.Page<AlertNotification> findByEventId(String topic, org.springframework.data.domain.Pageable pageable) -
deleteByDateBefore
long deleteByDateBefore(long date) -
countBySubscriptionId
-
countBySubscriptionIdAndDateAfter
-
deleteBySubscriptionId
-
deleteByDateBetween
long deleteByDateBetween(long from, long to)
-