Class AggregateAttributeChangeListener

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.io.Serializable, java.util.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
    • Field Detail

      • parentAttributeName

        protected java.lang.String parentAttributeName
    • Constructor Detail

      • AggregateAttributeChangeListener

        public AggregateAttributeChangeListener​(ClassDescriptor descriptor,
                                                UnitOfWorkImpl uow,
                                                AttributeChangeListener parentListener,
                                                java.lang.String parentAttribute,
                                                java.lang.Object owner)
        Create a AttributeChangeListener with a descriptor and unit of work
    • Method Detail

      • internalPropertyChange

        public void internalPropertyChange​(java.beans.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;