Package org.hibernate.dialect.lock
Support for
Dialect
-specific locking strategies.- See Also:
LockingStrategy
-
Interface Summary Interface Description LockingStrategy A strategy abstraction for how locks are obtained in the underlying database. -
Class Summary Class Description AbstractSelectLockingStrategy BaseLockingStrategy
implementation to support implementations based on issuingSQL
SELECT
statementsOptimisticForceIncrementLockingStrategy An optimistic locking strategy that verifies that the version has not changed and then forces an increment of the version, just before committing the transaction.OptimisticLockingStrategy An optimistic locking strategy that simply verifies that the version has not changed, just before committing the transaction.PessimisticForceIncrementLockingStrategy A pessimistic locking strategy where a lock is obtained by incrementing the version immediately, obtaining an exclusive write lock by side effect.PessimisticReadSelectLockingStrategy A pessimistic locking strategy where a lock is obtained via a select statements.PessimisticReadUpdateLockingStrategy A pessimistic locking strategy where a lock is obtained via an update statement.PessimisticWriteSelectLockingStrategy A pessimistic locking strategy where a lock is obtained via a select statement.PessimisticWriteUpdateLockingStrategy A pessimistic locking strategy where a lock is obtained via an update statement.SelectLockingStrategy A locking strategy where a lock is obtained via a select statement.UpdateLockingStrategy A locking strategy where a lock is obtained via an update statement. -
Exception Summary Exception Description LockingStrategyException Represents an error trying to apply aLockingStrategy
to an entityOptimisticEntityLockException Represents an error trying to apply an optimisticLockingStrategy
to an entityPessimisticEntityLockException Represents an error trying to apply a pessimisticLockingStrategy
to an entity