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

All Implemented Interfaces:

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

This strategy is not valid for read style locks.

 public UpdateLockingStrategy(Lockable lockable,
    LockMode lockMode) 
    Construct a locking strategy based on SQL UPDATE statements.
    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