Class AggregateCollectionChangeRecord
- java.lang.Object
-
- org.eclipse.persistence.internal.sessions.ChangeRecord
-
- org.eclipse.persistence.internal.sessions.DeferrableChangeRecord
-
- org.eclipse.persistence.internal.sessions.CollectionChangeRecord
-
- org.eclipse.persistence.internal.sessions.AggregateCollectionChangeRecord
-
- All Implemented Interfaces:
Serializable
,AggregateCollectionChangeRecord
,ChangeRecord
,CollectionChangeRecord
public class AggregateCollectionChangeRecord extends CollectionChangeRecord implements AggregateCollectionChangeRecord
This change record records the changes for AggregateCollectionMapping.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<ObjectChangeSet>
changedValues
-
Fields inherited from class org.eclipse.persistence.internal.sessions.CollectionChangeRecord
addObjectList, addOverFlow, orderedAddObjectIndices, orderedAddObjects, orderedChangeObjectList, orderedRemoveObjectIndices, orderedRemoveObjects, orderHasBeenRepaired, removeObjectList
-
Fields inherited from class org.eclipse.persistence.internal.sessions.DeferrableChangeRecord
isDeferred, latestCollection, originalCollection
-
Fields inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
attribute, mapping, owner
-
-
Constructor Summary
Constructors Constructor Description AggregateCollectionChangeRecord()
This default constructor.AggregateCollectionChangeRecord(ObjectChangeSet owner)
This constructor returns an ChangeRecord representing an AggregateMapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ObjectChangeSet>
getChangedValues()
ADVANCED: Return the values representing the changed AggregateCollection.void
mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL: This method will be used to merge one record into anothervoid
setChangedValues(List<ObjectChangeSet> newValues)
INTERNAL: Set the changed values.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.CollectionChangeRecord
addAdditionChange, addOrderedAdditionChange, addOrderedRemoveChange, addRemoveChange, clearChanges, getAddObjectList, getAddOverFlow, getCurrentIndexesOfOriginalObjects, getOrderedAddObjectIndex, getOrderedAddObjectIndices, getOrderedAddObjects, getOrderedChangeObjectList, getOrderedRemoveObject, getOrderedRemoveObjectIndices, getOrderedRemoveObjects, getRemoveObjectList, hasChanges, internalRecreateOriginalCollection, orderHasBeenRepaired, setAddObjectList, setOrderedAddObjectIndices, setOrderedAddObjects, setOrderedChangeObjectList, setOrderedRemoveObjects, setOrderHasBeenRepaired, setRemoveObjectList
-
Methods inherited from class org.eclipse.persistence.internal.sessions.DeferrableChangeRecord
getLatestCollection, getOldValue, getOldValue, getOriginalCollection, isDeferred, recreateOriginalCollection, setIsDeferred, setLatestCollection, setOriginalCollection
-
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, getOldValue, getOwner
-
-
-
-
Field Detail
-
changedValues
protected List<ObjectChangeSet> changedValues
-
-
Constructor Detail
-
AggregateCollectionChangeRecord
public AggregateCollectionChangeRecord()
This default constructor.
-
AggregateCollectionChangeRecord
public AggregateCollectionChangeRecord(ObjectChangeSet owner)
This constructor returns an ChangeRecord representing an AggregateMapping.- Parameters:
owner
- org.eclipse.persistence.internal.sessions.ObjectChangeSet represents the Object Change Set that uses this record
-
-
Method Detail
-
getChangedValues
public List<ObjectChangeSet> getChangedValues()
ADVANCED: Return the values representing the changed AggregateCollection.- Specified by:
getChangedValues
in interfaceAggregateCollectionChangeRecord
- Returns:
- java.util.Vector
-
mergeRecord
public void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL: This method will be used to merge one record into another- Overrides:
mergeRecord
in classCollectionChangeRecord
-
setChangedValues
public void setChangedValues(List<ObjectChangeSet> newValues)
INTERNAL: Set the changed 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.- Overrides:
updateReferences
in classCollectionChangeRecord
-
-