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 LockingSupportStandard support, expect that locking outer-joins is not supported.static final LockingSupportThe 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 ofstyle clause.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:LockingSupportAccess to details about the locking capabilities of a Dialect.- Specified by:
getMetadatain interfaceLockingSupport
-
getPessimisticLockStyle
Description copied from interface:LockingSupport.MetadataThe PessimisticLockStyle supported by this Dialect.- Specified by:
getPessimisticLockStylein interfaceLockingSupport.Metadata- See Also:
-
getWriteRowLockStrategy
Description copied from interface:LockingSupport.MetadataThe strategy for indicating which rows to lock as part of afor update ofstyle clause.- Specified by:
getWriteRowLockStrategyin interfaceLockingSupport.Metadata
-
getLockTimeoutType
Description copied from interface:LockingSupport.MetadataHow (if) this Dialect supports the given timeout value.- Specified by:
getLockTimeoutTypein interfaceLockingSupport.Metadata- See Also:
-
getOuterJoinLockingType
Description copied from interface:LockingSupport.MetadataThe type of support for outer joins with pessimistic locking.- Specified by:
getOuterJoinLockingTypein interfaceLockingSupport.Metadata
-
getConnectionLockTimeoutStrategy
Description copied from interface:LockingSupportAccess to the delegate which can be used for applying lock timeouts using the JDBC connection, generally via execution of a command/statement.- Specified by:
getConnectionLockTimeoutStrategyin interfaceLockingSupport
-