Top Description Methods
org.jooq

public Interface GeneratorContext<R extends org.jooq.Record, X extends org.jooq.Table<R>, T>

extends Scope
Known Direct Implementers
org.jooq.impl.DefaultGeneratorContext
Imports
java.time.Instant, org.jetbrains.annotations.NotNull, .Nullable

A GeneratorContext is an argument object that is passed to a Generator when generating client side computed columns.

It is a Scope that models the short lived lifecycle of the generation of the client side computed column. Its data() map is inherited from the parent Context scope, if available, or it is an empty map in case no rendering Context was available.

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

Method Summary

Modifier and TypeMethod and Description
public @Nullable Field<T>
field()

Deprecated as a consequence of Field being deprecated.
The target field whose contents are being generated, or null when the field is unknown / not applicable.
public @NotNull Instant
renderTime()

The time, according to Configuration#clock(), when the rendering Context was created, or when this GeneratorContext was created in case no rendering Context was available.

public @Nullable GeneratorStatementType
statementType()

The statement type in which the Generator is being invoked, or null when the statement type is unknown / not applicable.

public X
table()

The target table whose contents are being generated, or null when the table is unknown / not applicable.

Inherited from org.jooq.Scope:
configurationcreationTimedatadatadatadialectdslfamilysettings

Method Detail

fieldback to summary
public @Nullable Field<T> field()

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

The target field whose contents are being generated, or null when the field is unknown / not applicable.

Annotations
@Nullable
renderTimeback to summary
public @NotNull Instant renderTime()

The time, according to Configuration#clock(), when the rendering Context was created, or when this GeneratorContext was created in case no rendering Context was available.

Annotations
@NotNull
statementTypeback to summary
public @Nullable GeneratorStatementType statementType()

The statement type in which the Generator is being invoked, or null when the statement type is unknown / not applicable.

Annotations
@Nullable
tableback to summary
public X table()

The target table whose contents are being generated, or null when the table is unknown / not applicable.

Annotations
@Nullable