Class LockingSupportSimple
java.lang.Object
org.hibernate.dialect.lock.internal.LockingSupportSimple
- All Implemented Interfaces:
LockingSupport
,LockingSupport.Metadata
LockingSupport implementation based on the legacy, standard
implementations from Dialect
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.dialect.lock.spi.LockingSupport
LockingSupport.Metadata
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LockingSupport
Standard support, expect that locking outer-joins is not supported.static final LockingSupport
The support as used to be defined on Dialect itself... -
Constructor Summary
ConstructorsConstructorDescriptionLockingSupportSimple
(PessimisticLockStyle lockStyle, LockTimeoutType lockTimeoutType, OuterJoinLockingType joinLockingType, ConnectionLockTimeoutStrategy connectionStrategy) LockingSupportSimple
(PessimisticLockStyle lockStyle, RowLockStrategy rowLockStrategy, LockTimeoutType lockTimeoutType, OuterJoinLockingType joinLockingType, ConnectionLockTimeoutStrategy connectionStrategy) -
Method Summary
Modifier and TypeMethodDescriptionAccess to the delegate which can be used for applying lock timeouts using the JDBC connection, generally via execution of a command/statement.getLockTimeoutType
(Timeout timeout) How (if) this Dialect supports the given timeout value.Access to details about the locking capabilities of a Dialect.The type of support for outer joins with pessimistic locking.The PessimisticLockStyle supported by this Dialect.The strategy for indicating which rows to lock as part of afor update of
style clause.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.dialect.lock.spi.LockingSupport.Metadata
getReadRowLockStrategy, supportsForUpdate, supportsNoWait, supportsSkipLocked, supportsWait
-
Field Details
-
STANDARD_SUPPORT
The support as used to be defined on Dialect itself... -
NO_OUTER_JOIN
Standard support, expect that locking outer-joins is not supported.
-
-
Constructor Details
-
LockingSupportSimple
public LockingSupportSimple(PessimisticLockStyle lockStyle, LockTimeoutType lockTimeoutType, OuterJoinLockingType joinLockingType, ConnectionLockTimeoutStrategy connectionStrategy) -
LockingSupportSimple
public LockingSupportSimple(PessimisticLockStyle lockStyle, RowLockStrategy rowLockStrategy, LockTimeoutType lockTimeoutType, OuterJoinLockingType joinLockingType, ConnectionLockTimeoutStrategy connectionStrategy)
-
-
Method Details
-
getMetadata
Description copied from interface:LockingSupport
Access to details about the locking capabilities of a Dialect.- Specified by:
getMetadata
in interfaceLockingSupport
-
getPessimisticLockStyle
Description copied from interface:LockingSupport.Metadata
The PessimisticLockStyle supported by this Dialect.- Specified by:
getPessimisticLockStyle
in interfaceLockingSupport.Metadata
- See Also:
-
getWriteRowLockStrategy
Description copied from interface:LockingSupport.Metadata
The strategy for indicating which rows to lock as part of afor update of
style clause.- Specified by:
getWriteRowLockStrategy
in interfaceLockingSupport.Metadata
-
getLockTimeoutType
Description copied from interface:LockingSupport.Metadata
How (if) this Dialect supports the given timeout value.- Specified by:
getLockTimeoutType
in interfaceLockingSupport.Metadata
- See Also:
-
getOuterJoinLockingType
Description copied from interface:LockingSupport.Metadata
The type of support for outer joins with pessimistic locking.- Specified by:
getOuterJoinLockingType
in interfaceLockingSupport.Metadata
-
getConnectionLockTimeoutStrategy
Description copied from interface:LockingSupport
Access to the delegate which can be used for applying lock timeouts using the JDBC connection, generally via execution of a command/statement.- Specified by:
getConnectionLockTimeoutStrategy
in interfaceLockingSupport
-