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
public abstract class AbstractSelectLockingStrategy extends java.lang.Object implements LockingStrategy
BaseLockingStrategy
implementation to support implementations based on issuing SQL SELECT statements
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSelectLockingStrategy(Lockable lockable, LockMode lockMode)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
determineSql(int timeout)
protected abstract java.lang.String
generateLockString(int lockTimeout)
protected Lockable
getLockable()
protected LockMode
getLockMode()
protected java.lang.String
getNoWaitSql()
protected java.lang.String
getSkipLockedSql()
-
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
-
-
-
-
Method Detail
-
getLockable
protected Lockable getLockable()
-
getLockMode
protected LockMode getLockMode()
-
generateLockString
protected abstract java.lang.String generateLockString(int lockTimeout)
-
determineSql
protected java.lang.String determineSql(int timeout)
-
getNoWaitSql
protected java.lang.String getNoWaitSql()
-
getSkipLockedSql
protected java.lang.String getSkipLockedSql()
-
-