Package org.hibernate.dialect.lock
Class AbstractSelectLockingStrategy
java.lang.Object
org.hibernate.dialect.lock.AbstractSelectLockingStrategy
- All Implemented Interfaces:
LockingStrategy
- Direct Known Subclasses:
PessimisticReadSelectLockingStrategy,PessimisticWriteSelectLockingStrategy,SelectLockingStrategy
Base
LockingStrategy implementation to support implementations
based on issuing SQL SELECT statements. For non-read locks,
this is achieved via the dialect's native SELECT ... FOR UPDATE
syntax.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSelectLockingStrategy(EntityPersister lockable, LockMode lockMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected HibernateExceptionconvertException(Object entity, JDBCException ex) protected StringdetermineSql(int timeout) protected StringgenerateLockString(int lockTimeout) Deprecated.Use generateLockString(Timeout) instead.protected StringgenerateLockString(Timeout lockTimeout) protected EntityPersisterprotected LockModeprotected Stringprotected Stringvoidlock(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, waitMethods inherited from interface org.hibernate.dialect.lock.LockingStrategy
lock, lock
-
Constructor Details
-
AbstractSelectLockingStrategy
-
-
Method Details
-
getLockable
-
getLockMode
-
generateLockString
-
generateLockString
Deprecated.Use generateLockString(Timeout) instead. -
convertException
-
determineSql
-
getNoWaitSql
-
getSkipLockedSql
-