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.Level

    Nested classes/interfaces inherited from interface org.hibernate.dialect.lock.spi.LockingSupport

    org.hibernate.dialect.lock.spi.LockingSupport.Metadata
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.hibernate.dialect.lock.spi.LockingSupport
     

    Fields inherited from interface org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy

    NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    GaussDBLockingSupport(boolean supportsNoWait, boolean supportsSkipLocked)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
     
    getLockTimeout(Connection connection, org.hibernate.engine.spi.SessionFactoryImplementor factory)
     
    org.hibernate.dialect.lock.spi.LockTimeoutType
     
    org.hibernate.dialect.lock.spi.LockingSupport.Metadata
     
    org.hibernate.dialect.lock.spi.OuterJoinLockingType
     
    org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy.Level
     
    org.hibernate.dialect.RowLockStrategy
     
    void
    setLockTimeout(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, wait

    Methods 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:
      getMetadata in interface org.hibernate.dialect.lock.spi.LockingSupport
    • getWriteRowLockStrategy

      public org.hibernate.dialect.RowLockStrategy getWriteRowLockStrategy()
      Specified by:
      getWriteRowLockStrategy in interface org.hibernate.dialect.lock.spi.LockingSupport.Metadata
    • getOuterJoinLockingType

      public org.hibernate.dialect.lock.spi.OuterJoinLockingType getOuterJoinLockingType()
      Specified by:
      getOuterJoinLockingType in interface org.hibernate.dialect.lock.spi.LockingSupport.Metadata
    • getConnectionLockTimeoutStrategy

      public org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy getConnectionLockTimeoutStrategy()
      Specified by:
      getConnectionLockTimeoutStrategy in interface org.hibernate.dialect.lock.spi.LockingSupport
    • getSupportedLevel

      public org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy.Level getSupportedLevel()
      Specified by:
      getSupportedLevel in interface org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
    • getLockTimeoutType

      public org.hibernate.dialect.lock.spi.LockTimeoutType getLockTimeoutType(Timeout timeout)
      Specified by:
      getLockTimeoutType in interface org.hibernate.dialect.lock.spi.LockingSupport.Metadata
    • getLockTimeout

      public Timeout getLockTimeout(Connection connection, org.hibernate.engine.spi.SessionFactoryImplementor factory)
      Specified by:
      getLockTimeout in interface org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
    • setLockTimeout

      public void setLockTimeout(Timeout timeout, Connection connection, org.hibernate.engine.spi.SessionFactoryImplementor factory)
      Specified by:
      setLockTimeout in interface org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy