Enum Class GenerationTiming

java.lang.Object
java.lang.Enum<GenerationTiming>
org.hibernate.tuple.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.
Replaced by EventType as id-generation has been redefined using the new broader generation approach. For 7.0, this is kept around to support hbm.xml mappings and will be removed in 8.0 once we finally drop hbm.xml support.
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 Constants
    Enum Constant
    Description
    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.
    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 Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the equivalent set of event types
    boolean
    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 SQL insert statements?
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Does value generation happen for SQL update statements?
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    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.
    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.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NEVER

      public static final GenerationTiming NEVER
      Deprecated, for removal: This API element is subject to removal in a future version.
      Value generation that never occurs.
    • INSERT

      public static final GenerationTiming 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

      public static final GenerationTiming 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

      public static final GenerationTiming 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

      public 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.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GenerationTiming valueOf(String name)
      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 name
      NullPointerException - 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 SQL insert statements?
    • includesUpdate

      public boolean includesUpdate()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Does value generation happen for SQL update statements?
    • includes

      public boolean includes(GenerationTiming timing)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • parseFromName

      public static GenerationTiming parseFromName(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getEventTypes

      public EnumSet<EventType> getEventTypes()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the equivalent set of event types