public final class ChangeBuffer extends StructureChangeListener
StructureChangeListener
whose
purpose is to buffer and accumulate ChangeInfo
objects
representing changes that have occurred to a Structure
.
It is used primarily by Structure.applyBatchChanges(java.lang.Runnable)
to buffer changes until the Runnable complets, so that a single change
event is fired when the Runnable finishes. However, it can also be
used as a means to capturing "deltas" that have occurred on a
HashStructure
between two discrete points in time so that the
deltas can be applied via HashStructure.applyChanges(oracle.javatools.data.ChangeInfo[])
instead of performing a deep copy.Constructor and Description |
---|
ChangeBuffer() |
Modifier and Type | Method and Description |
---|---|
ChangeInfo[] |
getChanges() |
void |
structureValuesChanged(StructureChangeEvent e)
This method is called when a change occurs in a structure.
|
public void structureValuesChanged(StructureChangeEvent e)
StructureChangeListener
structureValuesChanged
in class StructureChangeListener
public ChangeInfo[] getChanges()