DataType#generatedAlwaysAs(Generator) to
implement dynamic, client side computed columns, i.e. computed columns with
GenerationLocation#CLIENT.
There are two types of client side computed columns:
GenerationOption#STORED: The computation is performed when
writing to a record via Insert, Update, or MergeGenerationOption#VIRTUAL: The computation is performed when
reading a record via Select, or the RETURNING clause of
Insert, Update, Delete.
Depending on the type of client side computed column, the exact time when the
computation is performed may differ, practically. It is not specified, when
it happens, but users may assume that it happens only once per query
rendering and Field expression which references a Generator,
independently of how many times the resulting expression is repeated in the
resulting SQL query.
This API is part of a commercial only feature. To use this feature, please use the jOOQ Professional Edition or the jOOQ Enterprise Edition.
| Modifier and Type | Method and Description |
|---|---|
| public default boolean | supports(GeneratorStatementType
The statement type. statementType)Whether this generator supports a given statement type. |
| supports | back to summary |
|---|---|
| public default boolean supports(GeneratorStatementType statementType) Whether this generator supports a given statement type.
Implementations may choose to deactivate themselves for some statement
types, e.g. if they want to be invoked only for
| |