Purpose: This class was designed as a superclass to all possible Change Record types. These Change Records holds the changes made to the objects
| Modifier and Type | Field 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 |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: StringImplements org. |
| public DatabaseMapping | |
| public ObjectChangeSet | getOwner()
Implements org. |
| 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 | |
| public void | |
| 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 | |
| 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 |
| attribute | back to summary |
|---|---|
| protected String attribute This is the attribute name that this change record represents | |
| mapping | back 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 | |
| owner | back to summary |
|---|---|
| protected ObjectChangeSet owner This is the object change set that holds this record | |
| ChangeRecord | back to summary |
|---|---|
| public ChangeRecord() | |
| getAttribute | back to summary |
|---|---|
| public String getAttribute() Implements org. ADVANCED: Returns the name of the attribute this ChangeRecord Represents | |
| getMapping | back to summary |
|---|---|
| public DatabaseMapping getMapping() ADVANCED: Returns the mapping for the attribute this ChangeRecord Represents | |
| getOwner | back to summary |
|---|---|
| public ObjectChangeSet getOwner() Implements org. Doc from org. ADVANCED: This method returns the ObjectChangeSet that references this ChangeRecord
| |
| mergeRecord | back to summary |
|---|---|
| public abstract void mergeRecord(ChangeRecord mergeFromRecord, UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet) INTERNAL: This method will be used to merge one record into another | |
| prepareForSynchronization | back 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 | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String newValue) Sets the name of the attribute that this Record represents. | |
| setMapping | back to summary |
|---|---|
| public void setMapping(DatabaseMapping mapping) Sets the mapping for the attribute that this Record represents | |
| setOwner | back to summary |
|---|---|
| public void setOwner(ObjectChangeSet newOwner) INTERNAL: This method is used to set the ObjectChangeSet that uses this Record in that Record.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| updateChangeRecordWithNewValue | back to summary |
|---|---|
| public void updateChangeRecordWithNewValue(Object newValue) INTERNAL: used by the record to update the new value ignores the value in the default implementation | |
| updateReferences | back to summary |
|---|---|
| public abstract void updateReferences(UnitOfWorkChangeSet mergeToChangeSet, UnitOfWorkChangeSet mergeFromChangeSet) INTERNAL: This method will be used to update the objectsChangeSets references | |