Class MySQLLockingSupport
java.lang.Object
org.hibernate.dialect.lock.internal.MySQLLockingSupport
- All Implemented Interfaces:
LockingSupport
,LockingSupport.Metadata
LockingSupport for MySQLDialect
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface org.hibernate.dialect.lock.spi.LockingSupport
LockingSupport.Metadata
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConnectionLockTimeoutStrategy
static final LockingSupport
-
Constructor Summary
Constructors -
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 strategy for indicating which rows to lock as part of afor update of
style clause.boolean
Whether the Dialect supports specifying no-wait via query options.boolean
Whether the Dialect supports specifying a skip-locked via query options.boolean
Whether the Dialect supports supplying specific lock timeout wait period via query options (e.g.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
getPessimisticLockStyle, getReadRowLockStrategy, supportsForUpdate
-
Field Details
-
MYSQL_CONN_LOCK_TIMEOUT_STRATEGY
-
MYSQL_LOCKING_SUPPORT
-
-
Constructor Details
-
MySQLLockingSupport
public MySQLLockingSupport() -
MySQLLockingSupport
-
-
Method Details
-
getMetadata
Description copied from interface:LockingSupport
Access to details about the locking capabilities of a Dialect.- Specified by:
getMetadata
in interfaceLockingSupport
-
getLockTimeoutType
Description copied from interface:LockingSupport.Metadata
How (if) this Dialect supports the given timeout value.- Specified by:
getLockTimeoutType
in interfaceLockingSupport.Metadata
- See Also:
-
supportsWait
public boolean supportsWait()Description copied from interface:LockingSupport.Metadata
Whether the Dialect supports supplying specific lock timeout wait period via query options (e.g.for update (of)
- Specified by:
supportsWait
in interfaceLockingSupport.Metadata
- See Also:
-
supportsNoWait
public boolean supportsNoWait()Description copied from interface:LockingSupport.Metadata
Whether the Dialect supports specifying no-wait via query options.- Specified by:
supportsNoWait
in interfaceLockingSupport.Metadata
- See Also:
-
supportsSkipLocked
public boolean supportsSkipLocked()Description copied from interface:LockingSupport.Metadata
Whether the Dialect supports specifying a skip-locked via query options.- Specified by:
supportsSkipLocked
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
-
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
-