Enum Class GenerationTiming

java.lang.Object
java.lang.Enum<GenerationTiming>
org.hibernate.boot.jaxb.mapping.GenerationTiming
All Implemented Interfaces:
Serializable, Comparable<GenerationTiming>, Constable

public enum GenerationTiming extends Enum<GenerationTiming>
Represents the timing of value generation in XML mappings. That is, whether the value is generated onINSERT, UPDATE or both.
  • Enum Constant Details

    • NEVER

      public static final GenerationTiming NEVER
      Value generation that never occurs.
    • INSERT

      public static final GenerationTiming INSERT
      Value generation that occurs when a row is inserted in the database.
    • UPDATE

      public static final GenerationTiming UPDATE
      Value generation that occurs when a row is updated in the database.
    • ALWAYS

      public static final GenerationTiming ALWAYS
      Value generation that occurs when a row is inserted or updated in the database.
  • Method Details

    • values

      public static GenerationTiming[] 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 GenerationTiming 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
    • includesInsert

      public boolean includesInsert()
      Does value generation happen for SQL insert statements?
    • includesUpdate

      public boolean includesUpdate()
      Does value generation happen for SQL update statements?
    • includes

      public boolean includes(GenerationTiming timing)
    • parseFromName

      public static GenerationTiming parseFromName(String name)
    • getEventTypes

      public EnumSet<EventType> getEventTypes()
      Return the equivalent set of event types