org.opennms.netmgt.capsd
Class DbIfServiceEntry

java.lang.Object
  extended by org.opennms.netmgt.capsd.DbIfServiceEntry

public final class DbIfServiceEntry
extends Object

Once loaded or create, the class tracks any changes and will write those changes to the database whenever the store method is invoked. If a database conneciton is not passed to the store method, then a temporary one is allocated to write the results.

NOTE: if the connection is passed in and is not in auto commit mode, then the caller must call commit to inform the database that the transaction is complete.

Author:
Weave , OpenNMS

Field Summary
static char STATUS_ACTIVE
           
static char STATUS_DELETED
           
static char STATUS_FORCED
           
static char STATUS_NOT_POLLED
           
static char STATUS_REMOTE
           
static char STATUS_RESUME
           
static char STATUS_SUSPEND
           
static char STATUS_UNKNOWN
           
static char STATUS_UNMANAGED
           
 
Method Summary
static void main(String[] args)
          For debugging only
 String toString()
          Creates a string that displays the internal contents of the record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_UNMANAGED

public static final char STATUS_UNMANAGED
See Also:
Constant Field Values

STATUS_ACTIVE

public static final char STATUS_ACTIVE
See Also:
Constant Field Values

STATUS_DELETED

public static final char STATUS_DELETED
See Also:
Constant Field Values

STATUS_FORCED

public static final char STATUS_FORCED
See Also:
Constant Field Values

STATUS_NOT_POLLED

public static final char STATUS_NOT_POLLED
See Also:
Constant Field Values

STATUS_UNKNOWN

public static final char STATUS_UNKNOWN
See Also:
Constant Field Values

STATUS_SUSPEND

public static final char STATUS_SUSPEND
See Also:
Constant Field Values

STATUS_RESUME

public static final char STATUS_RESUME
See Also:
Constant Field Values

STATUS_REMOTE

public static final char STATUS_REMOTE
See Also:
Constant Field Values
Method Detail

toString

public String toString()
Creates a string that displays the internal contents of the record. This is mainly just used for debug output since the format is ad-hoc.

Overrides:
toString in class Object

main

public static void main(String[] args)
For debugging only



Copyright © 2009. All Rights Reserved.