Package org.hibernate.dialect.lock
Support for Dialect-specific locking strategies
-
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 forces an increment of the version (after verifying that version hasn't changed).OptimisticLockingStrategy An optimistic locking strategy that verifies that the version hasn't changed (prior to transaction commit).PessimisticForceIncrementLockingStrategy A pessimistic locking strategy that increments the version immediately (obtaining an exclusive write lock).PessimisticReadSelectLockingStrategy A pessimistic locking strategy where the locks are obtained through select statements.PessimisticReadUpdateLockingStrategy A pessimistic locking strategy where the locks are obtained through update statements.PessimisticWriteSelectLockingStrategy A pessimistic locking strategy where the locks are obtained through select statements.PessimisticWriteUpdateLockingStrategy A pessimistic locking strategy where the locks are obtained through update statements.SelectLockingStrategy A locking strategy where the locks are obtained through select statements.UpdateLockingStrategy A locking strategy where the locks are obtained through update statements. -
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