public class DirectToFieldChangeRecord extends ChangeRecord implements DirectToFieldChangeRecord
Purpose: To record the changes for attributes that can be represented as DirectToField
Constructor and Description |
---|
DirectToFieldChangeRecord()
This default constructor.
|
DirectToFieldChangeRecord(ObjectChangeSet owner)
This constructor returns a changeRecord representing the DirectToField mapping.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getNewValue()
ADVANCED:
Returns the new value assigned during the change.
|
java.lang.Object |
getOldValue()
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(java.lang.Object newValue)
ADVANCED:
Sets the new value assigned during the change.
|
void |
setOldValue(java.lang.Object oldValue)
INTERNAL:
Set the old value of the attribute represented by this ChangeRecord.
|
void |
updateChangeRecordWithNewValue(java.lang.Object newValue)
INTERNAL:
used by the record to update the new value ignores the value in the default implementation
|
void |
updateReferences(UnitOfWorkChangeSet mergeToChangeSet,
UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL:
This method will be used to update the objectsChangeSets references
|
getAttribute, getMapping, getOwner, prepareForSynchronization, setAttribute, setMapping, setOwner, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getOwner
public DirectToFieldChangeRecord()
public DirectToFieldChangeRecord(ObjectChangeSet owner)
public java.lang.Object getNewValue()
getNewValue
in interface DirectToFieldChangeRecord
public void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
mergeRecord
in class ChangeRecord
public void setNewValue(java.lang.Object newValue)
public void updateChangeRecordWithNewValue(java.lang.Object newValue)
updateChangeRecordWithNewValue
in class ChangeRecord
public void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
updateReferences
in class ChangeRecord
public java.lang.Object getOldValue()
getOldValue
in interface ChangeRecord
getOldValue
in interface DirectToFieldChangeRecord
public void setOldValue(java.lang.Object oldValue)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference