Module org.eclipse.persistence.core
Class ChangeRecord
java.lang.Object
org.eclipse.persistence.internal.sessions.ChangeRecord
- All Implemented Interfaces:
Serializable
,ChangeRecord
- Direct Known Subclasses:
AggregateChangeRecord
,DeferrableChangeRecord
,DirectToFieldChangeRecord
,ObjectReferenceChangeRecord
,TransformationMappingChangeRecord
Purpose: This class was designed as a superclass to all possible Change Record types. These Change Records holds the changes made to the objects
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
This is the attribute name that this change record representsprotected DatabaseMapping
This attribute stores the mapping along with the attribute so that the mapping does not need to be looked upprotected ObjectChangeSet
This is the object change set that holds this record -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionADVANCED: Returns the name of the attribute this ChangeRecord RepresentsADVANCED: Returns the mapping for the attribute this ChangeRecord RepresentsgetOwner()
ADVANCED: This method returns the ObjectChangeSet that references this ChangeRecordabstract void
mergeRecord
(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet) INTERNAL: This method will be used to merge one record into anothervoid
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 ChangeRecordvoid
setAttribute
(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 representsvoid
setOwner
(ObjectChangeSet newOwner) INTERNAL: This method is used to set the ObjectChangeSet that uses this Record in that Record.toString()
void
updateChangeRecordWithNewValue
(Object newValue) INTERNAL: used by the record to update the new value ignores the value in the default implementationabstract void
updateReferences
(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet) INTERNAL: This method will be used to update the objectsChangeSets referencesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.sessions.changesets.ChangeRecord
getOldValue
-
Field Details
-
attribute
This is the attribute name that this change record represents -
mapping
This attribute stores the mapping along with the attribute so that the mapping does not need to be looked up -
owner
This is the object change set that holds this record
-
-
Constructor Details
-
ChangeRecord
public ChangeRecord()
-
-
Method Details
-
getAttribute
ADVANCED: Returns the name of the attribute this ChangeRecord Represents- Specified by:
getAttribute
in interfaceChangeRecord
- Returns:
- String
-
getMapping
ADVANCED: Returns the mapping for the attribute this ChangeRecord Represents -
getOwner
Description copied from interface:ChangeRecord
ADVANCED: This method returns the ObjectChangeSet that references this ChangeRecord- Specified by:
getOwner
in interfaceChangeRecord
- Returns:
- org.eclipse.persistence.sessions.changesets.ObjectChangeSet
-
mergeRecord
public abstract void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet) INTERNAL: This method will be used to merge one record into another -
prepareForSynchronization
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 -
setAttribute
Sets the name of the attribute that this Record represents. -
setMapping
Sets the mapping for the attribute that this Record represents -
setOwner
INTERNAL: This method is used to set the ObjectChangeSet that uses this Record in that Record.- Parameters:
newOwner
- The changeSet that uses this record.
-
toString
-
updateChangeRecordWithNewValue
INTERNAL: used by the record to update the new value ignores the value in the default implementation -
updateReferences
public abstract void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet) INTERNAL: This method will be used to update the objectsChangeSets references
-