Interface EntityLockingStrategyRequest
Immutable facts used to select an entity-locking strategy.
This request is owned by Hibernate. A factory may inspect it during
EntityLockingStrategyFactory.createStrategy(EntityLockingStrategyRequest), but must not retain it.
Use createStrategy(EntityLockingStrategyKind) to obtain a built-in strategy without depending on
Hibernate's internal strategy implementations.
- Since:
- 8.0
-
Method Details
-
target
EntityLockTarget target()The entity target being locked. -
lockMode
LockMode lockMode()The requested entity lock mode. -
lockScope
PessimisticLockScope lockScope()The requested pessimistic lock scope. -
createStrategy
Creates a built-in strategy of the requested kind for this request.- See Also:
-