public abstract class ChangeRecord extends java.lang.Object implements java.io.Serializable, ChangeRecord
Purpose: This class was designed as a superclass to all possible Change Record types. These Change Records holds the changes made to the objects
Constructor and Description |
---|
ChangeRecord() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute()
ADVANCED:
Returns the name of the attribute this ChangeRecord Represents
|
DatabaseMapping |
getMapping()
ADVANCED:
Returns the mapping for the attribute this ChangeRecord Represents
|
ObjectChangeSet |
getOwner()
ADVANCED:
This method returns the ObjectChangeSet that references this ChangeRecord
|
abstract void |
mergeRecord(ChangeRecord mergeFromRecord,
UnitOfWorkChangeSet mergeToChangeSet,
UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL:
This method will be used to merge one record into another
|
void |
prepareForSynchronization(AbstractSession session)
INTERNAL:
Ensure this change record is ready to by sent remotely for cache synchronization
In general, this means setting the CacheSynchronizationType on any ObjectChangeSets
associated with this ChangeRecord
|
void |
setAttribute(java.lang.String newValue)
Sets the name of the attribute that this Record represents.
|
void |
setMapping(DatabaseMapping mapping)
Sets the mapping for the attribute that this Record represents
|
void |
setOwner(ObjectChangeSet newOwner)
INTERNAL:
This method is used to set the ObjectChangeSet that uses this Record in that Record.
|
java.lang.String |
toString() |
void |
updateChangeRecordWithNewValue(java.lang.Object newValue)
INTERNAL:
used by the record to update the new value ignores the value in the default implementation
|
abstract void |
updateReferences(UnitOfWorkChangeSet mergeToChangeSet,
UnitOfWorkChangeSet mergeFromChangeSet)
INTERNAL:
This method will be used to update the objectsChangeSets references
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOldValue
public java.lang.String getAttribute()
getAttribute
in interface ChangeRecord
public DatabaseMapping getMapping()
public ObjectChangeSet getOwner()
ChangeRecord
getOwner
in interface ChangeRecord
public abstract void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
public void prepareForSynchronization(AbstractSession session)
public void setAttribute(java.lang.String newValue)
public void setMapping(DatabaseMapping mapping)
public void setOwner(ObjectChangeSet newOwner)
ObjectChangeSet
- The changeSet that uses this record.public java.lang.String toString()
toString
in class java.lang.Object
public void updateChangeRecordWithNewValue(java.lang.Object newValue)
public abstract void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference