* Make setParent() access public

* Revert back to only check _parent for relational nodes in getParent()
This commit is contained in:
hns 2004-03-10 13:53:50 +00:00
parent bebeecfa77
commit 092070bb73

View file

@ -626,7 +626,7 @@ public final class Node implements INode, Serializable {
/** /**
* Set this node's parent node. * Set this node's parent node.
*/ */
protected void setParent(Node parent) { public void setParent(Node parent) {
parentHandle = (parent == null) ? null : parent.getHandle(); parentHandle = (parent == null) ? null : parent.getHandle();
} }
@ -702,7 +702,7 @@ public final class Node implements INode, Serializable {
// check what's specified in the type.properties for this node. // check what's specified in the type.properties for this node.
ParentInfo[] parentInfo = null; ParentInfo[] parentInfo = null;
if (dbmap != null && lastParentSet <= Math.max(dbmap.getLastTypeChange(), lastmodified)) { if (isRelational() && lastParentSet <= Math.max(dbmap.getLastTypeChange(), lastmodified)) {
parentInfo = dbmap.getParentInfo(); parentInfo = dbmap.getParentInfo();
} }