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

All Implemented Interfaces:
    LockingStrategy

A locking strategy where the locks are obtained through update statements.

This strategy is not valid for read style locks.

Constructor:
 public UpdateLockingStrategy(Lockable lockable,
    LockMode lockMode) 
    Construct a locking strategy based on SQL UPDATE statements.
    Parameters:
    lockable - The metadata for the entity to be locked.
    lockMode - Indictates the type of lock to be acquired. Note that read-locks are not valid for this strategy.
Method from org.hibernate.dialect.lock.UpdateLockingStrategy 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.UpdateLockingStrategy Detail:
 protected String generateLockString() 
 protected LockMode getLockMode() 
 public  void lock(Serializable id,
    Object version,
    Object object,
    SessionImplementor session) throws StaleObjectStateException, JDBCException