new method that fetches a node from a Key object.

This commit is contained in:
hns 2001-08-01 00:08:07 +00:00
parent 7231ec6224
commit c9068187c8

View file

@ -23,8 +23,12 @@ import java.util.Vector;
}
public Node getNode (String id, DbMapping dbmap) {
return getNode (new Key (dbmap, id));
}
public Node getNode (Key key) {
try {
return nmgr.getNode (id, dbmap);
return nmgr.getNode (key);
} catch (ObjectNotFoundException x) {
return null;
} catch (Exception x) {