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

public Class DirectToFieldChangeRecord

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

Purpose: To record the changes for attributes that can be represented as DirectToField

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
DirectToFieldChangeRecord()

This default constructor.

public
DirectToFieldChangeRecord(ObjectChangeSet owner)

This constructor returns a changeRecord representing the DirectToField mapping.

Method Summary

Modifier and TypeMethod and Description
public Object
getNewValue()

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

ADVANCED: Returns the new value assigned during the change.
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(Object newValue)

ADVANCED: Sets the new value assigned during the change.

public void
setOldValue(Object oldValue)

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

public void
updateChangeRecordWithNewValue(Object newValue)

Overrides org.eclipse.persistence.internal.sessions.ChangeRecord.updateChangeRecordWithNewValue.

INTERNAL: used by the record to update the new value ignores the value in the default implementation
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:
getAttributegetMappinggetOwnerprepareForSynchronizationsetAttributesetMappingsetOwnertoString

Field Detail

newValueback to summary
protected Object newValue
oldValueback to summary
protected transient Object oldValue

Constructor Detail

DirectToFieldChangeRecordback to summary
public DirectToFieldChangeRecord()

This default constructor.

DirectToFieldChangeRecordback to summary
public DirectToFieldChangeRecord(ObjectChangeSet owner)

This constructor returns a changeRecord representing the DirectToField mapping.

Method Detail

getNewValueback to summary
public Object getNewValue()

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

ADVANCED: Returns the new value assigned during the change.

Returns:Object

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

java.lang.Object

Annotations
@Override
getOldValueback to summary
public Object getOldValue()

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

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

ADVANCED: Sets the new value assigned during the change.

setOldValueback to summary
public void setOldValue(Object oldValue)

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

updateChangeRecordWithNewValueback to summary
public void updateChangeRecordWithNewValue(Object newValue)

Overrides org.eclipse.persistence.internal.sessions.ChangeRecord.updateChangeRecordWithNewValue.

INTERNAL: used by the record to update the new value ignores the value in the default implementation

Annotations
@Override
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