org.hibernate.dialect.lock
Class UpdateLockingStrategy
java.lang.Object
org.hibernate.dialect.lock.UpdateLockingStrategy
- LockingStrategy
public class UpdateLockingStrategy
extends java.lang.Object
A locking strategy where the locks are obtained through update statements.
This strategy is not valid for read style locks.
UpdateLockingStrategy
public UpdateLockingStrategy(Lockable lockable,
LockMode lockMode)
Construct a locking strategy based on SQL UPDATE statements.
lockable
- The metadata for the entity to be locked.lockMode
- Indictates the type of lock to be acquired. Note that
read-locks are not valid for this strategy.
generateLockString
protected String generateLockString()
getLockMode
protected LockMode getLockMode()