public class ObjectChangeListener extends Object implements PropertyChangeListener, Serializable
Purpose: Define a listener for object change tracking.
Description: Listener is notified on a PropertyChangeEvent from the object it belongs to.
Responsibilities: Set the flag to true when there is any change in the object.
Constructor and Description |
---|
ObjectChangeListener()
INTERNAL:
Create a ObjectChangeListener
|
Modifier and Type | Method and Description |
---|---|
void |
clearChanges(boolean forRefresh)
INTERNAL:
Clear a change flag used in this method.
|
boolean |
hasChanges()
INTERNAL:
This method should return true if the object has been changed and false otherwise.
|
void |
ignoreEvents()
INTERNAL:
This method will set this listener to ignore events not issues by EclipseLink
|
void |
internalPropertyChange(PropertyChangeEvent evt)
INTERNAL:
This method turns marks the object as changed.
|
void |
processEvents()
INTERNAL:
This method will set this listener to ignore events not issues by EclipseLink
|
void |
propertyChange(PropertyChangeEvent evt)
PUBLIC:
This method turns marks the object as changed.
|
public ObjectChangeListener()
public void ignoreEvents()
public void processEvents()
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void internalPropertyChange(PropertyChangeEvent evt)
public boolean hasChanges()
public void clearChanges(boolean forRefresh)
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference