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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJDBC generated keys can return arbitrary generated columns, not only an identity identifier.Native SQL can return arbitrary generated values from an insert.Native insert returning can include the database row identifier.Native SQL can return arbitrary generated values from an update. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static GeneratedValuesSupport.Capability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSERT_RETURNING
Native SQL can return arbitrary generated values from an insert. -
UPDATE_RETURNING
Native SQL can return arbitrary generated values from an update. -
INSERT_RETURNING_ROW_ID
Native insert returning can include the database row identifier. -
ARBITRARY_GENERATED_KEYS
JDBC generated keys can return arbitrary generated columns, not only an identity identifier.
-
-
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
-