Class AggregateChangeRecord

java.lang.Object
org.eclipse.persistence.internal.sessions.ChangeRecord
org.eclipse.persistence.internal.sessions.AggregateChangeRecord
All Implemented Interfaces:
Serializable, AggregateChangeRecord, ChangeRecord

public class AggregateChangeRecord extends ChangeRecord implements AggregateChangeRecord
This change Record is used to record the changes for AggregateObjectMapping.
See Also:
  • Field Details

  • Constructor Details

    • AggregateChangeRecord

      public AggregateChangeRecord()
      This default constructor.
    • AggregateChangeRecord

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

    • getChangedObject

      public ObjectChangeSet getChangedObject()
      ADVANCED: This method is used to return the ObjectChangeSet representing the changed Aggregate.
      Specified by:
      getChangedObject in interface AggregateChangeRecord
    • mergeRecord

      public void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
      INTERNAL: This method will be used to merge one record into another
      Specified by:
      mergeRecord in class ChangeRecord
    • 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.