Known Direct Subclasses
|
Class Overview
A locking strategy where the locks are obtained through select statements.
For non-read locks, this is achieved through the Dialect's specific
SELECT ... FOR UPDATE syntax.
Public Constructors
public
SelectLockingStrategy
(Lockable lockable, LockMode lockMode)
Construct a locking strategy based on SQL SELECT statements.
Parameters
lockable
| The metadata for the entity to be locked. |
lockMode
| Indictates the type of lock to be acquired.
|
Public Methods
Protected Methods
protected
String
generateLockString
(int timeout)