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
Fields inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
attribute, mapping, owner
-
Constructor Summary
ConstructorDescriptionThis 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.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 referencesMethods 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
-
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:
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
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:
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
ADVANCED: Return the old value of the attribute represented by this ChangeRecord.- Specified by:
getOldValue
in interfaceChangeRecord
- Specified by:
getOldValue
in interfaceDirectToFieldChangeRecord
-
setOldValue
INTERNAL: Set the old value of the attribute represented by this ChangeRecord.
-