Module org.jooq
Package org.jooq

Interface GeneratorContext<R extends Record,X extends Table<R>,T>

All Superinterfaces:
Scope

public interface GeneratorContext<R extends Record,X extends Table<R>,T> extends Scope
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 Scope.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 Details

    • renderTime

      @NotNull @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.
    • table

      @Nullable X table()
      The target table whose contents are being generated, or null when the table is unknown / not applicable.
    • field

      @Nullable @Nullable Field<T> field()
      The target field whose contents are being generated, or null when the field is unknown / not applicable.
    • statementType

      @Nullable @Nullable GeneratorStatementType statementType()
      The statement type in which the Generator is being invoked, or null when the statement type is unknown / not applicable.