|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.descriptors.changetracking.DeferredChangeDetectionPolicy org.eclipse.persistence.descriptors.changetracking.ObjectChangeTrackingPolicy
public class ObjectChangeTrackingPolicy
PUBLIC: A ObjectChangeTrackingPolicy allows an object to calculate for itself whether it should has changed by implementing ChangeTracker. Changed objects will be processed in the UnitOfWork commit process to include any changes in the results of the commit. Unchanged objects will be ignored.
DeferredChangeDetectionPolicy
,
ChangeTracker
,
Serialized FormConstructor Summary | |
---|---|
ObjectChangeTrackingPolicy()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.persistence.descriptors.changetracking.DeferredChangeDetectionPolicy |
---|
buildBackupClone, calculateChanges, calculateChangesForExistingObject, calculateChangesForNewObject, createObjectChangeSet, createObjectChangeSetThroughComparison, isAttributeChangeTrackingPolicy, revertChanges, setChangeSetOnListener, updateWithChanges |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectChangeTrackingPolicy()
Method Detail |
---|
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
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |