- All Implemented Interfaces:
Serializable
,Comparable<GeneratorStatementType>
,Constable
The statement type of a
GeneratorContext
.
Generator
implementations may choose to execute different logic based
on the statement type. One example are AuditProvider
fields, which
can distinguish between audit information on inserted or updated records.
This API is part of a commercial only feature. To use this feature, please use the jOOQ Professional Edition or the jOOQ Enterprise Edition.
- Author:
- Lukas Eder
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratorStatementType
Returns the enum constant of this class with the specified name.static GeneratorStatementType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSERT
TheGenerator
is being invoked in anInsert
context, or in aMerge
'sINSERT
clause context.This applies to
QOM.GenerationOption.STORED
only. -
UPDATE
TheGenerator
is being invoked in anUpdate
context, or in anInsert
'sON DUPLICATE KEY UPDATE
clause,ON CONFLICT DO UPDATE
clause context, or in aMerge
'sUPDATE
clause context.This applies to
QOM.GenerationOption.STORED
only. -
SELECT
-
-
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
-