Package org.hibernate.event.internal
Class AbstractLockUpgradeEventListener
- java.lang.Object
-
- org.hibernate.event.internal.AbstractReassociateEventListener
-
- org.hibernate.event.internal.AbstractLockUpgradeEventListener
-
- Direct Known Subclasses:
DefaultLockEventListener
,DefaultResolveNaturalIdEventListener
public abstract class AbstractLockUpgradeEventListener extends AbstractReassociateEventListener
A convenience base class for listeners that respond to requests to perform a pessimistic lock upgrade on an entity.
-
-
Constructor Summary
Constructors Constructor Description AbstractLockUpgradeEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource source)
Performs a pessimistic lock upgrade on a given entity, if needed.-
Methods inherited from class org.hibernate.event.internal.AbstractReassociateEventListener
reassociate
-
-
-
-
Method Detail
-
upgradeLock
protected void upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource source)
Performs a pessimistic lock upgrade on a given entity, if needed.- Parameters:
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.
-
-