Class AggregateAttributeChangeListener

  • All Implemented Interfaces:
    PropertyChangeListener, Serializable, EventListener

    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.

    See Also:
    Serialized Form
    • Method Detail

      • internalPropertyChange

        public void internalPropertyChange​(PropertyChangeEvent evt)
        This method creates the object change set if necessary. It also creates/updates the change record based on the new value. Object should check the if newValue and oldValue are identical. If they are identical, do not create PropertyChangeEvent and call this method.
        Overrides:
        internalPropertyChange in class AttributeChangeListener
      • setParentListener

        public void setParentListener​(AttributeChangeListener listener)
        Used to control the parent listener;