|
EclipseLink 2.0.0, build 'v20091127-r5931' 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 org.eclipse.persistence.descriptors.changetracking.AttributeChangeTrackingPolicy
public class AttributeChangeTrackingPolicy
PUBLIC: An AttributeChangeTrackingPolicy allows change tracking at the attribute level of an object by implementing ChangeTracker. Objects with changed attributes will be processed in the UnitOfWork commit process to include any changes in the results of the commit. Unchanged objects will be ignored.
DeferredChangeDetectionPolicy
,
ObjectChangeTrackingPolicy
,
ChangeTracker
,
Serialized FormConstructor Summary | |
---|---|
AttributeChangeTrackingPolicy()
|
Method Summary | |
---|---|
java.lang.Object |
buildBackupClone(java.lang.Object clone,
org.eclipse.persistence.internal.descriptors.ObjectBuilder builder,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow)
INTERNAL: Only build backup clone |
org.eclipse.persistence.internal.sessions.ObjectChangeSet |
calculateChangesForExistingObject(java.lang.Object clone,
org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork,
ClassDescriptor descriptor,
boolean shouldRaiseEvent)
INTERNAL: PERF: Calculate change for the existing object, avoids check for new since already know. |
org.eclipse.persistence.internal.sessions.ObjectChangeSet |
createObjectChangeSet(java.lang.Object clone,
java.lang.Object backUp,
org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet,
boolean isNew,
org.eclipse.persistence.internal.sessions.AbstractSession session,
ClassDescriptor descriptor)
INTERNAL: Create ObjectChangeSet |
boolean |
isAttributeChangeTrackingPolicy()
Used to track instances of the change policies without doing an instance of check |
void |
revertChanges(java.lang.Object clone,
ClassDescriptor descriptor,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
java.util.Map cloneMapping)
INTERNAL: Clear the change set in the change event listener. |
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 AttributeChangeListener to PropertyChangeListener |
void |
setChangeSetOnListener(org.eclipse.persistence.internal.sessions.ObjectChangeSet objectChangeSet,
java.lang.Object clone)
INTERNAL: Set the ObjectChangeSet on the Listener, initially used for aggregate support |
void |
updateWithChanges(java.lang.Object object,
org.eclipse.persistence.internal.sessions.ObjectChangeSet changeSet,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
ClassDescriptor descriptor)
INTERNAL: Clear the change set in the change event listener. |
Methods inherited from class org.eclipse.persistence.descriptors.changetracking.ObjectChangeTrackingPolicy |
---|
clearChanges, dissableEventProcessing, enableEventProcessing, initialize, isDeferredChangeDetectionPolicy, isObjectChangeTrackingPolicy, raiseInternalPropertyChangeEvent, shouldCompareExistingObjectForChange |
Methods inherited from class org.eclipse.persistence.descriptors.changetracking.DeferredChangeDetectionPolicy |
---|
calculateChanges, calculateChangesForNewObject, createObjectChangeSetThroughComparison |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeChangeTrackingPolicy()
Method Detail |
---|
public org.eclipse.persistence.internal.sessions.ObjectChangeSet calculateChangesForExistingObject(java.lang.Object clone, org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet, org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork, ClassDescriptor descriptor, boolean shouldRaiseEvent)
calculateChangesForExistingObject
in interface ObjectChangePolicy
calculateChangesForExistingObject
in class DeferredChangeDetectionPolicy
clone
- the Object to compute a change set forchangeSet
- the change set to add changes todescriptor
- the descriptor for this objectshouldRaiseEvent
- indicates whether PreUpdate event should be risen (usually true)
public org.eclipse.persistence.internal.sessions.ObjectChangeSet createObjectChangeSet(java.lang.Object clone, java.lang.Object backUp, org.eclipse.persistence.internal.sessions.UnitOfWorkChangeSet changeSet, boolean isNew, org.eclipse.persistence.internal.sessions.AbstractSession session, ClassDescriptor descriptor)
createObjectChangeSet
in class DeferredChangeDetectionPolicy
public boolean isAttributeChangeTrackingPolicy()
isAttributeChangeTrackingPolicy
in interface ObjectChangePolicy
isAttributeChangeTrackingPolicy
in class DeferredChangeDetectionPolicy
public void updateWithChanges(java.lang.Object object, org.eclipse.persistence.internal.sessions.ObjectChangeSet changeSet, org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow, ClassDescriptor descriptor)
updateWithChanges
in interface ObjectChangePolicy
updateWithChanges
in class DeferredChangeDetectionPolicy
public void revertChanges(java.lang.Object clone, ClassDescriptor descriptor, org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow, java.util.Map cloneMapping)
revertChanges
in interface ObjectChangePolicy
revertChanges
in class DeferredChangeDetectionPolicy
cloneMapping
- may not be the same as what is in the uowpublic 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 ObjectChangeTrackingPolicy
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 ObjectChangeTrackingPolicy
public void setChangeSetOnListener(org.eclipse.persistence.internal.sessions.ObjectChangeSet objectChangeSet, java.lang.Object clone)
setChangeSetOnListener
in interface ObjectChangePolicy
setChangeSetOnListener
in class DeferredChangeDetectionPolicy
public java.lang.Object buildBackupClone(java.lang.Object clone, org.eclipse.persistence.internal.descriptors.ObjectBuilder builder, org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow)
buildBackupClone
in interface ObjectChangePolicy
buildBackupClone
in class DeferredChangeDetectionPolicy
|
EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |