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 Details

    • rowCollection

      protected AbstractRecord rowCollection
    • oldValue

      protected transient Object oldValue
  • Constructor Details

    • 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 Details

    • getRecord

      public DataRecord getRecord()
      ADVANCED: This method is used to access the changes of the fields in a transformation mapping.
      Specified by:
      getRecord in interface TransformationMappingChangeRecord
      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 class ChangeRecord
    • 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 class ChangeRecord
    • getOldValue

      public Object getOldValue()
      ADVANCED: Return the old value of the attribute represented by this ChangeRecord.
      Specified by:
      getOldValue in interface ChangeRecord
    • setOldValue

      public void setOldValue(Object oldValue)
      INTERNAL: Set the old value of the attribute represented by this ChangeRecord.