Interface PushNotificationRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<PushNotification,,String> org.springframework.data.jpa.repository.JpaRepository<PushNotification,,String> org.springframework.data.repository.PagingAndSortingRepository<PushNotification,,String> org.springframework.data.repository.query.QueryByExampleExecutor<PushNotification>,org.springframework.data.repository.Repository<PushNotification,String>
@Repository
public interface PushNotificationRepository
extends org.springframework.data.jpa.repository.JpaRepository<PushNotification,String>
Spring Data repository used to access the templates in BBDD. See
Template.-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByDeviceId(String deviceId) delete deviceId in table PushNotification.findByDeviceId(String deviceId) Find deviceId in table PushNotification.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, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods 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
-
findByDeviceId
Find deviceId in table PushNotification.- Parameters:
deviceId- the message to send.- Returns:
- PushNotification for the given deviceId.
-
deleteByDeviceId
delete deviceId in table PushNotification.- Parameters:
deviceId- the message to send.
-