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 typesboolean
includes
(GenerationTiming timing) Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Does value generation happen for SQLinsert
statements?boolean
Deprecated, for removal: This API element is subject to removal in a future version.Does value generation happen for SQLupdate
statements?static GenerationTiming
parseFromName
(String name) Deprecated, for removal: This API element is subject to removal in a future version.static GenerationTiming
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.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 SQLinsert
statements? -
includesUpdate
public boolean includesUpdate()Deprecated, for removal: This API element is subject to removal in a future version.Does value generation happen for SQLupdate
statements? -
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
-
EventType
as id-generation has been redefined using the new broader generation approach. For 7.0, this is kept around to supporthbm.xml
mappings and will be removed in 8.0 once we finally drophbm.xml
support.