Class AttributeChangeListener

    • Constructor Detail

      • AttributeChangeListener

        public AttributeChangeListener​(ClassDescriptor descriptor,
                                       UnitOfWorkImpl uow,
                                       Object owner)
        INTERNAL: Create a AttributeChangeListener with a descriptor and unit of work
    • Method Detail

      • getObjectChangeSet

        public ObjectChangeSet getObjectChangeSet()
        INTERNAL: Return the object change set associated with this listener
      • setObjectChangeSet

        public void setObjectChangeSet​(ObjectChangeSet changeSet)
        INTERNAL: Return the object change set associated with this listener
      • getDescriptor

        public ClassDescriptor getDescriptor()
        INTERNAL: Return the descriptor associated with this listener
      • setDescriptor

        public void setDescriptor​(ClassDescriptor descriptor)
        INTERNAL: Set the descriptor associated with this listener
      • getUnitOfWork

        public UnitOfWorkImpl getUnitOfWork()
        INTERNAL: Return the unit of work associated with this listener
      • setUnitOfWork

        public void setUnitOfWork​(UnitOfWorkImpl uow)
        INTERNAL: Set the unit of work associated with this listener
      • propertyChange

        public void propertyChange​(PropertyChangeEvent evt)
        PUBLIC: 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.
        Specified by:
        propertyChange in interface PropertyChangeListener
        Overrides:
        propertyChange in class ObjectChangeListener
      • clearChanges

        public void clearChanges​(boolean forRefresh)
        INTERNAL: Clear the changes in this listener
        Overrides:
        clearChanges in class ObjectChangeListener