public abstract class AbstractLockUpgradeEventListener extends AbstractReassociateEventListener
| Constructor and Description |
|---|
AbstractLockUpgradeEventListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
upgradeLock(Object object,
EntityEntry entry,
LockOptions lockOptions,
EventSource source)
Performs a pessimistic lock upgrade on a given entity, if needed.
|
reassociateprotected void upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource source)
object - The entity for which to upgrade the lock.entry - The entity's EntityEntry instance.lockOptions - contains the requested lock mode.source - The session which is the source of the event being processed.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.