public class AggregateChangeRecord extends ChangeRecord implements AggregateChangeRecord
Constructor and Description |
---|
AggregateChangeRecord()
This default constructor.
|
AggregateChangeRecord(ObjectChangeSet owner)
This constructor returns an ChangeRecord representing an AggregateMapping.
|
Modifier and Type | Method and Description |
---|---|
ObjectChangeSet |
getChangedObject()
ADVANCED:
This method is used to return the ObjectChangeSet representing the changed Aggregate.
|
java.lang.Object |
getOldValue()
ADVANCED:
If the owning UnitOfWork has shouldChangeRecordKeepOldValue set to true,
then 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 |
setChangedObject(ObjectChangeSet newValue)
INTERNAL:
This method is used to set the changed value or values.
|
void |
setOldValue(java.lang.Object oldValue)
INTERNAL:
Set the old value of the attribute represented by this ChangeRecord.
|
void |
updateReferences(UnitOfWorkChangeSet mergeToChangeSet,
UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL:
This method will be used to update the objectsChangeSets references
If this is an aggregate change set then there is no need to update the
reference as the ChangeSet has no identity outside of this record
Check to see if it exists here already to prevent us from creating a little
extra garbage.
|
getAttribute, getMapping, getOwner, prepareForSynchronization, setAttribute, setMapping, setOwner, toString, updateChangeRecordWithNewValue
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getOwner
public AggregateChangeRecord()
public AggregateChangeRecord(ObjectChangeSet owner)
public ObjectChangeSet getChangedObject()
getChangedObject
in interface AggregateChangeRecord
public void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
mergeRecord
in class ChangeRecord
public void setChangedObject(ObjectChangeSet newValue)
public void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
updateReferences
in class ChangeRecord
public java.lang.Object getOldValue()
getOldValue
in interface AggregateChangeRecord
getOldValue
in interface ChangeRecord
public void setOldValue(java.lang.Object oldValue)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference