net.sourceforge.apphere.dao.mbeanclient
Class TestDeviceDAO

java.lang.Object
  extended bynet.sourceforge.apphere.dao.mbeanclient.TestDeviceDAO
All Implemented Interfaces:
DeviceDAO

public class TestDeviceDAO
extends java.lang.Object
implements DeviceDAO

Author:
Dewi Roberts Chimera - Institute for Socio-Technical Innovation and Research University of Essex

Constructor Summary
TestDeviceDAO()
           
 
Method Summary
 int addDevice(DeviceValue newDev)
           
 Device getDevice(java.net.InetAddress ip)
           
 Device getDevice(int userId, int deviceId)
           
 java.util.List getDevices(int userId)
           
 void removeDevice(int userId, int deviceId)
           
 void updateDevice(DeviceValue device)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestDeviceDAO

public TestDeviceDAO()
Method Detail

getDevice

public Device getDevice(int userId,
                        int deviceId)
                 throws AppHereException
Specified by:
getDevice in interface DeviceDAO
Throws:
AppHereException

addDevice

public int addDevice(DeviceValue newDev)
              throws AppHereException
Specified by:
addDevice in interface DeviceDAO
Throws:
AppHereException

updateDevice

public void updateDevice(DeviceValue device)
                  throws AppHereException
Specified by:
updateDevice in interface DeviceDAO
Throws:
AppHereException

removeDevice

public void removeDevice(int userId,
                         int deviceId)
                  throws AppHereException
Specified by:
removeDevice in interface DeviceDAO
Throws:
AppHereException

getDevices

public java.util.List getDevices(int userId)
                          throws AppHereException
Specified by:
getDevices in interface DeviceDAO
Throws:
AppHereException

getDevice

public Device getDevice(java.net.InetAddress ip)
                 throws AppHereException
Specified by:
getDevice in interface DeviceDAO
Throws:
AppHereException