Module org.eclipse.persistence.core
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 ObjectgetNewValue()ADVANCED: Returns the new value assigned during the change.ObjectgetOldValue()ADVANCED: Return the old value of the attribute represented by this ChangeRecord.voidmergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)INTERNAL: This method will be used to merge one record into another.voidsetNewValue(Object newValue)ADVANCED: Sets the new value assigned during the change.voidsetOldValue(Object oldValue)INTERNAL: Set the old value of the attribute represented by this ChangeRecord.voidupdateChangeRecordWithNewValue(Object newValue)INTERNAL: used by the record to update the new value ignores the value in the default implementationvoidupdateReferences(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:
getNewValuein 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:
mergeRecordin 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:
updateChangeRecordWithNewValuein classChangeRecord
-
updateReferences
public void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL: This method will be used to update the objectsChangeSets references- Specified by:
updateReferencesin classChangeRecord
-
getOldValue
public Object getOldValue()
ADVANCED: Return the old value of the attribute represented by this ChangeRecord.- Specified by:
getOldValuein interfaceChangeRecord- Specified by:
getOldValuein interfaceDirectToFieldChangeRecord
-
setOldValue
public void setOldValue(Object oldValue)
INTERNAL: Set the old value of the attribute represented by this ChangeRecord.
-
-