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.

Version:
$Id: $
Author:
Weave , OpenNMS , Weave , OpenNMS

Field Summary
static char STATUS_ACTIVE
          Constant STATUS_ACTIVE='A'
static char STATUS_DELETED
          Constant STATUS_DELETED='D'
static char STATUS_FORCED
          Constant STATUS_FORCED='F'
static char STATUS_NOT_POLLED
          Constant STATUS_NOT_POLLED='N'
static char STATUS_REMOTE
          Constant STATUS_REMOTE='X'
static char STATUS_RESUME
          Constant STATUS_RESUME='R'
static char STATUS_SUSPEND
          Constant STATUS_SUSPEND='S'
static char STATUS_UNKNOWN
          Constant STATUS_UNKNOWN=' '
static char STATUS_UNMANAGED
          Constant STATUS_UNMANAGED='U'
 
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
Constant STATUS_UNMANAGED='U'

See Also:
Constant Field Values

STATUS_ACTIVE

public static final char STATUS_ACTIVE
Constant STATUS_ACTIVE='A'

See Also:
Constant Field Values

STATUS_DELETED

public static final char STATUS_DELETED
Constant STATUS_DELETED='D'

See Also:
Constant Field Values

STATUS_FORCED

public static final char STATUS_FORCED
Constant STATUS_FORCED='F'

See Also:
Constant Field Values

STATUS_NOT_POLLED

public static final char STATUS_NOT_POLLED
Constant STATUS_NOT_POLLED='N'

See Also:
Constant Field Values

STATUS_UNKNOWN

public static final char STATUS_UNKNOWN
Constant STATUS_UNKNOWN=' '

See Also:
Constant Field Values

STATUS_SUSPEND

public static final char STATUS_SUSPEND
Constant STATUS_SUSPEND='S'

See Also:
Constant Field Values

STATUS_RESUME

public static final char STATUS_RESUME
Constant STATUS_RESUME='R'

See Also:
Constant Field Values

STATUS_REMOTE

public static final char STATUS_REMOTE
Constant STATUS_REMOTE='X'

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
Returns:
a String object.

main

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

Parameters:
args - an array of String objects.


Copyright © 2011. All Rights Reserved.