/** * Retrieves a current record from the database based upon the key fields of * <em>nodeID</em> and <em>ifIndex</em>. If the record cannot be found * then a null reference is returned. * * @param db * The database connection used to load the entry. * @param nodeId * The node id key * @param ifIndex * The interface index. * * @return The loaded entry or null if one could not be found. * */ public static DbSnmpInterfaceEntry get(Connection db, long nodeId, int ifIndex) throws SQLException { DbSnmpInterfaceEntry entry = new DbSnmpInterfaceEntry(nodeId, ifIndex); if (!entry.load(db)) { entry = null; } return entry; }