Top Description Fields Constructors Methods
org.jooq.impl

pack-priv final Class DefaultGenerator<R extends org.jooq.Record, X extends org.jooq.Table<R>, T>

extends Object
implements Generator<R extends Record, X extends Table<R>, T>
Class Inheritance
All Implemented Interfaces
org.jooq.Generator, java.io.Serializable, java.util.function.Function
Imports
java.util.Map, java.util.concurrent.ConcurrentHashMap, org.jooq.Field, .Generator, .GeneratorContext, .GeneratorStatementType, .Record, .Table, org.jooq.impl.Tools.SimpleDataKey

A Generator proxy implementing "exactly once" computation semantics.
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv final Generator<R, X, T>

Constructor Summary

AccessConstructor and Description
pack-priv
DefaultGenerator(Generator<R, X, T> delegate)

Method Summary

Modifier and TypeMethod and Description
public final Field<T>
apply(GeneratorContext<R, X, T>
the function argument
t
)

Implements java.util.function.Function.apply.

Deprecated as a consequence of Field being deprecated.
Applies this function to the given argument.
public final boolean
supports(GeneratorStatementType
The statement type.
statementType
)

Overrides default org.jooq.Generator.supports.

Whether this generator supports a given statement type.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
pack-priv final Generator<R, X, T> delegate

Constructor Detail

DefaultGeneratorback to summary
pack-priv DefaultGenerator(Generator<R, X, T> delegate)

Method Detail

applyback to summary
public final Field<T> apply(GeneratorContext<R, X, T> t)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Deprecated

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

Applies this function to the given argument.

Parameters
t:GeneratorContext<R, X, T>

the function argument

Returns:Field<T>

the function result

Annotations
@Override
supportsback to summary
public final boolean supports(GeneratorStatementType statementType)

Overrides default org.jooq.Generator.supports.

Doc from org.jooq.Generator.supports.

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 GeneratorStatementType#INSERT.

Parameters
statementType:GeneratorStatementType

The statement type.

Annotations
@Override