|
||||||||||
| 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 java.util.List<GraphDiff> |
diffs
|
| Constructor Summary | |
|---|---|
CompoundDiff()
Creates an empty CompoundDiff instance. |
|
CompoundDiff(java.util.List<GraphDiff> diffs)
Creates CompoundDiff instance. |
|
| Method Summary | |
|---|---|
void |
add(GraphDiff diff)
|
void |
addAll(java.util.Collection<GraphDiff> diffs)
|
void |
apply(GraphChangeHandler tracker)
Iterates over diffs list, calling "apply" on each individual diff. |
java.util.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 java.util.List<GraphDiff> diffs
| Constructor Detail |
|---|
public CompoundDiff()
public CompoundDiff(java.util.List<GraphDiff> diffs)
| Method Detail |
|---|
public boolean isNoop()
isNoop in interface GraphDiffpublic java.util.List<GraphDiff> getDiffs()
public void add(GraphDiff diff)
public void addAll(java.util.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 | |||||||||