Package org.hibernate.dialect.lock
package org.hibernate.dialect.lock
Support for
Dialect-specific locking strategies.- See Also:
-
ClassDescriptionBase
LockingStrategyimplementation to support implementations based on issuing SQLSELECTstatements.A strategy abstraction for how locks are obtained in the underlying database.Represents an error trying to apply aLockingStrategyto an entityRepresents an error trying to apply an optimisticLockingStrategyto an entityAn optimistic locking strategy that verifies that the version has not changed and then forces an increment of the version, just before committing the transaction.An optimistic locking strategy that simply verifies that the version has not changed, just before committing the transaction.Represents an error trying to apply a pessimisticLockingStrategyto an entityA pessimistic locking strategy where a lock is obtained by incrementing the version immediately, obtaining an exclusive write lock by side effect.A pessimistic locking strategy whereLockMode.PESSIMISTIC_READis obtained via a select statement.A pessimistic locking strategy where a lock is obtained via an update statement.A pessimistic locking strategy whereLockMode.PESSIMISTIC_WRITElock is obtained via a select statement.A pessimistic locking strategy where a lock is obtained via an update statement.A locking strategy where an optimistic lock is obtained via a select statement.A locking strategy where a lock is obtained via an update statement.