net.sourceforge.apphere.dao
Interface DeviceDAO

All Known Subinterfaces:
TestImplMBean
All Known Implementing Classes:
TestDeviceDAO, TestImpl

public interface DeviceDAO

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

Method Summary
 int addDevice(DeviceValue deviceVal)
           
 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 deviceVal)
           
 

Method Detail

addDevice

public int addDevice(DeviceValue deviceVal)
              throws AppHereException
Throws:
AppHereException

updateDevice

public void updateDevice(DeviceValue deviceVal)
                  throws AppHereException
Throws:
AppHereException

removeDevice

public void removeDevice(int userId,
                         int deviceId)
                  throws AppHereException
Throws:
AppHereException

getDevice

public Device getDevice(int userId,
                        int deviceId)
                 throws AppHereException
Throws:
AppHereException

getDevices

public java.util.List getDevices(int userId)
                          throws AppHereException
Throws:
AppHereException

getDevice

public Device getDevice(java.net.InetAddress ip)
                 throws AppHereException
Throws:
AppHereException