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 Type
    Method
    Description
    void
    delete deviceId in table PushNotification.
    Find deviceId in table PushNotification.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByDeviceId

      PushNotification findByDeviceId(String deviceId)
      Find deviceId in table PushNotification.
      Parameters:
      deviceId - the message to send.
      Returns:
      PushNotification for the given deviceId.
    • deleteByDeviceId

      void deleteByDeviceId(String deviceId)
      delete deviceId in table PushNotification.
      Parameters:
      deviceId - the message to send.