Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.javatools.data
Class ChangeBuffer

java.lang.Object
  extended by oracle.javatools.data.StructureChangeListener
      extended by oracle.javatools.data.ChangeBuffer

All Implemented Interfaces:
java.util.EventListener

public final class ChangeBuffer
extends StructureChangeListener

This class is a specialized 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 Summary
ChangeBuffer()
           

 

Method Summary
 ChangeInfo[] getChanges()
           
 void structureValuesChanged(StructureChangeEvent e)
          This method is called when a change occurs in a structure.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ChangeBuffer

public ChangeBuffer()

Method Detail

structureValuesChanged

public void structureValuesChanged(StructureChangeEvent e)
Description copied from class: StructureChangeListener
This method is called when a change occurs in a structure. The change details are in the specified event object.
Specified by:
structureValuesChanged in class StructureChangeListener

getChanges

public ChangeInfo[] getChanges()

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.