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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
oldValue
protected AbstractRecord
rowCollection
-
Fields inherited from class org.eclipse.persistence.internal.sessions.ChangeRecord
attribute, mapping, owner
-
-
Constructor Summary
Constructors Constructor Description TransformationMappingChangeRecord()
This default constructor.TransformationMappingChangeRecord(ObjectChangeSet owner)
This is the basic constructor for this change Record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getOldValue()
ADVANCED: Return the old value of the attribute represented by this ChangeRecord.Record
getRecord()
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 references-
Methods 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 Detail
-
rowCollection
protected AbstractRecord rowCollection
-
oldValue
protected transient Object oldValue
-
-
Constructor Detail
-
TransformationMappingChangeRecord
public TransformationMappingChangeRecord()
This default constructor.
-
TransformationMappingChangeRecord
public TransformationMappingChangeRecord(ObjectChangeSet owner)
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 Detail
-
getRecord
public Record 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
public void setRow(AbstractRecord record)
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
public Object getOldValue()
ADVANCED: Return the old value of the attribute represented by this ChangeRecord.- Specified by:
getOldValue
in interfaceChangeRecord
-
setOldValue
public void setOldValue(Object oldValue)
INTERNAL: Set the old value of the attribute represented by this ChangeRecord.
-
-