| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | buildBackupClone(Object clone, ObjectBuilder builder, UnitOfWorkImpl uow)
Implements org. |
| public ObjectChangeSet | Returns: an object change set describing the changes to this objectthe Object to compute a change set for clone, Object the old version of the object to use for comparison backUp, boolean determines if the object is new isNew, UnitOfWorkChangeSet the change set to add changes to changeSet, UnitOfWorkImpl the current session unitOfWork, ClassDescriptor the descriptor for this object descriptor, boolean indicates whether PreUpdate event should be risen (usually true) shouldRaiseEvent)Implements org. |
| public ObjectChangeSet | calculateChangesForExistingObject(Object
the Object to compute a change set for clone, UnitOfWorkChangeSet the change set to add changes to changeSet, UnitOfWorkImpl the current session unitOfWork, ClassDescriptor the descriptor for this object descriptor, boolean indicates whether PreUpdate event should be risen (usually true) shouldRaiseEvent)Implements org. |
| public ObjectChangeSet | calculateChangesForNewObject(Object
the Object to compute a change set for clone, UnitOfWorkChangeSet the change set to add changes to changeSet, UnitOfWorkImpl the current session unitOfWork, ClassDescriptor the descriptor for this object descriptor, boolean indicates whether PreUpdate event should be risen (usually true) shouldRaiseEvent)Implements org. |
| public void | clearChanges(Object object, UnitOfWorkImpl uow, ClassDescriptor descriptor, boolean forRefresh)
Implements org. |
| public ObjectChangeSet | createObjectChangeSet(Object clone, Object backUp, UnitOfWorkChangeSet changeSet, boolean isNew, AbstractSession session, ClassDescriptor descriptor)
INTERNAL: Create ObjectChangeSet |
| public ObjectChangeSet | createObjectChangeSetThroughComparison(Object clone, Object backUp, UnitOfWorkChangeSet changeSet, boolean isNew, AbstractSession session, ClassDescriptor descriptor)
Implements org. |
| public void | dissableEventProcessing(Object changeTracker)
Implements org. |
| public void | enableEventProcessing(Object changeTracker)
Implements org. |
| public void | initialize(AbstractSession session, ClassDescriptor descriptor)
Implements org. |
| public boolean | isAttributeChangeTrackingPolicy()
Implements org. |
| public boolean | isDeferredChangeDetectionPolicy()
Implements org. |
| public boolean | isObjectChangeTrackingPolicy()
Implements org. |
| public void | raiseInternalPropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue)
Implements org. |
| public void | revertChanges(Object clone, ClassDescriptor descriptor, UnitOfWorkImpl uow, Map<K, V>
may not be the same as what is in the uow cloneMapping, boolean forRefresh)Implements org. |
| public void | setAggregateChangeListener(Object parent, Object aggregate, UnitOfWorkImpl uow, ClassDescriptor descriptor, String mappingAttribute)
Implements org. |
| public PropertyChangeListener | setChangeListener(Object clone, UnitOfWorkImpl uow, ClassDescriptor descriptor)
Implements org. |
| public void | setChangeSetOnListener(ObjectChangeSet objectChangeSet, Object clone)
Implements org. |
| public boolean | shouldCompareExistingObjectForChange(Object
the object that will be compared object, UnitOfWorkImpl the active unitOfWork unitOfWork, ClassDescriptor the descriptor for the current object descriptor)Implements org. |
| public void | updateListenerForSelfMerge(ObjectChangeListener listener, ForeignReferenceMapping mapping, Object source, Object target, UnitOfWorkImpl unitOfWork)
Implements org. |
| public void | updateWithChanges(Object clone, ObjectChangeSet objectChangeSet, UnitOfWorkImpl uow, ClassDescriptor descriptor)
Implements org. |
| DeferredChangeDetectionPolicy | back to summary |
|---|---|
| public DeferredChangeDetectionPolicy() | |
| buildBackupClone | back to summary |
|---|---|
| public Object buildBackupClone(Object clone, ObjectBuilder builder, UnitOfWorkImpl uow) Implements org. INTERNAL: Build back up clone. Used if clone is new because listener should not be set.
| |
| calculateChanges | back to summary |
|---|---|
| public ObjectChangeSet calculateChanges(Object clone, Object backUp, boolean isNew, UnitOfWorkChangeSet changeSet, UnitOfWorkImpl unitOfWork, ClassDescriptor descriptor, boolean shouldRaiseEvent) Implements org. INTERNAL: calculateChanges creates a change set for a particular object. In DeferredChangeDetectionPolicy all mappings will be compared against a backup copy of the object.
| |
| calculateChangesForExistingObject | back to summary |
|---|---|
| public ObjectChangeSet calculateChangesForExistingObject(Object clone, UnitOfWorkChangeSet changeSet, UnitOfWorkImpl unitOfWork, ClassDescriptor descriptor, boolean shouldRaiseEvent) Implements org. INTERNAL: PERF: Calculate change for the new object, avoids check for new since already know.
| |
| clearChanges | back to summary |
|---|---|
| public void clearChanges(Object object, UnitOfWorkImpl uow, ClassDescriptor descriptor, boolean forRefresh) Implements org. INTERNAL: This is a place holder for reseting the listener on one of the subclasses
| |
| createObjectChangeSet | back to summary |
|---|---|
| public ObjectChangeSet createObjectChangeSet(Object clone, Object backUp, UnitOfWorkChangeSet changeSet, boolean isNew, AbstractSession session, ClassDescriptor descriptor) INTERNAL: Create ObjectChangeSet | |
| createObjectChangeSetThroughComparison | back to summary |
|---|---|
| public ObjectChangeSet createObjectChangeSetThroughComparison(Object clone, Object backUp, UnitOfWorkChangeSet changeSet, boolean isNew, AbstractSession session, ClassDescriptor descriptor) Implements org. INTERNAL: Create ObjectChangeSet
| |
| dissableEventProcessing | back to summary |
|---|---|
| public void dissableEventProcessing(Object changeTracker) Implements org. INTERNAL: This method is used to disable changetracking temporarily
| |
| enableEventProcessing | back to summary |
|---|---|
| public void enableEventProcessing(Object changeTracker) Implements org. INTERNAL: This method is used to enable changetracking temporarily
| |
| initialize | back to summary |
|---|---|
| public void initialize(AbstractSession session, ClassDescriptor descriptor) Implements org. INTERNAL: initialize the Policy
| |
| isAttributeChangeTrackingPolicy | back to summary |
|---|---|
| public boolean isAttributeChangeTrackingPolicy() Implements org. Used to track instances of the change policies without doing an instance of check
| |
| isDeferredChangeDetectionPolicy | back to summary |
|---|---|
| public boolean isDeferredChangeDetectionPolicy() Implements org. Used to track instances of the change policies without doing an instance of check
| |
| isObjectChangeTrackingPolicy | back to summary |
|---|---|
| public boolean isObjectChangeTrackingPolicy() Implements org. Used to track instances of the change policies without doing an instance of check
| |
| raiseInternalPropertyChangeEvent | back to summary |
|---|---|
| public void raiseInternalPropertyChangeEvent(Object source, String propertyName, Object oldValue, Object newValue) Implements org. INTERNAL: This may cause a property change event to be raised to a listener in the case that a listener exists. If there is no listener then this call is a no-op
| |
| revertChanges | back to summary |
|---|---|
| public void revertChanges(Object clone, ClassDescriptor descriptor, UnitOfWorkImpl uow, Map<K, V> cloneMapping, boolean forRefresh) Implements org. INTERNAL: This method is used to revert an object within the unit of work | |
| setAggregateChangeListener | back to summary |
|---|---|
| public void setAggregateChangeListener(Object parent, Object aggregate, UnitOfWorkImpl uow, ClassDescriptor descriptor, String mappingAttribute) Implements org. INTERNAL: Assign ChangeListener to an aggregate object
| |
| setChangeListener | back to summary |
|---|---|
| public PropertyChangeListener setChangeListener(Object clone, UnitOfWorkImpl uow, ClassDescriptor descriptor) Implements org. INTERNAL: Set ChangeListener for the clone
| |
| setChangeSetOnListener | back to summary |
|---|---|
| public void setChangeSetOnListener(ObjectChangeSet objectChangeSet, Object clone) Implements org. INTERNAL: Set the ObjectChangeSet on the Listener, initially used for aggregate support
| |
| shouldCompareExistingObjectForChange | back to summary |
|---|---|
| public boolean shouldCompareExistingObjectForChange(Object object, UnitOfWorkImpl unitOfWork, ClassDescriptor descriptor) Implements org. INTERNAL: Return true if the Object should be compared, false otherwise. In DeferredChangeDetectionPolicy, true is always returned since always allow the UnitOfWork to calculate changes.
| |
| updateListenerForSelfMerge | back to summary |
|---|---|
| public void updateListenerForSelfMerge(ObjectChangeListener listener, ForeignReferenceMapping mapping, Object source, Object target, UnitOfWorkImpl unitOfWork) Implements org. INTERNAL: In cases where a relationship with detached or new entities is merged into itself previous changes may have been recorded for the detached/new entity that need to be updated.
| |
| updateWithChanges | back to summary |
|---|---|
| public void updateWithChanges(Object clone, ObjectChangeSet objectChangeSet, UnitOfWorkImpl uow, ClassDescriptor descriptor) Implements org. INTERNAL: Clear changes in the ChangeListener of the clone
| |