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

public Class AggregateChangeRecord

extends ChangeRecord
implements AggregateChangeRecord
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.sessions.changesets.AggregateChangeRecord, org.eclipse.persistence.sessions.changesets.ChangeRecord

This change Record is used to record the changes for AggregateObjectMapping.

Field Summary

Modifier and TypeField and Description
protected ObjectChangeSet
protected static final String
protected transient Object
Inherited from org.eclipse.persistence.internal.sessions.ChangeRecord:
attributemappingowner

Constructor Summary

AccessConstructor and Description
public
AggregateChangeRecord()

This default constructor.

public
AggregateChangeRecord(ObjectChangeSet owner)

This constructor returns an ChangeRecord representing an AggregateMapping.

Method Summary

Modifier and TypeMethod and Description
public ObjectChangeSet
getChangedObject()

Implements org.eclipse.persistence.sessions.changesets.AggregateChangeRecord.getChangedObject.

ADVANCED: This method is used to return the ObjectChangeSet representing the changed Aggregate.
public Object
getOldValue()

Implements org.eclipse.persistence.sessions.changesets.AggregateChangeRecord.getOldValue, org.eclipse.persistence.sessions.changesets.ChangeRecord.getOldValue.

ADVANCED: If the owning UnitOfWork has shouldChangeRecordKeepOldValue set to true, then return the old value of the attribute represented by this ChangeRecord.
public void
mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.mergeRecord.

INTERNAL: This method will be used to merge one record into another
public void
setChangedObject(ObjectChangeSet newValue)

INTERNAL: This method is used to set the changed value or values.

public void
setOldValue(Object oldValue)

INTERNAL: Set the old value of the attribute represented by this ChangeRecord.

public void
updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.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.ChangeRecord:
getAttributegetMappinggetOwnerprepareForSynchronizationsetAttributesetMappingsetOwnertoStringupdateChangeRecordWithNewValue

Field Detail

changedObjectback to summary
protected ObjectChangeSet changedObject
NULLback to summary
protected static final String NULL
oldValueback to summary
protected transient Object oldValue

Constructor Detail

AggregateChangeRecordback to summary
public AggregateChangeRecord()

This default constructor.

AggregateChangeRecordback to summary
public AggregateChangeRecord(ObjectChangeSet owner)

This constructor returns an ChangeRecord representing an AggregateMapping.

Method Detail

getChangedObjectback to summary
public ObjectChangeSet getChangedObject()

Implements org.eclipse.persistence.sessions.changesets.AggregateChangeRecord.getChangedObject.

ADVANCED: This method is used to return the ObjectChangeSet representing the changed Aggregate.

Annotations
@Override
getOldValueback to summary
public Object getOldValue()

Implements org.eclipse.persistence.sessions.changesets.AggregateChangeRecord.getOldValue, org.eclipse.persistence.sessions.changesets.ChangeRecord.getOldValue.

ADVANCED: If the owning UnitOfWork has shouldChangeRecordKeepOldValue set to true, then return the old value of the attribute represented by this ChangeRecord.

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

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.mergeRecord.

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

Annotations
@Override
setChangedObjectback to summary
public void setChangedObject(ObjectChangeSet newValue)

INTERNAL: This method is used to set the changed value or values.

setOldValueback to summary
public void setOldValue(Object oldValue)

INTERNAL: Set the old value of the attribute represented by this ChangeRecord.

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

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.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