Package org.hibernate.boot.jaxb.mapping
Enum Class GenerationTiming
- All Implemented Interfaces:
Serializable
,Comparable<GenerationTiming>
,Constable
Represents the timing of
value generation
in XML mappings. That is, whether the value is generated onINSERT,
UPDATE or both.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionValue generation that occurs when a row is inserted or updated in the database.Value generation that occurs when a row is inserted in the database.Value generation that never occurs.Value generation that occurs when a row is updated in the database. -
Method Summary
Modifier and TypeMethodDescriptionReturn the equivalent set of event typesboolean
includes
(GenerationTiming timing) boolean
Does value generation happen for SQLinsert
statements?boolean
Does value generation happen for SQLupdate
statements?static GenerationTiming
parseFromName
(String name) static GenerationTiming
Returns the enum constant of this class with the specified name.static GenerationTiming[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
Value generation that never occurs. -
INSERT
Value generation that occurs when a row is inserted in the database. -
UPDATE
Value generation that occurs when a row is updated in the database. -
ALWAYS
Value generation that occurs when a row is inserted or updated in the database.
-
-
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
-
includesInsert
public boolean includesInsert()Does value generation happen for SQLinsert
statements? -
includesUpdate
public boolean includesUpdate()Does value generation happen for SQLupdate
statements? -
includes
-
parseFromName
-
getEventTypes
Return the equivalent set of event types
-