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