interface NotificationRepository extends org.springframework.data.repository.PagingAndSortingRepository<NotificationEntity,java.lang.Integer>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
query |
Modifier and Type | Method and Description |
---|---|
int |
countEquivalents(NotificationEntity.Status status,
EventType eventType,
GUID objectGuid,
GUID webhookGuid) |
org.springframework.data.domain.Page<NotificationEntity> |
findByStatusAndSelectDateBefore(NotificationEntity.Status scheduled,
java.time.LocalDateTime after,
org.springframework.data.domain.Pageable pageable) |
static final java.lang.String query
org.springframework.data.domain.Page<NotificationEntity> findByStatusAndSelectDateBefore(NotificationEntity.Status scheduled, java.time.LocalDateTime after, org.springframework.data.domain.Pageable pageable)
@Query(value="SELECT COUNT(n) FROM NotificationEntity n JOIN WebhookEntity w ON n.webhook = w.webhook JOIN EventEntity e ON n.event = e.event WHERE n.status = ?1 AND e.eventType = ?2 AND e.objectGuid = ?3 AND w.webhookId = ?4") int countEquivalents(NotificationEntity.Status status, EventType eventType, GUID objectGuid, GUID webhookGuid)