|
|||||||||
| Home >> All >> org >> hibernate >> dialect >> [ lock overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hibernate.dialect.lock
Interface LockingStrategy

- 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.
|
|||||||||
| Home >> All >> org >> hibernate >> dialect >> [ lock overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC