Uses of Interface
org.hibernate.dialect.lock.LockingStrategy
Packages that use LockingStrategy
Package
Description
This package abstracts over the multifarious dialects of SQL
understood by the databases supported by Hibernate.
Support for
Dialect-specific locking strategies.This package abstracts persistence mechanisms for entities.
-
Uses of LockingStrategy in org.hibernate.dialect
Methods in org.hibernate.dialect that return LockingStrategyModifier and TypeMethodDescriptionprotected LockingStrategyDialect.buildOptimisticForceIncrementStrategy(EntityPersister lockable, LockMode lockMode) protected LockingStrategyDialect.buildOptimisticStrategy(EntityPersister lockable, LockMode lockMode) protected LockingStrategyDialect.buildPessimisticForceIncrementStrategy(EntityPersister lockable, LockMode lockMode, Locking.Scope lockScope) protected LockingStrategyDialect.buildPessimisticReadStrategy(EntityPersister lockable, LockMode lockMode, Locking.Scope lockScope) protected LockingStrategyDialect.buildPessimisticWriteStrategy(EntityPersister lockable, LockMode lockMode, Locking.Scope lockScope) protected LockingStrategyDialect.buildReadStrategy(EntityPersister lockable, LockMode lockMode, Locking.Scope lockScope) Dialect.getLockingStrategy(EntityPersister lockable, LockMode lockMode) Deprecated, for removal: This API element is subject to removal in a future version.Use Dialect.getLockingStrategy(EntityPersister, LockMode, Locking.Scope) instead.Dialect.getLockingStrategy(EntityPersister lockable, LockMode lockMode, Locking.Scope lockScope) ALockingStrategywhich is able to acquire a database-level lock with the specified level.SpannerDialect.getLockingStrategy(EntityPersister lockable, LockMode lockMode) -
Uses of LockingStrategy in org.hibernate.dialect.lock
Classes in org.hibernate.dialect.lock that implement LockingStrategyModifier and TypeClassDescriptionclassBaseLockingStrategyimplementation to support implementations based on issuing SQLSELECTstatements.classAn optimistic locking strategy that verifies that the version has not changed and then forces an increment of the version, just before committing the transaction.classAn optimistic locking strategy that simply verifies that the version has not changed, just before committing the transaction.classA pessimistic locking strategy where a lock is obtained by incrementing the version immediately, obtaining an exclusive write lock by side effect.classA pessimistic locking strategy whereLockMode.PESSIMISTIC_READis obtained via a select statement.classA pessimistic locking strategy where a lock is obtained via an update statement.classA pessimistic locking strategy whereLockMode.PESSIMISTIC_WRITElock is obtained via a select statement.classA pessimistic locking strategy where a lock is obtained via an update statement.classA locking strategy where an optimistic lock is obtained via a select statement.classA locking strategy where a lock is obtained via an update statement. -
Uses of LockingStrategy in org.hibernate.dialect.lock.internal
Classes in org.hibernate.dialect.lock.internal that implement LockingStrategyModifier and TypeClassDescriptionclassLockingStrategy implementation which uses Hibernate's SQL AST mechanism for applying pessimistic locks. -
Uses of LockingStrategy in org.hibernate.persister.entity
Methods in org.hibernate.persister.entity that return LockingStrategyModifier and TypeMethodDescriptionprotected LockingStrategyAbstractEntityPersister.generateLocker(LockMode lockMode, Locking.Scope lockScope)