AdventNet Web NMS 4 API Specification

com.adventnet.nms.store
Interface DBInterface

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
DBExtendedInterface
All Known Implementing Classes:
AlertHistory, MultiplePolledData, NetworkInventory

public interface DBInterface
extends java.lang.Cloneable

All Persistent objects which need to be stored either in a Relational Database System or Serialized flat files, should implement this interface.


Method Summary
 java.lang.Object clone()
          A method to return a new object which is a clone of this object.
 java.lang.String getKey()
          This is the primary key value of the persistent object.
 java.lang.String getKeyName()
          The field which is used as key for the object.
 java.util.Properties getProperties()
          Should return the fields and the values of the object in a Properties object.
 void setProperties(java.util.Properties p)
          This method should take in the values of all the fields in the object in a Properties Object and set them.
 

Method Detail

getKey

public java.lang.String getKey()
This is the primary key value of the persistent object.

getKeyName

public java.lang.String getKeyName()
The field which is used as key for the object.

setProperties

public void setProperties(java.util.Properties p)
This method should take in the values of all the fields in the object in a Properties Object and set them.

getProperties

public java.util.Properties getProperties()
Should return the fields and the values of the object in a Properties object.

clone

public java.lang.Object clone()
A method to return a new object which is a clone of this object.
Overrides:
clone in class java.lang.Object

AdventNet Web NMS 4 API Specification