public class ObjectChangeTrackingPolicy extends DeferredChangeDetectionPolicy
Constructor and Description |
---|
ObjectChangeTrackingPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
clearChanges(java.lang.Object clone,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
ClassDescriptor descriptor,
boolean forRefresh)
INTERNAL:
Clear the changes in the ObjectChangeListener
|
void |
dissableEventProcessing(java.lang.Object changeTracker)
INTERNAL:
This method is used to disable changetracking temporarily
|
void |
enableEventProcessing(java.lang.Object changeTracker)
INTERNAL:
This method is used to enable changetracking temporarily
|
void |
initialize(org.eclipse.persistence.internal.sessions.AbstractSession session,
ClassDescriptor descriptor)
INTERNAL:
initialize the Policy
|
boolean |
isDeferredChangeDetectionPolicy()
Used to track instances of the change policies without doing an instance of check
|
boolean |
isObjectChangeTrackingPolicy()
Used to track instances of the change policies without doing an instance of check
|
void |
raiseInternalPropertyChangeEvent(java.lang.Object source,
java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
INTERNAL:
This may cause a property change event to be raised to a listner in the case that a listener exists.
|
void |
setAggregateChangeListener(java.lang.Object parent,
java.lang.Object aggregate,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
ClassDescriptor descriptor,
java.lang.String mappingAttribute)
INTERNAL:
Assign ChangeListener to an aggregate object
|
java.beans.PropertyChangeListener |
setChangeListener(java.lang.Object clone,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
ClassDescriptor descriptor)
INTERNAL:
Assign ObjectChangeListener to PropertyChangeListener
|
boolean |
shouldCompareExistingObjectForChange(java.lang.Object object,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork,
ClassDescriptor descriptor)
INTERNAL:
Return true if the Object should be compared, false otherwise.
|
buildBackupClone, calculateChanges, calculateChangesForExistingObject, calculateChangesForNewObject, createObjectChangeSet, createObjectChangeSetThroughComparison, isAttributeChangeTrackingPolicy, revertChanges, setChangeSetOnListener, updateListenerForSelfMerge, updateWithChanges
public void dissableEventProcessing(java.lang.Object changeTracker)
dissableEventProcessing
in interface ObjectChangePolicy
dissableEventProcessing
in class DeferredChangeDetectionPolicy
public void enableEventProcessing(java.lang.Object changeTracker)
enableEventProcessing
in interface ObjectChangePolicy
enableEventProcessing
in class DeferredChangeDetectionPolicy
public boolean shouldCompareExistingObjectForChange(java.lang.Object object, org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork, ClassDescriptor descriptor)
shouldCompareExistingObjectForChange
in interface ObjectChangePolicy
shouldCompareExistingObjectForChange
in class DeferredChangeDetectionPolicy
object
- the object that will be comparedunitOfWork
- the active unitOfWorkdescriptor
- the descriptor for the current objectpublic void raiseInternalPropertyChangeEvent(java.lang.Object source, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
raiseInternalPropertyChangeEvent
in interface ObjectChangePolicy
raiseInternalPropertyChangeEvent
in class DeferredChangeDetectionPolicy
public void setAggregateChangeListener(java.lang.Object parent, java.lang.Object aggregate, org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow, ClassDescriptor descriptor, java.lang.String mappingAttribute)
setAggregateChangeListener
in interface ObjectChangePolicy
setAggregateChangeListener
in class DeferredChangeDetectionPolicy
public java.beans.PropertyChangeListener setChangeListener(java.lang.Object clone, org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow, ClassDescriptor descriptor)
setChangeListener
in interface ObjectChangePolicy
setChangeListener
in class DeferredChangeDetectionPolicy
public void clearChanges(java.lang.Object clone, org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow, ClassDescriptor descriptor, boolean forRefresh)
clearChanges
in interface ObjectChangePolicy
clearChanges
in class DeferredChangeDetectionPolicy
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session, ClassDescriptor descriptor)
initialize
in interface ObjectChangePolicy
initialize
in class DeferredChangeDetectionPolicy
public boolean isDeferredChangeDetectionPolicy()
isDeferredChangeDetectionPolicy
in interface ObjectChangePolicy
isDeferredChangeDetectionPolicy
in class DeferredChangeDetectionPolicy
public boolean isObjectChangeTrackingPolicy()
isObjectChangeTrackingPolicy
in interface ObjectChangePolicy
isObjectChangeTrackingPolicy
in class DeferredChangeDetectionPolicy