public class DefaultResolveNaturalIdEventListener extends AbstractLockUpgradeEventListener implements ResolveNaturalIdEventListener
Modifier and Type | Field and Description |
---|---|
static Object |
INCONSISTENT_RTN_CLASS_MARKER |
static Object |
REMOVED_ENTITY_MARKER |
Constructor and Description |
---|
DefaultResolveNaturalIdEventListener() |
Modifier and Type | Method and Description |
---|---|
protected Serializable |
loadFromDatasource(ResolveNaturalIdEvent event)
Performs the process of loading an entity from the configured
underlying datasource.
|
void |
onResolveNaturalId(ResolveNaturalIdEvent event)
Handle the given resolve natural id event.
|
protected Serializable |
resolveFromCache(ResolveNaturalIdEvent event)
Attempts to resolve the entity id corresponding to the event's natural id values from the session
|
protected Serializable |
resolveNaturalId(ResolveNaturalIdEvent event)
Coordinates the efforts to load a given entity.
|
upgradeLock
reassociate
public static final Object REMOVED_ENTITY_MARKER
public static final Object INCONSISTENT_RTN_CLASS_MARKER
public DefaultResolveNaturalIdEventListener()
public void onResolveNaturalId(ResolveNaturalIdEvent event) throws HibernateException
ResolveNaturalIdEventListener
onResolveNaturalId
in interface ResolveNaturalIdEventListener
event
- The resolve natural id event to be handled.HibernateException
- Indicates a problem resolving natural id to primary keyprotected Serializable resolveNaturalId(ResolveNaturalIdEvent event)
event
- The load eventprotected Serializable resolveFromCache(ResolveNaturalIdEvent event)
event
- The load eventprotected Serializable loadFromDatasource(ResolveNaturalIdEvent event)
event
- The load eventCopyright © 2017 JBoss by Red Hat. All rights reserved.