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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectChangeSet
changedObject
protected static String
NULL
protected Object
oldValue
-
Fields inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
attribute, mapping, owner
-
-
Constructor Summary
Constructors Constructor Description AggregateChangeRecord()
This default constructor.AggregateChangeRecord(ObjectChangeSet owner)
This constructor returns an ChangeRecord representing an AggregateMapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectChangeSet
getChangedObject()
ADVANCED: This method is used to return the ObjectChangeSet representing the changed Aggregate.Object
getOldValue()
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 Detail
-
changedObject
protected ObjectChangeSet changedObject
-
oldValue
protected transient Object oldValue
-
NULL
protected static final String NULL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AggregateChangeRecord
public AggregateChangeRecord()
This default constructor.
-
AggregateChangeRecord
public AggregateChangeRecord(ObjectChangeSet owner)
This constructor returns an ChangeRecord representing an AggregateMapping.
-
-
Method Detail
-
getChangedObject
public ObjectChangeSet 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
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 classChangeRecord
-
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 interfaceAggregateChangeRecord
- Specified by:
getOldValue
in interfaceChangeRecord
-
setOldValue
public void setOldValue(Object oldValue)
INTERNAL: Set the old value of the attribute represented by this ChangeRecord.
-
-