new method that fetches a node from a Key object.
This commit is contained in:
parent
7231ec6224
commit
c9068187c8
1 changed files with 5 additions and 1 deletions
|
@ -23,8 +23,12 @@ import java.util.Vector;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Node getNode (String id, DbMapping dbmap) {
|
public Node getNode (String id, DbMapping dbmap) {
|
||||||
|
return getNode (new Key (dbmap, id));
|
||||||
|
}
|
||||||
|
|
||||||
|
public Node getNode (Key key) {
|
||||||
try {
|
try {
|
||||||
return nmgr.getNode (id, dbmap);
|
return nmgr.getNode (key);
|
||||||
} catch (ObjectNotFoundException x) {
|
} catch (ObjectNotFoundException x) {
|
||||||
return null;
|
return null;
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue