Java org.hibernate LockMode fields, constructors, methods, implement or subclass

Example usage for Java org.hibernate LockMode fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.hibernate LockMode.

The text is from its open source code.

Field

LockModeNONE
No lock required.
LockModeREAD
A shared lock.
LockModeUPGRADE
An upgrade lock.
LockModeUPGRADE_NOWAIT
Attempt to obtain an upgrade lock, using an Oracle-style select for update nowait.
LockModeWRITE
A WRITE lock is obtained when an object is updated or inserted.
LockModeFORCE
Similar to #UPGRADE except that, for versioned entities, it results in a forced version increment.
LockModeOPTIMISTIC
Optimistically assume that transaction will not experience contention for entities.
LockModeOPTIMISTIC_FORCE_INCREMENT
Optimistically assume that transaction will not experience contention for entities.
LockModePESSIMISTIC_READ
Implemented as PESSIMISTIC_WRITE.
LockModePESSIMISTIC_WRITE
Transaction will obtain a database lock immediately.
LockModePESSIMISTIC_FORCE_INCREMENT
Transaction will immediately increment the entity version.

Method

booleangreaterThan(LockMode mode)
Check if this lock mode is more restrictive than the given lock mode.