Class GaussDBLockingSupport
java.lang.Object
org.hibernate.community.dialect.lock.internal.GaussDBLockingSupport
- All Implemented Interfaces:
org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy, org.hibernate.dialect.lock.spi.LockingSupport, org.hibernate.dialect.lock.spi.LockingSupport.Metadata
public class GaussDBLockingSupport
extends Object
implements org.hibernate.dialect.lock.spi.LockingSupport, org.hibernate.dialect.lock.spi.LockingSupport.Metadata, org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy.LevelNested classes/interfaces inherited from interface org.hibernate.dialect.lock.spi.LockingSupport
org.hibernate.dialect.lock.spi.LockingSupport.Metadata -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.hibernate.dialect.lock.spi.LockingSupportFields inherited from interface org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategygetLockTimeout(Connection connection, org.hibernate.engine.spi.SessionFactoryImplementor factory) org.hibernate.dialect.lock.spi.LockTimeoutTypegetLockTimeoutType(Timeout timeout) org.hibernate.dialect.lock.spi.LockingSupport.Metadataorg.hibernate.dialect.lock.spi.OuterJoinLockingTypeorg.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy.Levelorg.hibernate.dialect.RowLockStrategyvoidsetLockTimeout(Timeout timeout, Connection connection, org.hibernate.engine.spi.SessionFactoryImplementor factory) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.dialect.lock.spi.LockingSupport.Metadata
getPessimisticLockStyle, getReadRowLockStrategy, supportsForUpdate, supportsNoWait, supportsSkipLocked, supportsWait
-
Field Details
-
LOCKING_SUPPORT
public static final org.hibernate.dialect.lock.spi.LockingSupport LOCKING_SUPPORT
-
-
Constructor Details
-
GaussDBLockingSupport
public GaussDBLockingSupport() -
GaussDBLockingSupport
public GaussDBLockingSupport(boolean supportsNoWait, boolean supportsSkipLocked)
-
-
Method Details
-
getMetadata
public org.hibernate.dialect.lock.spi.LockingSupport.Metadata getMetadata()- Specified by:
getMetadatain interfaceorg.hibernate.dialect.lock.spi.LockingSupport
-
getWriteRowLockStrategy
public org.hibernate.dialect.RowLockStrategy getWriteRowLockStrategy()- Specified by:
getWriteRowLockStrategyin interfaceorg.hibernate.dialect.lock.spi.LockingSupport.Metadata
-
getOuterJoinLockingType
public org.hibernate.dialect.lock.spi.OuterJoinLockingType getOuterJoinLockingType()- Specified by:
getOuterJoinLockingTypein interfaceorg.hibernate.dialect.lock.spi.LockingSupport.Metadata
-
getConnectionLockTimeoutStrategy
public org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy getConnectionLockTimeoutStrategy()- Specified by:
getConnectionLockTimeoutStrategyin interfaceorg.hibernate.dialect.lock.spi.LockingSupport
-
getSupportedLevel
public org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy.Level getSupportedLevel()- Specified by:
getSupportedLevelin interfaceorg.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
-
getLockTimeoutType
- Specified by:
getLockTimeoutTypein interfaceorg.hibernate.dialect.lock.spi.LockingSupport.Metadata
-
getLockTimeout
public Timeout getLockTimeout(Connection connection, org.hibernate.engine.spi.SessionFactoryImplementor factory) - Specified by:
getLockTimeoutin interfaceorg.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
-
setLockTimeout
public void setLockTimeout(Timeout timeout, Connection connection, org.hibernate.engine.spi.SessionFactoryImplementor factory) - Specified by:
setLockTimeoutin interfaceorg.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
-