devices
Class DbInterface

java.lang.Object
  extended bydevices.DbInterface

public class DbInterface
extends java.lang.Object

Process DeviceInterface records in the database. Insert, retrieve, and remove records in the DeviceInterface table. An Interface exists for a specific device. Therfore, a ManagedDevice must exist prior to adding a new Interface.

Version:
0.1
Author:
gswalters

Constructor Summary
DbInterface()
           
 
Method Summary
static java.util.Vector dbGetAllInterfaces(java.sql.Connection dbConn, long deviceID)
          Retrieve all the DeviceInterfaces for a specific Device.
static java.util.Vector dbGetMonitoredInterfaces(java.sql.Connection dbConn, long deviceID)
          Retrieve all the monitored DeviceInterfaces for a specific Device.
static java.util.Vector dbGetRemovedInterfaces(java.sql.Connection dbConn, long deviceID)
          Retrieve all the removed DeviceInterfaces for a specific Device.
static java.util.Vector dbGetUnmonitoredInterfaces(java.sql.Connection dbConn, long deviceID)
          Retrieve all the unmonitored DeviceInterfaces for a specific Device.
static java.util.Vector dbGetUnremovedInterfaces(java.sql.Connection dbConn, long deviceID)
          Retrieve all the unremoved DeviceInterfaces for a specific Device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbInterface

public DbInterface()
Method Detail

dbGetAllInterfaces

public static java.util.Vector dbGetAllInterfaces(java.sql.Connection dbConn,
                                                  long deviceID)
Retrieve all the DeviceInterfaces for a specific Device.

Parameters:
dbConn - Connection to the database
deviceID - long record ID of the ManagedDevice for which to retrieve Interfaces
Returns:
DeviceInterface array - a null value indicates not found or an error occured

dbGetRemovedInterfaces

public static java.util.Vector dbGetRemovedInterfaces(java.sql.Connection dbConn,
                                                      long deviceID)
Retrieve all the removed DeviceInterfaces for a specific Device.

Parameters:
dbConn - Connection to the database
deviceID - long record ID of the ManagedDevice for which to retrieve Interfaces
Returns:
DeviceInterface array - a null value indicates not found or an error occured

dbGetUnremovedInterfaces

public static java.util.Vector dbGetUnremovedInterfaces(java.sql.Connection dbConn,
                                                        long deviceID)
Retrieve all the unremoved DeviceInterfaces for a specific Device.

Parameters:
dbConn - Connection to the database
deviceID - long record ID of the ManagedDevice for which to retrieve Interfaces
Returns:
DeviceInterface array - a null value indicates not found or an error occured

dbGetMonitoredInterfaces

public static java.util.Vector dbGetMonitoredInterfaces(java.sql.Connection dbConn,
                                                        long deviceID)
Retrieve all the monitored DeviceInterfaces for a specific Device.

Parameters:
dbConn - Connection to the database
deviceID - long record ID of the ManagedDevice for which to retrieve Interfaces
Returns:
DeviceInterface array - a null value indicates not found or an error occured

dbGetUnmonitoredInterfaces

public static java.util.Vector dbGetUnmonitoredInterfaces(java.sql.Connection dbConn,
                                                          long deviceID)
Retrieve all the unmonitored DeviceInterfaces for a specific Device.

Parameters:
dbConn - Connection to the database
deviceID - long record ID of the ManagedDevice for which to retrieve Interfaces
Returns:
DeviceInterface array - a null value indicates not found or an error occured