Top Description Fields Constructors Methods
org.eclipse.persistence.internal.sessions

public Class TransformationMappingChangeRecord

extends ChangeRecord
implements TransformationMappingChangeRecord
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.sessions.changesets.TransformationMappingChangeRecord, org.eclipse.persistence.sessions.changesets.ChangeRecord
Imports
org.eclipse.persistence.sessions.DataRecord, .DatabaseRecord

Purpose: To record the changes for attributes that can be represented as Transformation Mapping

Field Summary

Modifier and TypeField and Description
protected transient Object
protected AbstractRecord
Inherited from org.eclipse.persistence.internal.sessions.ChangeRecord:
attributemappingowner

Constructor Summary

AccessConstructor and Description
public
TransformationMappingChangeRecord()

This default constructor.

public
TransformationMappingChangeRecord(ObjectChangeSet owner)

This is the basic constructor for this change Record.

Method Summary

Modifier and TypeMethod and Description
public Object
getOldValue()

Implements org.eclipse.persistence.sessions.changesets.ChangeRecord.getOldValue.

ADVANCED: Return the old value of the attribute represented by this ChangeRecord.
public DataRecord
getRecord()

Implements org.eclipse.persistence.sessions.changesets.TransformationMappingChangeRecord.getRecord.

ADVANCED: This method is used to access the changes of the fields in a transformation mapping.
public void
mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.mergeRecord.

INTERNAL: This method will be used to merge one record into another
public void
setOldValue(Object oldValue)

INTERNAL: Set the old value of the attribute represented by this ChangeRecord.

public void
setRow(AbstractRecord
Record the values from the transformation mapping
record
)

This method is used to add a changed value to the changeRecord.

public void
updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.updateReferences.

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
Inherited from org.eclipse.persistence.internal.sessions.ChangeRecord:
getAttributegetMappinggetOwnerprepareForSynchronizationsetAttributesetMappingsetOwnertoStringupdateChangeRecordWithNewValue

Field Detail

oldValueback to summary
protected transient Object oldValue
rowCollectionback to summary
protected AbstractRecord rowCollection

Constructor Detail

TransformationMappingChangeRecordback to summary
public TransformationMappingChangeRecord()

This default constructor.

TransformationMappingChangeRecordback to summary
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

getOldValueback to summary
public Object getOldValue()

Implements org.eclipse.persistence.sessions.changesets.ChangeRecord.getOldValue.

ADVANCED: Return the old value of the attribute represented by this ChangeRecord.

Annotations
@Override
getRecordback to summary
public DataRecord getRecord()

Implements org.eclipse.persistence.sessions.changesets.TransformationMappingChangeRecord.getRecord.

ADVANCED: This method is used to access the changes of the fields in a transformation mapping.

Returns:DataRecord

Doc from org.eclipse.persistence.sessions.changesets.TransformationMappingChangeRecord.getRecord.

org.eclipse.persistence.sessions.Record

Annotations
@Override
mergeRecordback to summary
public void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.mergeRecord.

INTERNAL: This method will be used to merge one record into another

Annotations
@Override
setOldValueback to summary
public void setOldValue(Object oldValue)

INTERNAL: Set the old value of the attribute represented by this ChangeRecord.

setRowback to summary
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:AbstractRecord

Record the values from the transformation mapping

updateReferencesback to summary
public void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

Implements abstract org.eclipse.persistence.internal.sessions.ChangeRecord.updateReferences.

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

Annotations
@Override