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
Purpose: To record the changes for attributes that can be represented as DirectToField
- See Also:
-
Field Summary
FieldsFields inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
attribute, mapping, owner -
Constructor Summary
ConstructorsConstructorDescriptionThis default constructor.This constructor returns a changeRecord representing the DirectToField mapping. -
Method Summary
Modifier and TypeMethodDescriptionADVANCED: Returns the new value assigned during the change.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 referencesMethods inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
getAttribute, getMapping, getOwner, prepareForSynchronization, setAttribute, setMapping, setOwner, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.persistence.sessions.changesets.ChangeRecord
getAttribute, getOwner
-
Field Details
-
newValue
-
oldValue
-
-
Constructor Details
-
DirectToFieldChangeRecord
public DirectToFieldChangeRecord()This default constructor. -
DirectToFieldChangeRecord
This constructor returns a changeRecord representing the DirectToField mapping.
-
-
Method Details
-
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
ADVANCED: Sets the new value assigned during the change. -
updateChangeRecordWithNewValue
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
ADVANCED: Return the old value of the attribute represented by this ChangeRecord.- Specified by:
getOldValuein interfaceChangeRecord- Specified by:
getOldValuein interfaceDirectToFieldChangeRecord
-
setOldValue
INTERNAL: Set the old value of the attribute represented by this ChangeRecord.
-