Add SubnodeList.markAsChanged() method, fix SubnodeList class javadoc.
This commit is contained in:
parent
fbd4706604
commit
44233c5446
2 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue