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

public Class ObjectReferenceChangeRecord

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

Purpose: To record the changes for an attribute that references a single Object

Field Summary

Modifier and TypeField and Description
protected ObjectChangeSet
newValue

This is the object change set that the attribute points to.

protected transient Object
oldValue

A reference to the old value must also be stored.

Inherited from org.eclipse.persistence.internal.sessions.ChangeRecord:
attributemappingowner

Constructor Summary

AccessConstructor and Description
public
ObjectReferenceChangeRecord()

INTERNAL: This default constructor.

public
ObjectReferenceChangeRecord(ObjectChangeSet owner)

INTERNAL: This Constructor is used to create an ObjectReferenceChangeRecord With an owner

Method Summary

Modifier and TypeMethod and Description
public ObjectChangeSet
getNewValue()

Implements org.eclipse.persistence.sessions.changesets.ObjectReferenceChangeRecord.getNewValue.

ADVANCED: Returns the new reference for this object
public Object
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
setNewValue(ObjectChangeSet
ObjectChangeSet
newValue
)

This method sets the value of the change to be made.

public void
setNewValue(ObjectChangeSet newValue)

This method sets the value of the change to be made.

public void
setOldValue(Object oldValue)

Set the old value of the object reference.

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

Field Detail

newValueback to summary
protected ObjectChangeSet newValue

This is the object change set that the attribute points to.

oldValueback to summary
protected transient Object oldValue

A reference to the old value must also be stored. This is only required for the commit and must never be serialized.

Constructor Detail

ObjectReferenceChangeRecordback to summary
public ObjectReferenceChangeRecord()

INTERNAL: This default constructor.

ObjectReferenceChangeRecordback to summary
public ObjectReferenceChangeRecord(ObjectChangeSet owner)

INTERNAL: This Constructor is used to create an ObjectReferenceChangeRecord With an owner

Method Detail

getNewValueback to summary
public ObjectChangeSet getNewValue()

Implements org.eclipse.persistence.sessions.changesets.ObjectReferenceChangeRecord.getNewValue.

ADVANCED: Returns the new reference for this object

Returns:ObjectChangeSet

Doc from org.eclipse.persistence.sessions.changesets.ObjectReferenceChangeRecord.getNewValue.

org.eclipse.persistence.sessions.changesets.ObjectChangeSet

Annotations
@Override
getOldValueback to summary
public Object getOldValue()

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

Return the old value of the object reference. This is used during the commit for private-owned references.

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
setNewValueback to summary
public void setNewValue(ObjectChangeSet newValue)

This method sets the value of the change to be made.

Parameters
newValue:ObjectChangeSet

ObjectChangeSet

setNewValueback to summary
public void setNewValue(ObjectChangeSet newValue)

This method sets the value of the change to be made.

setOldValueback to summary
public void setOldValue(Object oldValue)

Set the old value of the object reference. This is used during the commit for private-owned references.

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

Annotations
@Override