Enum Class ConnectionLockTimeoutStrategy.Level

java.lang.Object
java.lang.Enum<ConnectionLockTimeoutStrategy.Level>
org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy.Level
All Implemented Interfaces:
Serializable, Comparable<ConnectionLockTimeoutStrategy.Level>, Constable
Enclosing interface:
ConnectionLockTimeoutStrategy

@SPI(USE) public static enum ConnectionLockTimeoutStrategy.Level extends Enum<ConnectionLockTimeoutStrategy.Level>
Indicates a Dialect's level of support for lock timeouts on the JDBC connection.
Since:
8.0
API Note:
[org.hibernate.Timeouts#SKIP_LOCKED skip-locked] is never supported.
  • Enum Constant Details

    • NONE

      public static final ConnectionLockTimeoutStrategy.Level NONE
      Setting lock timeouts on the JDBC connection is not supported.
    • SUPPORTED

      public static final ConnectionLockTimeoutStrategy.Level SUPPORTED
      Setting [org.hibernate.Timeouts#isRealTimeout real] lock timeouts on the JDBC connection is supported. Additionally, setting [org.hibernate.Timeouts#WAIT_FOREVER wait-forever] is generally supported.
    • EXTENDED

      public static final ConnectionLockTimeoutStrategy.Level EXTENDED
      In addition to SUPPORTED, setting [org.hibernate.Timeouts#NO_WAIT no-wait] is also supported.
  • Method Details

    • values

      public static ConnectionLockTimeoutStrategy.Level[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ConnectionLockTimeoutStrategy.Level valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null