Fixed formatting, removed checkWriteLock() in invalidateNode().
This commit is contained in:
parent
cfa6ddc3e0
commit
1fbe23bc03
1 changed files with 8 additions and 9 deletions
|
@ -444,15 +444,14 @@ public final class Node implements INode, Serializable {
|
|||
// This doesn't make sense for transient nodes
|
||||
if (state == TRANSIENT || state == NEW)
|
||||
return;
|
||||
checkWriteLock (); // ?? necessary ??
|
||||
Relation rel = getDbMapping ().getSubnodeRelation ();
|
||||
if (rel != null) {
|
||||
if (rel.usesPrimaryKey()) {
|
||||
nmgr.evictKey (new DbKey (getDbMapping().getSubnodeMapping(), key));
|
||||
} else {
|
||||
nmgr.evictKey (new SyntheticKey (getKey(), key));
|
||||
}
|
||||
}
|
||||
Relation rel = getDbMapping ().getSubnodeRelation ();
|
||||
if (rel != null) {
|
||||
if (rel.usesPrimaryKey()) {
|
||||
nmgr.evictKey (new DbKey (getDbMapping().getSubnodeMapping(), key));
|
||||
} else {
|
||||
nmgr.evictKey (new SyntheticKey (getKey(), key));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue