Class SqlAstBasedLockingStrategy
java.lang.Object
org.hibernate.dialect.lock.internal.SqlAstBasedLockingStrategy
- All Implemented Interfaces:
LockingStrategy
LockingStrategy implementation which uses Hibernate's SQL AST
mechanism for applying pessimistic locks.
-
Constructor Summary
ConstructorsConstructorDescriptionSqlAstBasedLockingStrategy
(EntityPersister lockable, LockMode lockMode, Locking.Scope lockScope) -
Method Summary
Modifier and TypeMethodDescriptionvoid
lock
(Object id, Object version, Object object, int timeout, SharedSessionContractImplementor session) Acquire an appropriate type of lock on the underlying data that will endure until the end of the current transaction.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.dialect.lock.LockingStrategy
lock, lock
-
Constructor Details
-
SqlAstBasedLockingStrategy
public SqlAstBasedLockingStrategy(EntityPersister lockable, LockMode lockMode, Locking.Scope lockScope)
-
-
Method Details