Add SubnodeList.markAsChanged() method, fix SubnodeList class javadoc.

This commit is contained in:
hns 2009-05-27 11:08:14 +00:00
parent fbd4706604
commit 44233c5446
2 changed files with 6 additions and 2 deletions

View file

@ -365,7 +365,7 @@ public final class Node implements INode, Serializable {
*/ */
public void markSubnodesChanged() { public void markSubnodesChanged() {
if (subnodes != null) { if (subnodes != null) {
subnodes.lastSubnodeChange += 1; subnodes.markAsChanged();
} }
} }

View file

@ -21,7 +21,7 @@ import java.util.List;
import java.io.Serializable; import java.io.Serializable;
/** /**
* A subclass of ArrayList that adds an addSorted(Object) method to * Container implementation for subnode collections.
*/ */
public class SubnodeList implements Serializable { public class SubnodeList implements Serializable {
@ -169,6 +169,10 @@ public class SubnodeList implements Serializable {
checkSum : checkSum + rel.otherType.getLastDataChange(); checkSum : checkSum + rel.otherType.getLastDataChange();
} }
protected synchronized void markAsChanged() {
lastSubnodeChange += 1;
}
protected boolean hasRelationalNodes() { protected boolean hasRelationalNodes() {
DbMapping dbmap = getSubnodeMapping(); DbMapping dbmap = getSubnodeMapping();
return (dbmap != null && dbmap.isRelational() return (dbmap != null && dbmap.isRelational()