| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.graph.CompoundDiff
public class CompoundDiff
A GraphDiff that is a list of other GraphDiffs.
| Field Summary | |
|---|---|
| protected  List<GraphDiff> | diffs | 
| Constructor Summary | |
|---|---|
| CompoundDiff()Creates an empty CompoundDiff instance. | |
| CompoundDiff(List<GraphDiff> diffs)Creates CompoundDiff instance. | |
| Method Summary | |
|---|---|
|  void | add(GraphDiff diff) | 
|  void | addAll(Collection<GraphDiff> diffs) | 
|  void | apply(GraphChangeHandler tracker)Iterates over diffs list, calling "apply" on each individual diff. | 
|  List<GraphDiff> | getDiffs() | 
|  boolean | isNoop()Returns true if this diff has no other diffs or if all of its diffs are noops. | 
|  void | undo(GraphChangeHandler tracker)Iterates over diffs list in reverse order, calling "apply" on each individual diff. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected List<GraphDiff> diffs
| Constructor Detail | 
|---|
public CompoundDiff()
public CompoundDiff(List<GraphDiff> diffs)
| Method Detail | 
|---|
public boolean isNoop()
isNoop in interface GraphDiffpublic List<GraphDiff> getDiffs()
public void add(GraphDiff diff)
public void addAll(Collection<GraphDiff> diffs)
public void apply(GraphChangeHandler tracker)
apply in interface GraphDiffpublic void undo(GraphChangeHandler tracker)
undo in interface GraphDiff| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||