Enum Class JdbcLockStrategy

java.lang.Object
java.lang.Enum<JdbcLockStrategy>
org.hibernate.sql.exec.spi.JdbcLockStrategy
All Implemented Interfaces:
Serializable, Comparable<JdbcLockStrategy>, Constable

public enum JdbcLockStrategy extends Enum<JdbcLockStrategy>
The strategy to use for applying locks to a JdbcOperationQuerySelect.
  • Enum Constant Details

    • AUTO

      public static final JdbcLockStrategy AUTO
      Use a dialect-specific check to determine how to apply locks.
    • FOLLOW_ON

      public static final JdbcLockStrategy FOLLOW_ON
      Use follow-on locking.
    • NONE

      public static final JdbcLockStrategy NONE
      Do not apply locks.
  • Method Details

    • values

      public static JdbcLockStrategy[] 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 JdbcLockStrategy 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