public class AggregateAttributeChangeListener extends AttributeChangeListener
Purpose: Define a listener for attribute change tracking.
Description: Listener is notified on a PropertyChangeEvent from the object it belongs to.
Responsibilities: Set the flag to true and build ObjectChangeSet that includes the ChangeRecords for the changed attributes.
| Constructor and Description |
|---|
AggregateAttributeChangeListener(ClassDescriptor descriptor,
UnitOfWorkImpl uow,
AttributeChangeListener parentListener,
String parentAttribute,
Object owner)
Create a AttributeChangeListener with a descriptor and unit of work
|
| Modifier and Type | Method and Description |
|---|---|
void |
internalPropertyChange(PropertyChangeEvent evt)
This method creates the object change set if necessary.
|
void |
setParentListener(AttributeChangeListener listener)
Used to control the parent listener;
|
clearChanges, getDescriptor, getObjectChangeSet, getUnitOfWork, propertyChange, setDescriptor, setObjectChangeSet, setUnitOfWork, toStringhasChanges, ignoreEvents, processEventspublic AggregateAttributeChangeListener(ClassDescriptor descriptor, UnitOfWorkImpl uow, AttributeChangeListener parentListener, String parentAttribute, Object owner)
public void internalPropertyChange(PropertyChangeEvent evt)
internalPropertyChange in class AttributeChangeListenerpublic void setParentListener(AttributeChangeListener listener)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference