@Repository public class DeviceDaoImpl extends Object implements DeviceDao
Constructor and Description |
---|
DeviceDaoImpl() |
Modifier and Type | Method and Description |
---|---|
int |
countAndroidDevices() |
Long |
countDevices() |
int |
countDevicesWithoutNetworkID() |
int |
countIOSDevices() |
boolean |
doesDeviceHaveUsername(String deviceid) |
List<Device> |
findAllAndroidDevices() |
List<Device> |
findAllDevices() |
List<Device> |
findAlliOSDevices() |
Device |
findDeviceByDeviceId(String deviceid) |
Device |
findDeviceById(Long id) |
List<Device> |
findDevicesByDeviceId(String deviceid) |
List<Device> |
findDevicesById(String id) |
List<Device> |
findDevicesByRegId(String regid) |
List<Device> |
findDevicesByUsername(String username) |
List<Device> |
findDevicesWithoutUsername() |
javax.persistence.EntityManager |
getEntityManager() |
void |
registerDevice(Device device) |
boolean |
removeDevice(Device device) |
void |
setEntityManager(javax.persistence.EntityManager entityManager) |
public DeviceDaoImpl()
public List<Device> findAllDevices()
findAllDevices
in interface DeviceDao
public List<Device> findAlliOSDevices()
findAlliOSDevices
in interface DeviceDao
public List<Device> findAllAndroidDevices()
findAllAndroidDevices
in interface DeviceDao
public List<Device> findDevicesByUsername(String username)
findDevicesByUsername
in interface DeviceDao
public boolean doesDeviceHaveUsername(String deviceid)
doesDeviceHaveUsername
in interface DeviceDao
public List<Device> findDevicesWithoutUsername()
findDevicesWithoutUsername
in interface DeviceDao
public List<Device> findDevicesById(String id)
findDevicesById
in interface DeviceDao
public List<Device> findDevicesByRegId(String regid)
findDevicesByRegId
in interface DeviceDao
public List<Device> findDevicesByDeviceId(String deviceid)
findDevicesByDeviceId
in interface DeviceDao
public Device findDeviceByDeviceId(String deviceid)
findDeviceByDeviceId
in interface DeviceDao
public Device findDeviceById(Long id)
findDeviceById
in interface DeviceDao
public boolean removeDevice(Device device)
removeDevice
in interface DeviceDao
public void registerDevice(Device device)
registerDevice
in interface DeviceDao
public Long countDevices()
countDevices
in interface DeviceDao
public int countIOSDevices()
countIOSDevices
in interface DeviceDao
public int countAndroidDevices()
countAndroidDevices
in interface DeviceDao
public int countDevicesWithoutNetworkID()
countDevicesWithoutNetworkID
in interface DeviceDao
public javax.persistence.EntityManager getEntityManager()
public void setEntityManager(javax.persistence.EntityManager entityManager)
Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.