From c9068187c804f0a0c1751f8fcac60de5f38107b9 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 1 Aug 2001 00:08:07 +0000 Subject: [PATCH] new method that fetches a node from a Key object. --- src/helma/objectmodel/db/WrappedNodeManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/helma/objectmodel/db/WrappedNodeManager.java b/src/helma/objectmodel/db/WrappedNodeManager.java index b4b49a2d..47e6f946 100644 --- a/src/helma/objectmodel/db/WrappedNodeManager.java +++ b/src/helma/objectmodel/db/WrappedNodeManager.java @@ -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) {