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

public abstract Class ChangeRecord

extends Object
implements Serializable, ChangeRecord
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.sessions.changesets.ChangeRecord, java.io.Serializable
Known Direct Subclasses
org.eclipse.persistence.internal.sessions.DirectToFieldChangeRecord, org.eclipse.persistence.internal.sessions.ObjectReferenceChangeRecord, org.eclipse.persistence.internal.sessions.TransformationMappingChangeRecord, org.eclipse.persistence.internal.sessions.DeferrableChangeRecord, org.eclipse.persistence.internal.sessions.AggregateChangeRecord
Imports
java.io.Serializable, org.eclipse.persistence.mappings.DatabaseMapping

Purpose: This class was designed as a superclass to all possible Change Record types. These Change Records holds the changes made to the objects

Field Summary

Modifier and TypeField and Description
protected String
attribute

This is the attribute name that this change record represents

protected transient DatabaseMapping
mapping

This attribute stores the mapping along with the attribute so that the mapping does not need to be looked up

protected ObjectChangeSet
owner

This is the object change set that holds this record

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

String
getAttribute
()

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

ADVANCED: Returns the name of the attribute this ChangeRecord Represents
public DatabaseMapping
getMapping()

ADVANCED: Returns the mapping for the attribute this ChangeRecord Represents

public ObjectChangeSet
getOwner()

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

ADVANCED: This method returns the ObjectChangeSet that references this ChangeRecord
public abstract void
mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

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

public 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

public void
setAttribute(String newValue)

Sets the name of the attribute that this Record represents.

public void
setMapping(DatabaseMapping mapping)

Sets the mapping for the attribute that this Record represents

public void
setOwner(ObjectChangeSet
The changeSet that uses this record.
newOwner
)

INTERNAL: This method is used to set the ObjectChangeSet that uses this Record in that Record.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public void
updateChangeRecordWithNewValue(Object newValue)

INTERNAL: used by the record to update the new value ignores the value in the default implementation

public abstract void
updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet)

INTERNAL: This method will be used to update the objectsChangeSets references

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

attributeback to summary
protected String attribute

This is the attribute name that this change record represents

mappingback to summary
protected transient DatabaseMapping mapping

This attribute stores the mapping along with the attribute so that the mapping does not need to be looked up

ownerback to summary
protected ObjectChangeSet owner

This is the object change set that holds this record

Constructor Detail

ChangeRecordback to summary
public ChangeRecord()

Method Detail

getAttributeback to summary
public String getAttribute()

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

ADVANCED: Returns the name of the attribute this ChangeRecord Represents

Returns:String

String

Annotations
@Override
getMappingback to summary
public DatabaseMapping getMapping()

ADVANCED: Returns the mapping for the attribute this ChangeRecord Represents

getOwnerback to summary
public ObjectChangeSet getOwner()

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

Doc from org.eclipse.persistence.sessions.changesets.ChangeRecord.getOwner.

ADVANCED: This method returns the ObjectChangeSet that references this ChangeRecord

Returns:ObjectChangeSet

org.eclipse.persistence.sessions.changesets.ObjectChangeSet

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

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

prepareForSynchronizationback to summary
public 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

setAttributeback to summary
public void setAttribute(String newValue)

Sets the name of the attribute that this Record represents.

setMappingback to summary
public void setMapping(DatabaseMapping mapping)

Sets the mapping for the attribute that this Record represents

setOwnerback to summary
public void setOwner(ObjectChangeSet newOwner)

INTERNAL: This method is used to set the ObjectChangeSet that uses this Record in that Record.

Parameters
newOwner:ObjectChangeSet

The changeSet that uses this record.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
updateChangeRecordWithNewValueback to summary
public void updateChangeRecordWithNewValue(Object newValue)

INTERNAL: used by the record to update the new value ignores the value in the default implementation

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

INTERNAL: This method will be used to update the objectsChangeSets references