Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.dialect.lock
Interface LockingStrategy  view LockingStrategy download LockingStrategy.java

All Known Implementing Classes:
SelectLockingStrategy, UpdateLockingStrategy

public interface LockingStrategy

A strategy abstraction for how locks are obtained in the underlying database.

All locking provided implemenations assume the underlying database supports (and that the connection is in) at least read-committed transaction isolation. The most glaring exclusion to this is HSQLDB which only offers support for READ_UNCOMMITTED isolation.

Since:
3.2

Method Summary
 void lock(java.io.Serializable id, java.lang.Object version, java.lang.Object object, org.hibernate.engine.SessionImplementor session)
          Acquire an appropriate type of lock on the underlying data that will endure until the end of the current transaction.
 

Method Detail

lock

public void lock(java.io.Serializable id,
                 java.lang.Object version,
                 java.lang.Object object,
                 org.hibernate.engine.SessionImplementor session)
          throws org.hibernate.StaleObjectStateException,
                 org.hibernate.JDBCException
Acquire an appropriate type of lock on the underlying data that will endure until the end of the current transaction.