Module org.eclipse.persistence.core
Class TransformationMappingChangeRecord
java.lang.Object
org.eclipse.persistence.internal.sessions.ChangeRecord
org.eclipse.persistence.internal.sessions.TransformationMappingChangeRecord
- All Implemented Interfaces:
Serializable
,ChangeRecord
,TransformationMappingChangeRecord
public class TransformationMappingChangeRecord
extends ChangeRecord
implements TransformationMappingChangeRecord
Purpose: To record the changes for attributes that can be represented as Transformation Mapping
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
attribute, mapping, owner
-
Constructor Summary
ConstructorDescriptionThis default constructor.This is the basic constructor for this change Record. -
Method Summary
Modifier and TypeMethodDescriptionADVANCED: Return the old value of the attribute represented by this ChangeRecord.ADVANCED: This method is used to access the changes of the fields in a transformation mapping.void
mergeRecord
(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet) INTERNAL: This method will be used to merge one record into anothervoid
setOldValue
(Object oldValue) INTERNAL: Set the old value of the attribute represented by this ChangeRecord.void
setRow
(AbstractRecord record) This method is used to add a changed value to the changeRecord.void
updateReferences
(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet) INTERNAL: This method will be used to update the objectsChangeSets references There is nothing to do for this mapping type as there are no object referencesMethods inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
getAttribute, getMapping, getOwner, prepareForSynchronization, setAttribute, setMapping, setOwner, toString, updateChangeRecordWithNewValue
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
-
rowCollection
-
oldValue
-
-
Constructor Details
-
TransformationMappingChangeRecord
public TransformationMappingChangeRecord()This default constructor. -
TransformationMappingChangeRecord
This is the basic constructor for this change Record. This change record stores the fields that have changed as that is our current method of comparing changes.
-
-
Method Details
-
getRecord
ADVANCED: This method is used to access the changes of the fields in a transformation mapping.- Specified by:
getRecord
in interfaceTransformationMappingChangeRecord
- Returns:
- org.eclipse.persistence.sessions.Record
-
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
-
setRow
This method is used to add a changed value to the changeRecord. The changes in a transformation mapping are recorded on the database field level- Parameters:
record
- Record the values from the transformation mapping
-
updateReferences
public void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet) INTERNAL: This method will be used to update the objectsChangeSets references There is nothing to do for this mapping type as there are no object references- Specified by:
updateReferences
in classChangeRecord
-
getOldValue
ADVANCED: Return the old value of the attribute represented by this ChangeRecord.- Specified by:
getOldValue
in interfaceChangeRecord
-
setOldValue
INTERNAL: Set the old value of the attribute represented by this ChangeRecord.
-