public class EntityCopyAllowedLoggedObserver extends EntityCopyAllowedObserver
EntityCopyObserver implementation that allows multiple representations of
 the same persistent entity to be merged and provides logging of the entity copies that
 that are detected.| Modifier and Type | Field and Description | 
|---|---|
| static String | SHORT_NAME | 
| Constructor and Description | 
|---|
| EntityCopyAllowedLoggedObserver() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Called to clear any data stored in this EntityCopyObserver. | 
| void | entityCopyDetected(Object managedEntity,
                  Object mergeEntity1,
                  Object mergeEntity2,
                  EventSource session)Called when more than one representation of the same persistent entity is being merged. | 
| static boolean | isDebugLoggingEnabled()Indicates if DEBUG logging is enabled. | 
| void | topLevelMergeComplete(EventSource session)Called when the top-level merge operation is complete. | 
public static final String SHORT_NAME
public static boolean isDebugLoggingEnabled()
public void entityCopyDetected(Object managedEntity, Object mergeEntity1, Object mergeEntity2, EventSource session)
EntityCopyObserverentityCopyDetected in interface EntityCopyObserverentityCopyDetected in class EntityCopyAllowedObservermanagedEntity - 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.public void clear()
EntityCopyObserverclear in interface EntityCopyObserverclear in class EntityCopyAllowedObserverpublic void topLevelMergeComplete(EventSource session)
EntityCopyObservertopLevelMergeComplete in interface EntityCopyObservertopLevelMergeComplete in class EntityCopyAllowedObserversession - The sessionCopyright © 2017 JBoss by Red Hat. All rights reserved.