public final class DbSnmpInterfaceEntry 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 connection 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.
Modifier and Type | Method and Description |
---|---|
static DbSnmpInterfaceEntry |
get(Connection db,
long nodeId,
int ifIndex)
Retrieves a current record from the database based upon the key fields of
nodeID and ifIndex.
|
static DbSnmpInterfaceEntry |
get(long nodeId,
int ifIndex)
Retrieves a current record from the database based upon the key fields of
nodeID and ifindex.
|
String |
getAlias() |
static void |
main(String[] args)
For debugging only
|
String |
toString()
Creates a string that displays the internal contents of the record.
|
public String getAlias()
public static DbSnmpInterfaceEntry get(long nodeId, int ifIndex) throws SQLException
nodeId
- The node id keyifIndex
- the interface index.SQLException
public static DbSnmpInterfaceEntry get(Connection db, long nodeId, int ifIndex) throws SQLException
db
- The database connection used to load the entry.nodeId
- The node id keyifIndex
- The interface index.SQLException
public String toString()
Copyright © 2015. All Rights Reserved.