public interface DeviceDao
| Modifier and Type | Method and Description |
|---|---|
Long |
countDevices()
Counts the number of all registered devices.
|
long |
countDevices(String deviceType)
Counts the number of devices by device type.
|
int |
countDevicesWithoutUsername()
Returns a count of all devices that does not have a username
|
boolean |
doesDeviceHaveUsername(String deviceid)
Return tue if there is a username for the specifed deviceId
|
List<Device> |
findAllDevices()
Find all devices that are registered.
|
List<Device> |
findAllDevices(String deviceType)
Finds all devices of a specific type.
|
Device |
findDeviceByDeviceId(String deviceid)
Finds a device with the specified device ID
|
Device |
findDeviceById(Long id)
Finds a
Device by the Object ID for the Device |
List<Device> |
findDevicesByDeviceId(String deviceid)
Finds devices with the specified device id.
|
List<Device> |
findDevicesById(Long id) |
List<Device> |
findDevicesByRegId(String regid) |
List<Device> |
findDevicesByUsername(String username)
Returns a list of devices registed by a username.
|
List<Device> |
findDevicesWithoutUsername()
Finds all device that does not have a username
|
void |
registerDevice(Device device)
Deprecated.
This method is misleading as it does not register a device
but persists the state of a device. Rather use
saveDevice(Device).
This method will be removed in version 3.0 |
boolean |
removeDevice(Device device)
Removes a
Device instance from persistence. |
void |
saveDevice(Device device)
Persists a
Device instance |
void saveDevice(Device device)
Device instancedevice - @Deprecated void registerDevice(Device device)
saveDevice(Device).
This method will be removed in version 3.0Device instancedevice - The device to persistboolean removeDevice(Device device)
Device instance from persistence.device - The device to remove.Long countDevices()
long countDevices(String deviceType)
int countDevicesWithoutUsername()
List<Device> findAllDevices()
List<Device> findAllDevices(String deviceType)
deviceType - boolean doesDeviceHaveUsername(String deviceid)
deviceid - List<Device> findDevicesByUsername(String username)
username - List<Device> findDevicesWithoutUsername()
List<Device> findDevicesByDeviceId(String deviceid)
Devicedeviceid - Device findDeviceByDeviceId(String deviceid)
deviceid - Device findDeviceById(Long id)
Device by the Object ID for the Deviceid - If of the Device to find.List<Device> findDevicesById(Long id)
List<Device> findDevicesByRegId(String regid)
Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.