Fixed formatting, removed checkWriteLock() in invalidateNode().

This commit is contained in:
hns 2002-10-14 15:09:45 +00:00
parent cfa6ddc3e0
commit 1fbe23bc03

View file

@ -444,15 +444,14 @@ public final class Node implements INode, Serializable {
// This doesn't make sense for transient nodes // This doesn't make sense for transient nodes
if (state == TRANSIENT || state == NEW) if (state == TRANSIENT || state == NEW)
return; return;
checkWriteLock (); // ?? necessary ?? Relation rel = getDbMapping ().getSubnodeRelation ();
Relation rel = getDbMapping ().getSubnodeRelation (); if (rel != null) {
if (rel != null) { if (rel.usesPrimaryKey()) {
if (rel.usesPrimaryKey()) { nmgr.evictKey (new DbKey (getDbMapping().getSubnodeMapping(), key));
nmgr.evictKey (new DbKey (getDbMapping().getSubnodeMapping(), key)); } else {
} else { nmgr.evictKey (new SyntheticKey (getKey(), key));
nmgr.evictKey (new SyntheticKey (getKey(), key)); }
} }
}
} }