Interface LockingStrategy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Acquires an entity lock in the underlying database.
All built-in implementations assume at least
Connection.TRANSACTION_READ_COMMITTED transaction isolation.
Providers may implement and supply a strategy from
EntityLockingStrategyFactory.createStrategy(EntityLockingStrategyRequest), or select a built-in strategy
with EntityLockingStrategyRequest.createStrategy(EntityLockingStrategyKind). Implementations must not
retain the session or arguments supplied to lock(Object, Object, Object, Timeout, SharedSessionContractImplementor).
- Since:
- 8.0
- See Also:
-
Method Summary
-
Method Details