public class EntityCopyAllowedObserver extends java.lang.Object implements EntityCopyObserver
EntityCopyObserver
implementation that allows multiple representations of
the same persistent entity to be merged.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SHORT_NAME |
Constructor and Description |
---|
EntityCopyAllowedObserver() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Called to clear any data stored in this EntityCopyObserver.
|
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.
|
void |
topLevelMergeComplete(EventSource session)
Called when the top-level merge operation is complete.
|
public static final java.lang.String SHORT_NAME
public void entityCopyDetected(java.lang.Object managedEntity, java.lang.Object mergeEntity1, java.lang.Object mergeEntity2, EventSource session)
EntityCopyObserver
entityCopyDetected
in interface EntityCopyObserver
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.public void clear()
EntityCopyObserver
clear
in interface EntityCopyObserver
public void topLevelMergeComplete(EventSource session)
EntityCopyObserver
topLevelMergeComplete
in interface EntityCopyObserver
session
- The sessionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.