Example usage for Java org.hibernate LockMode fields, constructors, methods, implement or subclass
The text is from its open source code.
LockMode | NONE No lock required. |
LockMode | READ A shared lock. |
LockMode | UPGRADE An upgrade lock. |
LockMode | UPGRADE_NOWAIT Attempt to obtain an upgrade lock, using an Oracle-style select for update nowait. |
LockMode | WRITE A WRITE lock is obtained when an object is updated or inserted. |
LockMode | FORCE Similar to #UPGRADE except that, for versioned entities, it results in a forced version increment. |
LockMode | OPTIMISTIC Optimistically assume that transaction will not experience contention for entities. |
LockMode | OPTIMISTIC_FORCE_INCREMENT Optimistically assume that transaction will not experience contention for entities. |
LockMode | PESSIMISTIC_READ Implemented as PESSIMISTIC_WRITE. |
LockMode | PESSIMISTIC_WRITE Transaction will obtain a database lock immediately. |
LockMode | PESSIMISTIC_FORCE_INCREMENT Transaction will immediately increment the entity version. |
boolean | greaterThan(LockMode mode) Check if this lock mode is more restrictive than the given lock mode. |