Package org.hibernate.event.spi
Interface EntityCopyObserver
-
public interface EntityCopyObserverAn observer for detection of multiple entity representations for a persistent entity being merged.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Called to clear any data stored in this EntityCopyObserver.voidentityCopyDetected(java.lang.Object managedEntity, java.lang.Object mergeEntity1, java.lang.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.
-
-
-
Method Detail
-
entityCopyDetected
void entityCopyDetected(java.lang.Object managedEntity, java.lang.Object mergeEntity1, java.lang.Object mergeEntity2, EventSource session)Called when more than one representation of the same persistent entity is being merged.- 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.
-
topLevelMergeComplete
void topLevelMergeComplete(EventSource session)
Called when the top-level merge operation is complete.- Parameters:
session- The session
-
clear
void clear()
Called to clear any data stored in this EntityCopyObserver.
-
-