"WEBNMS_5 API Docs"

com.adventnet.nms.store
Interface DBExtendedInterface

All Superinterfaces:
java.lang.Cloneable, DBInterface
All Known Implementing Classes:
Alert, CORBANode, Event, InputEvent, IpAddress, ManagedGroupObject, ManagedObject, MapContainer, MapDB, MapGroup, MapLink, MapSymbol, MultiplePolledData, Network, Node, PeriodicPolicyObject, PolicyObject, PolledData, SnmpInterface, SnmpNode, TL1Interface, TL1Node, TopoObject

public interface DBExtendedInterface
extends DBInterface

This interface gives the flexibilty of having additional properties being stored along with the fields .In case of Serialization it does not make any change but in the database , it is necessary for storing these so called user Properties in the database


Method Summary
 java.util.Properties getUserProperties()
          This should return a Properties object .
 java.lang.String getUserProperty(java.lang.String nam)
           
 java.lang.String removeUserProperty(java.lang.String nam)
           
 void setUserProperty(java.lang.String nam, java.lang.String val)
          To set any additional user property during runtime .
 
Methods inherited from interface com.adventnet.nms.store.DBInterface
clone, getKey, getKeyName, getProperties, setProperties
 

Method Detail

getUserProperties

java.util.Properties getUserProperties()
This should return a Properties object . Note it should not return any properties which are fields in the object.It should return those which say are added during runtime in a Hashtable or Properties member field of the object.


setUserProperty

void setUserProperty(java.lang.String nam,
                     java.lang.String val)
To set any additional user property during runtime . Internally it might be stored in a Hashtable or Properties member But should be available from the getUserProperties and getUserProperty methods


getUserProperty

java.lang.String getUserProperty(java.lang.String nam)

removeUserProperty

java.lang.String removeUserProperty(java.lang.String nam)

"WEBNMS_5 API Docs"

Copyright © 2011 ZOHO Corp., All Rights Reserved.