public class

SelectLockingStrategy

extends AbstractSelectLockingStrategy
java.lang.Object
   ↳ org.hibernate.dialect.lock.AbstractSelectLockingStrategy
     ↳ org.hibernate.dialect.lock.SelectLockingStrategy
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.

Summary

Public Constructors
SelectLockingStrategy(Lockable lockable, LockMode lockMode)
Construct a locking strategy based on SQL SELECT statements.
Public Methods
void lock(Serializable id, Object version, Object object, int timeout, SessionImplementor session)
Protected Methods
String generateLockString(int timeout)
[Expand]
Inherited Methods
From class org.hibernate.dialect.lock.AbstractSelectLockingStrategy
From class java.lang.Object
From interface org.hibernate.dialect.lock.LockingStrategy

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)