Package org.hibernate.dialect.lock.spi
Interface LockingSupport.Metadata
- Enclosing interface:
LockingSupport
public static interface LockingSupport.Metadata
Describes the locking capabilities of a Dialect.
-
Method Summary
Modifier and TypeMethodDescriptiondefault LockTimeoutType
getLockTimeoutType
(Timeout timeout) How (if) this Dialect supports the given timeout value.The type of support for outer joins with pessimistic locking.default PessimisticLockStyle
The PessimisticLockStyle supported by this Dialect.default RowLockStrategy
The strategy for indicating which rows to lock as part of afor share of
style clause.default RowLockStrategy
The strategy for indicating which rows to lock as part of afor update of
style clause.default boolean
Deprecated.Use getPessimisticLockStyle(), passing the necessary lock timeout instead.default boolean
Deprecated.Use getPessimisticLockStyle(), with Timeouts.NO_WAIT instead.default boolean
Deprecated.Use getPessimisticLockStyle(), with Timeouts.SKIP_LOCKED instead.default boolean
Deprecated.Use getPessimisticLockStyle(), with a real timeout value instead.
-
Method Details
-
getPessimisticLockStyle
The PessimisticLockStyle supported by this Dialect.- See Also:
-
getLockTimeoutType
How (if) this Dialect supports the given timeout value.- See Also:
-
getReadRowLockStrategy
The strategy for indicating which rows to lock as part of afor share of
style clause. By default, simply uses getWriteRowLockStrategy(). -
getWriteRowLockStrategy
The strategy for indicating which rows to lock as part of afor update of
style clause. -
getOuterJoinLockingType
OuterJoinLockingType getOuterJoinLockingType()The type of support for outer joins with pessimistic locking. -
supportsForUpdate
Deprecated.Use getPessimisticLockStyle(), passing the necessary lock timeout instead.Whether the Dialect supportsfor update (of)
style syntax.- API Note:
- This exists, temporarily, to migrate Dialect.supportsForUpdate().
-
supportsWait
Deprecated.Use getPessimisticLockStyle(), with a real timeout value instead.Whether the Dialect supports supplying specific lock timeout wait period via query options (e.g.for update (of)
- See Also:
- API Note:
- This exists, temporarily, to migrate Dialect.supportsWait().
-
supportsNoWait
Deprecated.Use getPessimisticLockStyle(), with Timeouts.NO_WAIT instead.Whether the Dialect supports specifying no-wait via query options.- See Also:
- API Note:
- This exists, temporarily, to migrate Dialect.supportsNoWait().
-
supportsSkipLocked
Deprecated.Use getPessimisticLockStyle(), with Timeouts.SKIP_LOCKED instead.Whether the Dialect supports specifying a skip-locked via query options.- See Also:
- API Note:
- This exists, temporarily, to migrate Dialect.supportsSkipLocked().
-