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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIn addition toSUPPORTED, setting [org.hibernate.Timeouts#NO_WAIT no-wait] is also supported.Setting lock timeouts on the JDBC connection is not supported.Setting [org.hibernate.Timeouts#isRealTimeout real] lock timeouts on the JDBC connection is supported. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ConnectionLockTimeoutStrategy.Level[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Setting lock timeouts on the JDBC connection is not supported. -
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
In addition toSUPPORTED, setting [org.hibernate.Timeouts#NO_WAIT no-wait] is also supported.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-