Class AggregateChangeRecord

    • Constructor Detail

      • AggregateChangeRecord

        public AggregateChangeRecord()
        This default constructor.
      • AggregateChangeRecord

        public AggregateChangeRecord​(ObjectChangeSet owner)
        This constructor returns an ChangeRecord representing an AggregateMapping.
    • Method Detail

      • setChangedObject

        public void setChangedObject​(ObjectChangeSet newValue)
        INTERNAL: This method is used to set the changed value or values.
      • updateReferences

        public void updateReferences​(UnitOfWorkChangeSet mergeToChangeSet,
                                     UnitOfWorkChangeSet mergeFromChangeSet)
        INTERNAL: This method will be used to update the objectsChangeSets references If this is an aggregate change set then there is no need to update the reference as the ChangeSet has no identity outside of this record Check to see if it exists here already to prevent us from creating a little extra garbage.
        Specified by:
        updateReferences in class ChangeRecord
      • getOldValue

        public Object getOldValue()
        ADVANCED: If the owning UnitOfWork has shouldChangeRecordKeepOldValue set to true, then return the old value of the attribute represented by this ChangeRecord.
        Specified by:
        getOldValue in interface AggregateChangeRecord
        Specified by:
        getOldValue in interface ChangeRecord
      • setOldValue

        public void setOldValue​(Object oldValue)
        INTERNAL: Set the old value of the attribute represented by this ChangeRecord.