Module org.eclipse.persistence.core
Class AggregateChangeRecord
java.lang.Object
org.eclipse.persistence.internal.sessions.ChangeRecord
org.eclipse.persistence.internal.sessions.AggregateChangeRecord
- All Implemented Interfaces:
Serializable
,AggregateChangeRecord
,ChangeRecord
This change Record is used to record the changes for AggregateObjectMapping.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected ObjectChangeSet
protected static final String
protected Object
Fields inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
attribute, mapping, owner
-
Constructor Summary
ConstructorDescriptionThis default constructor.This constructor returns an ChangeRecord representing an AggregateMapping. -
Method Summary
Modifier and TypeMethodDescriptionADVANCED: This method is used to return the ObjectChangeSet representing the changed Aggregate.ADVANCED: If the owning UnitOfWork has shouldChangeRecordKeepOldValue set to true, then return the old value of the attribute represented by this ChangeRecord.void
mergeRecord
(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet) INTERNAL: This method will be used to merge one record into anothervoid
setChangedObject
(ObjectChangeSet newValue) INTERNAL: This method is used to set the changed value or values.void
setOldValue
(Object oldValue) INTERNAL: Set the old value of the attribute represented by this ChangeRecord.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.Methods inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
getAttribute, getMapping, getOwner, prepareForSynchronization, setAttribute, setMapping, setOwner, toString, updateChangeRecordWithNewValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.sessions.changesets.ChangeRecord
getAttribute, getOwner
-
Field Details
-
changedObject
-
oldValue
-
NULL
- See Also:
-
-
Constructor Details
-
AggregateChangeRecord
public AggregateChangeRecord()This default constructor. -
AggregateChangeRecord
This constructor returns an ChangeRecord representing an AggregateMapping.
-
-
Method Details
-
getChangedObject
ADVANCED: This method is used to return the ObjectChangeSet representing the changed Aggregate.- Specified by:
getChangedObject
in interfaceAggregateChangeRecord
-
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 classChangeRecord
-
setChangedObject
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 classChangeRecord
-
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 interfaceAggregateChangeRecord
- Specified by:
getOldValue
in interfaceChangeRecord
-
setOldValue
INTERNAL: Set the old value of the attribute represented by this ChangeRecord.
-