Home » Hibernate-3.3.2.GA » org.hibernate » dialect » lock » [javadoc | source]
org.hibernate.dialect.lock
public class: SelectLockingStrategy [javadoc | source]
java.lang.Object
   org.hibernate.dialect.lock.SelectLockingStrategy

All Implemented Interfaces:
    LockingStrategy

Direct Known Subclasses:
    ReadUncommittedLockingStrategy

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.

Constructor:
 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.
Method from org.hibernate.dialect.lock.SelectLockingStrategy Summary:
generateLockString,   getLockMode,   lock
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.dialect.lock.SelectLockingStrategy Detail:
 protected String generateLockString() 
 protected LockMode getLockMode() 
 public  void lock(Serializable id,
    Object version,
    Object object,
    SessionImplementor session) throws StaleObjectStateException, JDBCException