Package org.hibernate.tuple
Enum Class GenerationTiming
- All Implemented Interfaces:
Serializable,Comparable<GenerationTiming>,Constable
@Deprecated(since="6.2",
forRemoval=true)
public enum GenerationTiming
extends Enum<GenerationTiming>
Deprecated, for removal: This API element is subject to removal in a future version.
Represents the timing of value generation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Value generation that occurs when a row is inserted or updated in the database.Deprecated, for removal: This API element is subject to removal in a future version.Value generation that occurs when a row is inserted in the database.Deprecated, for removal: This API element is subject to removal in a future version.Value generation that never occurs.Deprecated, for removal: This API element is subject to removal in a future version.Value generation that occurs when a row is updated in the database. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Return the equivalent set of event typesbooleanincludes(GenerationTiming timing) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Does value generation happen for SQLinsertstatements?booleanDeprecated, for removal: This API element is subject to removal in a future version.Does value generation happen for SQLupdatestatements?static GenerationTimingparseFromName(String name) Deprecated, for removal: This API element is subject to removal in a future version.static GenerationTimingDeprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name.static GenerationTiming[]values()Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
Deprecated, for removal: This API element is subject to removal in a future version.Value generation that never occurs. -
INSERT
Deprecated, for removal: This API element is subject to removal in a future version.Value generation that occurs when a row is inserted in the database. -
UPDATE
Deprecated, for removal: This API element is subject to removal in a future version.Value generation that occurs when a row is updated in the database. -
ALWAYS
Deprecated, for removal: This API element is subject to removal in a future version.Value generation that occurs when a row is inserted or updated in the database.
-
-
Method Details
-
values
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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
-
includesInsert
public boolean includesInsert()Deprecated, for removal: This API element is subject to removal in a future version.Does value generation happen for SQLinsertstatements? -
includesUpdate
public boolean includesUpdate()Deprecated, for removal: This API element is subject to removal in a future version.Does value generation happen for SQLupdatestatements? -
includes
Deprecated, for removal: This API element is subject to removal in a future version. -
parseFromName
Deprecated, for removal: This API element is subject to removal in a future version. -
getEventTypes
Deprecated, for removal: This API element is subject to removal in a future version.Return the equivalent set of event types
-
EventTypeas id-generation has been redefined using the new broader generation approach. For 7.0, this is kept around to supporthbm.xmlmappings and will be removed in 8.0 once we finally drophbm.xmlsupport.