Package org.hibernate.dialect.lock
@Incubating
package org.hibernate.dialect.lock
Support for
Dialect-specific locking strategies.- See Also:
- API Note:
- Marked incubating as major refactoring and reorganizing expected here during 7.x development.
-
ClassDescriptionCommon implementation of
PessimisticReadUpdateLockingStrategyandPessimisticWriteUpdateLockingStrategy.BaseLockingStrategyimplementation 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.Indicates how a dialect supports acquiring pessimistic locks as part of aSELECTstatement.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.Deprecated, for removal: This API element is subject to removal in a future version.No longer used