public interface PushDao
Modifier and Type | Method and Description |
---|---|
int |
countPushes()
Returns the number of
Push messages persisted. |
List<Push> |
findAllPush()
Returns a list of ALL the
Push messages
that are persisted.WARNING: This method can return A LOT of data |
List<Device> |
findDevicesForPush(Push push)
Finds the devices a push message was sent too
|
Push |
findPushById(Long id)
Finds a
Push by its ID. |
List<PushDeviceTuple> |
findUnsentPushTuples()
Finds push notifications that has to be sent
|
boolean |
removePush(Push push)
Removes a
Push instance. |
void |
savePush(Push push)
Persists a
Push instance. |
void |
savePush(Push push,
List<Device> devices)
Persists a
Push instance and creates PushDeviceTuple
instances for each of the specified devices. |
boolean removePush(Push push)
Push
instance.push
- void savePush(Push push, List<Device> devices)
Push
instance and creates PushDeviceTuple
instances for each of the specified devices.push
- The Push
message to persists.devices
- A list of device to create PushDeviceTuple
records for.int countPushes()
Push
messages persisted.Push
messages persisted.Push findPushById(Long id)
Push
by its ID.id
- ID of the Push
to find.Push
that has the specified ID.List<Push> findAllPush()
Push
messages
that are persisted.Push
messages.List<Device> findDevicesForPush(Push push)
push
- Push
message to find devices of.List<PushDeviceTuple> findUnsentPushTuples()
PushDeviceTuple
entries that has to be sent.Copyright © 2011–2014 The Kuali Foundation. All rights reserved.