Top Description Fields Constructors Methods
org.jooq

public final Enum GeneratorStatementType

extends Enum<GeneratorStatementType>
Class Inheritance
Imports
org.jooq.impl.QOM.GenerationOption

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

Field Summary

Modifier and TypeField and Description
public static final GeneratorStatementType
INSERT

The Generator is being invoked in an Insert context, or in a Merge's INSERT clause context.

public static final GeneratorStatementType
SELECT

The Generator is being invoked in a Select context, or an Insert's, Update's, or Delete's RETURNING clause context.

public static final GeneratorStatementType
UPDATE

The Generator is being invoked in an Update context, or in an Insert's ON DUPLICATE KEY UPDATE clause, ON CONFLICT DO UPDATE clause context, or in a Merge's UPDATE clause context.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static GeneratorStatementType
public static GeneratorStatementType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSERTback to summary
public static final GeneratorStatementType INSERT

The Generator is being invoked in an Insert context, or in a Merge's INSERT clause context.

This applies to GenerationOption#STORED only.

SELECTback to summary
public static final GeneratorStatementType SELECT

The Generator is being invoked in a Select context, or an Insert's, Update's, or Delete's RETURNING clause context.

This applies to GenerationOption#VIRTUAL only.

UPDATEback to summary
public static final GeneratorStatementType UPDATE

The Generator is being invoked in an Update context, or in an Insert's ON DUPLICATE KEY UPDATE clause, ON CONFLICT DO UPDATE clause context, or in a Merge's UPDATE clause context.

This applies to GenerationOption#STORED only.

Constructor Detail

GeneratorStatementTypeback to summary
private GeneratorStatementType()

Method Detail

valueOfback to summary
public static GeneratorStatementType valueOf(String name)
valuesback to summary
public static GeneratorStatementType[] values()