Class UpdateLockingStrategy
java.lang.Object
org.hibernate.dialect.lock.AbstractPessimisticUpdateLockingStrategy
org.hibernate.dialect.lock.UpdateLockingStrategy
- All Implemented Interfaces:
LockingStrategy
@Deprecated(since="7.2",
forRemoval=true)
public class UpdateLockingStrategy
extends AbstractPessimisticUpdateLockingStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
No longer used
A locking strategy where a lock is obtained via an update statement.
This strategy is not valid for read style locks.
- Since:
- 3.2
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateLockingStrategy(EntityPersister lockable, LockMode lockMode) Deprecated, for removal: This API element is subject to removal in a future version.Construct a locking strategy based on SQL UPDATE statements. -
Method Summary
Modifier and TypeMethodDescriptionvoidlock(Object id, Object version, Object object, int timeout, SharedSessionContractImplementor session) Deprecated, for removal: This API element is subject to removal in a future version.Acquire an appropriate type of lock on the underlying data that will endure until the end of the current transaction.Methods inherited from class AbstractPessimisticUpdateLockingStrategy
generateLockString, getLockModeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LockingStrategy
lock, lock
-
Constructor Details
-
UpdateLockingStrategy
Deprecated, for removal: This API element is subject to removal in a future version.Construct a locking strategy based on SQL UPDATE statements.- Parameters:
lockable- The metadata for the entity to be locked.lockMode- Indicates the type of lock to be acquired. Note that read-locks are not valid for this strategy.
-
-
Method Details