Class DirectToFieldChangeRecord
- java.lang.Object
-
- org.eclipse.persistence.internal.sessions.ChangeRecord
-
- org.eclipse.persistence.internal.sessions.DirectToFieldChangeRecord
-
- All Implemented Interfaces:
Serializable
,ChangeRecord
,DirectToFieldChangeRecord
public class DirectToFieldChangeRecord extends ChangeRecord implements DirectToFieldChangeRecord
Purpose: To record the changes for attributes that can be represented as DirectToField
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DirectToFieldChangeRecord()
This default constructor.DirectToFieldChangeRecord(ObjectChangeSet owner)
This constructor returns a changeRecord representing the DirectToField mapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getNewValue()
ADVANCED: Returns the new value assigned during the change.Object
getOldValue()
ADVANCED: Return the old value of the attribute represented by this ChangeRecord.void
mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL: This method will be used to merge one record into another.void
setNewValue(Object newValue)
ADVANCED: Sets the new value assigned during the change.void
setOldValue(Object oldValue)
INTERNAL: Set the old value of the attribute represented by this ChangeRecord.void
updateChangeRecordWithNewValue(Object newValue)
INTERNAL: used by the record to update the new value ignores the value in the default implementationvoid
updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL: This method will be used to update the objectsChangeSets references-
Methods inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
getAttribute, getMapping, getOwner, prepareForSynchronization, setAttribute, setMapping, setOwner, toString
-
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, getOwner
-
-
-
-
Constructor Detail
-
DirectToFieldChangeRecord
public DirectToFieldChangeRecord()
This default constructor.
-
DirectToFieldChangeRecord
public DirectToFieldChangeRecord(ObjectChangeSet owner)
This constructor returns a changeRecord representing the DirectToField mapping.
-
-
Method Detail
-
getNewValue
public Object getNewValue()
ADVANCED: Returns the new value assigned during the change.- Specified by:
getNewValue
in interfaceDirectToFieldChangeRecord
- Returns:
- java.lang.Object
-
mergeRecord
public void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL: This method will be used to merge one record into another.- Specified by:
mergeRecord
in classChangeRecord
-
setNewValue
public void setNewValue(Object newValue)
ADVANCED: Sets the new value assigned during the change.
-
updateChangeRecordWithNewValue
public void updateChangeRecordWithNewValue(Object newValue)
INTERNAL: used by the record to update the new value ignores the value in the default implementation- Overrides:
updateChangeRecordWithNewValue
in classChangeRecord
-
updateReferences
public void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL: This method will be used to update the objectsChangeSets references- Specified by:
updateReferences
in classChangeRecord
-
getOldValue
public Object getOldValue()
ADVANCED: Return the old value of the attribute represented by this ChangeRecord.- Specified by:
getOldValue
in interfaceChangeRecord
- Specified by:
getOldValue
in interfaceDirectToFieldChangeRecord
-
setOldValue
public void setOldValue(Object oldValue)
INTERNAL: Set the old value of the attribute represented by this ChangeRecord.
-
-