public interface NotificationRepository extends org.springframework.data.jpa.repository.JpaRepository<RegistrationNotification,String>
| Modifier and Type | Method and Description |
|---|---|
int |
countFiltered(long siteId,
String idFilter,
String loginFilter,
String nameFilter) |
Optional<RegistrationNotification> |
findByNotificationId(String regId) |
Optional<RegistrationNotification> |
findByPrincipal(Principal principal) |
List<RegistrationNotification> |
findFiltered(long siteId,
String idFilter,
String loginFilter,
String nameFilter,
org.springframework.data.domain.Pageable pageable) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllOptional<RegistrationNotification> findByPrincipal(Principal principal)
@Query(value="select reg from RegistrationNotification reg where reg.principal.site.id = ?1 and (reg.notificationId like ?2% or reg.principal.loginName like ?3% or reg.principal.fullName like %?4%)") List<RegistrationNotification> findFiltered(long siteId, String idFilter, String loginFilter, String nameFilter, org.springframework.data.domain.Pageable pageable)
@Query(value="select count(reg) from RegistrationNotification reg where reg.principal.site.id = ?1 and (reg.notificationId like ?2% or reg.principal.loginName like ?3% or reg.principal.fullName like %?4%)")
int countFiltered(long siteId,
String idFilter,
String loginFilter,
String nameFilter)
Optional<RegistrationNotification> findByNotificationId(String regId)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.