Package org.hibernate.event.internal
Class EntityCopyAllowedLoggedObserver
- java.lang.Object
-
- org.hibernate.event.internal.EntityCopyAllowedLoggedObserver
-
- All Implemented Interfaces:
EntityCopyObserver
public final class EntityCopyAllowedLoggedObserver extends Object implements EntityCopyObserver
AnEntityCopyObserverimplementation that allows multiple representations of the same persistent entity to be merged and provides logging of the entity copies that are detected.
-
-
Field Summary
Fields Modifier and Type Field Description static EntityCopyObserverFactoryFACTORY_OF_SELFstatic StringSHORT_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Called to clear any data stored in this EntityCopyObserver.voidentityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)Called when more than one representation of the same persistent entity is being merged.voidtopLevelMergeComplete(EventSource session)Called when the top-level merge operation is complete.
-
-
-
Field Detail
-
FACTORY_OF_SELF
public static final EntityCopyObserverFactory FACTORY_OF_SELF
-
SHORT_NAME
public static final String SHORT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
entityCopyDetected
public void entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)
Description copied from interface:EntityCopyObserverCalled when more than one representation of the same persistent entity is being merged.- Specified by:
entityCopyDetectedin interfaceEntityCopyObserver- Parameters:
managedEntity- The managed entity in the persistence context (the merge result).mergeEntity1- A managed or detached entity being merged; must be non-null.mergeEntity2- A different managed or detached entity being merged; must be non-null.session- The session.
-
clear
public void clear()
Description copied from interface:EntityCopyObserverCalled to clear any data stored in this EntityCopyObserver.- Specified by:
clearin interfaceEntityCopyObserver
-
topLevelMergeComplete
public void topLevelMergeComplete(EventSource session)
Description copied from interface:EntityCopyObserverCalled when the top-level merge operation is complete.- Specified by:
topLevelMergeCompletein interfaceEntityCopyObserver- Parameters:
session- The session
-
-