Top Description Fields Constructors Methods
org.eclipse.persistence.internal.sessions

public Class AggregateCollectionChangeRecord

extends CollectionChangeRecord
implements AggregateCollectionChangeRecord
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.sessions.changesets.AggregateCollectionChangeRecord, org.eclipse.persistence.sessions.changesets.ChangeRecord
Imports
java.util.ArrayList, .List, org.eclipse.persistence.descriptors.ClassDescriptor, org.eclipse.persistence.mappings.AggregateCollectionMapping

This change record records the changes for AggregateCollectionMapping.

Field Summary

Modifier and TypeField and Description
protected List<ObjectChangeSet>
Inherited from org.eclipse.persistence.internal.sessions.CollectionChangeRecord:
addObjectListaddOverFloworderedAddObjectIndicesorderedAddObjectsorderedChangeObjectListorderedRemoveObjectIndicesorderedRemoveObjectsorderHasBeenRepairedremoveObjectList

Constructor Summary

AccessConstructor and Description
public
AggregateCollectionChangeRecord()

This default constructor.

public
AggregateCollectionChangeRecord(ObjectChangeSet
org.eclipse.persistence.internal.sessions.ObjectChangeSet represents the Object Change Set that uses this record
owner
)

This constructor returns an ChangeRecord representing an AggregateMapping.

Method Summary

Modifier and TypeMethod and Description
public List<ObjectChangeSet>
getChangedValues()

Implements org.eclipse.persistence.sessions.changesets.AggregateCollectionChangeRecord.getChangedValues.

ADVANCED: Return the values representing the changed AggregateCollection.
pack-priv ClassDescriptor
public void
mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Overrides org.eclipse.persistence.internal.sessions.CollectionChangeRecord.mergeRecord.

INTERNAL: This method will be used to merge one record into another
public void
setChangedValues(List<ObjectChangeSet> newValues)

INTERNAL: Set the changed values.

public void
updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Overrides org.eclipse.persistence.internal.sessions.CollectionChangeRecord.updateReferences.

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.
Inherited from org.eclipse.persistence.internal.sessions.CollectionChangeRecord:
addAdditionChangeaddOrderedAdditionChangeaddOrderedRemoveChangeaddRemoveChangeclearChangesgetAddObjectListgetAddOverFlowgetCurrentIndexesOfOriginalObjectsgetOrderedAddObjectIndexgetOrderedAddObjectIndicesgetOrderedAddObjectsgetOrderedChangeObjectListgetOrderedRemoveObjectgetOrderedRemoveObjectIndicesgetOrderedRemoveObjectsgetRemoveObjectListhasChangesinternalRecreateOriginalCollectionorderHasBeenRepairedsetAddObjectListsetOrderedAddObjectIndicessetOrderedAddObjectssetOrderedChangeObjectListsetOrderedRemoveObjectssetOrderHasBeenRepairedsetRemoveObjectList

Field Detail

changedValuesback to summary
protected List<ObjectChangeSet> changedValues

Constructor Detail

AggregateCollectionChangeRecordback to summary
public AggregateCollectionChangeRecord()

This default constructor.

AggregateCollectionChangeRecordback to summary
public AggregateCollectionChangeRecord(ObjectChangeSet owner)

This constructor returns an ChangeRecord representing an AggregateMapping.

Parameters
owner:ObjectChangeSet

org.eclipse.persistence.internal.sessions.ObjectChangeSet represents the Object Change Set that uses this record

Method Detail

getChangedValuesback to summary
public List<ObjectChangeSet> getChangedValues()

Implements org.eclipse.persistence.sessions.changesets.AggregateCollectionChangeRecord.getChangedValues.

ADVANCED: Return the values representing the changed AggregateCollection.

Returns:List<ObjectChangeSet>

Doc from org.eclipse.persistence.sessions.changesets.AggregateCollectionChangeRecord.getChangedValues.

java.util.Vector

Annotations
@Override
getReferenceDescriptorback to summary
pack-priv ClassDescriptor getReferenceDescriptor(Object object, AbstractSession session)

Overrides org.eclipse.persistence.internal.sessions.CollectionChangeRecord.getReferenceDescriptor.

Returns descriptor corresponding to the object.

Annotations
@Override
mergeRecordback to summary
public void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Overrides org.eclipse.persistence.internal.sessions.CollectionChangeRecord.mergeRecord.

INTERNAL: This method will be used to merge one record into another

Annotations
@Override
setChangedValuesback to summary
public void setChangedValues(List<ObjectChangeSet> newValues)

INTERNAL: Set the changed values.

updateReferencesback to summary
public void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Overrides org.eclipse.persistence.internal.sessions.CollectionChangeRecord.updateReferences.

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.

Annotations
@Override