Enum Class GeneratedValuesSupport.Capability

java.lang.Object
java.lang.Enum<GeneratedValuesSupport.Capability>
org.hibernate.dialect.generated.spi.GeneratedValuesSupport.Capability
All Implemented Interfaces:
Serializable, Comparable<GeneratedValuesSupport.Capability>, Constable
Enclosing class:
GeneratedValuesSupport

public static enum GeneratedValuesSupport.Capability extends Enum<GeneratedValuesSupport.Capability>
Independently variable generated-value retrieval capabilities.
Since:
8.0
  • Enum Constant Details

    • INSERT_RETURNING

      public static final GeneratedValuesSupport.Capability INSERT_RETURNING
      Native SQL can return arbitrary generated values from an insert.
    • UPDATE_RETURNING

      public static final GeneratedValuesSupport.Capability UPDATE_RETURNING
      Native SQL can return arbitrary generated values from an update.
    • INSERT_RETURNING_ROW_ID

      public static final GeneratedValuesSupport.Capability INSERT_RETURNING_ROW_ID
      Native insert returning can include the database row identifier.
    • ARBITRARY_GENERATED_KEYS

      public static final GeneratedValuesSupport.Capability ARBITRARY_GENERATED_KEYS
      JDBC generated keys can return arbitrary generated columns, not only an identity identifier.
  • Method Details

    • values

      public static GeneratedValuesSupport.Capability[] 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 GeneratedValuesSupport.Capability 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