Enum Class IdentityValueRetrieval

java.lang.Object
java.lang.Enum<IdentityValueRetrieval>
org.hibernate.dialect.identity.spi.IdentityValueRetrieval
All Implemented Interfaces:
Serializable, Comparable<IdentityValueRetrieval>, Constable

@SPI public enum IdentityValueRetrieval extends Enum<IdentityValueRetrieval>

Selects how Hibernate retrieves an identifier generated by an identity column when generated-key retrieval is enabled.

This choice applies only to identity-generated identifiers. It does not describe retrieval of arbitrary generated columns or the generic post-mutation select performed when Hibernate already knows how to locate the affected row.

Since:
8.0
  • Enum Constant Details

  • Method Details

    • values

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