Top Description Fields Constructors Methods
org.jooq.impl

public final Class Internal

extends Object
Class Inheritance
Annotations
@Internal
Static Imports
org.jooq.impl.Tools.CONFIG, .Tools.CTX, .Tools.configuration, .Tools.nullSafe, org.jooq.tools.StringUtils.isBlank

A utility class that grants access to internal API, to be used only by generated code.

This type is for JOOQ INTERNAL USE only. Do not reference directly.

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private static final Lazy<ConverterContext>
private static final Lazy<Integer>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static final <T> Class<T[]>
arrayType(Class<T> type)

JDK agnostic abstraction over Class#arrayType() and Array#newInstance(Class, int).

public static final boolean
commercial()

Whether this is a commercial edition of jOOQ.

public static final boolean
commercial(Supplier<String> logMessage)

Whether this is a commercial edition of jOOQ, logging a warning message, if not.

public static final ConverterContext
public static final <R extends Record> @NotNull Check<R>
createCheck(Table<R> table, Name name, String condition)

Factory method for check constraints.

public static final <R extends Record> @NotNull Check<R>
createCheck(Table<R> table, Name name, String condition, boolean enforced)

Factory method for check constraints.

public static final <T> @NotNull Domain<T>
createDomain(Schema schema, Name name, DataType<T> type, Check<?>... checks)

Factory method for domain specifications.

public static final <T, U> @NotNull Domain<U>
createDomain(Schema schema, Name name, DataType<T> type, Converter<T, U> converter, Check<?>... checks)

Factory method for domain specifications.

public static final <T, U> @NotNull Domain<U>
createDomain(Schema schema, Name name, DataType<T> type, Binding<T, U> binding, Check<?>... checks)

Factory method for domain specifications.

public static final <T, X, U> @NotNull Domain<U>
createDomain(Schema schema, Name name, DataType<T> type, Converter<X, U> converter, Binding<T, X> binding, Check<?>... checks)

Factory method for domain specifications.

public static final <R extends Record, E extends EmbeddableRecord<E>> @NotNull TableField<R, E>
createEmbeddable(Name name, Class<E> recordType, Table<R> table, TableField<R, ?>... fields)

Deprecated as a consequence of TableField being deprecated.
Factory method for embeddable types.
public static final <R extends Record, E extends EmbeddableRecord<E>> @NotNull TableField<R, E>
createEmbeddable(Name name, Class<E> recordType, boolean replacesFields, Table<R> table, TableField<R, ?>... fields)

Deprecated as a consequence of TableField being deprecated.
Factory method for embeddable types.
public static final <R extends Record, U extends Record> @NotNull ForeignKey<R, U>
createForeignKey(UniqueKey<U> key, Table<R> table, TableField<R, ?>... fields)

Deprecated - 3.14.0 - [#9404] - Please re-generate your code.
Factory method for foreign keys.
public static final <R extends Record, U extends Record> @NotNull ForeignKey<R, U>
createForeignKey(Table<R> table, Name name, TableField<R, ?>[] fkFields, UniqueKey<U> uk, TableField<U, ?>[] ukFields, boolean enforced)

Deprecated as a consequence of TableField being deprecated.
Factory method for foreign keys.
public static final <R extends Record, U extends Record, ER extends EmbeddableRecord<ER>> @NotNull ForeignKey<R, U>
createForeignKey(Table<R> table, Name name, TableField<R, ER> fkEmbeddableField, UniqueKey<U> uk, TableField<U, ER> ukEmbeddableField, boolean enforced)

Deprecated as a consequence of TableField being deprecated.
Factory method for foreign keys.
public static final <R extends Record, U extends Record> @NotNull ForeignKey<R, U>
createForeignKey(UniqueKey<U> key, Table<R> table, String name, TableField<R, ?>... fields)

Deprecated for removal since 3.14. - 3.14.0 - [#9404] - Please re-generate your code.
Factory method for foreign keys.
public static final <R extends Record, U extends Record> @NotNull ForeignKey<R, U>
createForeignKey(UniqueKey<U> key, Table<R> table, String name, TableField<R, ?>[] fields, boolean enforced)

Deprecated for removal since 3.14. - 3.14.0 - [#9404] - Please re-generate your code.
Factory method for foreign keys.
public static final <R extends Record, T> @NotNull Identity<R, T>
createIdentity(Table<R> table, TableField<R, T> field)

Deprecated as a consequence of TableField being deprecated.
Factory method for identities.
public static final @NotNull Index
createIndex(Name name, Table<?> table, OrderField<?>[] sortFields, boolean unique)

Factory method for indexes.

public static final @NotNull Index
createIndex(String name, Table<?> table, OrderField<?>[] sortFields, boolean unique)

Deprecated for removal since 3.14. - 3.14.0 - [#9404] - Please re-generate your code.
Factory method for indexes.
public static final <T> @NotNull Parameter<T>
createParameter(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed)

Factory method for parameters.

public static final <T, U> @NotNull Parameter<U>
createParameter(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed, Converter<T, U> converter)

Factory method for parameters.

public static final <T, U> @NotNull Parameter<U>
createParameter(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed, Binding<T, U> binding)

Factory method for parameters.

public static final <T, X, U> @NotNull Parameter<U>
createParameter(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed, Converter<X, U> converter, Binding<T, X> binding)

Factory method for parameters.

public static final @NotNull Name
createPathAlias(Table<?> child, ForeignKey<?, ?> path)

Factory method for path aliases.

public static final <T extends Number> @NotNull Sequence<T>
createSequence(String name, Schema schema, DataType<T> type)

Factory method for sequences.

public static final <T extends Number> @NotNull Sequence<T>
createSequence(String name, Schema schema, DataType<T> type, Number startWith, Number incrementBy, Number minvalue, Number maxvalue, boolean cycle, Number cache)

Factory method for sequences.

public static final <R extends Record> @NotNull UniqueKey<R>
createUniqueKey(Table<R> table, TableField<R, ?>... fields)

Deprecated as a consequence of TableField being deprecated.
Factory method for unique keys.
public static final <R extends Record> @NotNull UniqueKey<R>
createUniqueKey(Table<R> table, Name name, TableField<R, ?>... fields)

Deprecated as a consequence of TableField being deprecated.
Factory method for unique keys.
public static final <R extends Record> @NotNull UniqueKey<R>
createUniqueKey(Table<R> table, Name name, TableField<R, ?>[] fields, boolean enforced)

Deprecated as a consequence of TableField being deprecated.
Factory method for unique keys.
public static final <R extends Record, ER extends EmbeddableRecord<ER>> @NotNull UniqueKey<R>
createUniqueKey(Table<R> table, Name name, TableField<R, ER> embeddableField, boolean enforced)

Deprecated as a consequence of TableField being deprecated.
Factory method for unique keys.
public static final <R extends Record> @NotNull UniqueKey<R>
createUniqueKey(Table<R> table, String name, TableField<R, ?>... fields)

Deprecated for removal since 3.14. - 3.14.0 - [#9404] - Please re-generate your code.
Factory method for unique keys.
public static final <R extends Record> @NotNull UniqueKey<R>
createUniqueKey(Table<R> table, String name, TableField<R, ?>[] fields, boolean enforced)

Deprecated for removal since 3.14. - 3.14.0 - [#9404] - Please re-generate your code.
Factory method for unique keys.
public static final <R extends Record, ER extends EmbeddableRecord<ER>> @NotNull TableField<R, ?>[]
fields(TableField<R, ER> embeddableField)

Deprecated for removal since 3.14. - [#11058] - 3.14.5 - Please re-generate your code.
Get the fields of an embeddable type.
public static final <R extends Record, ER extends EmbeddableRecord<ER>> @NotNull Row
fieldsRow(TableField<R, ER> embeddableField)

Deprecated for removal since 3.16. - [#12238] - 3.16.0 - Please re-generate your code.
Get the fields row of an embeddable type.
public static final int
hash(QueryPart part)

Return a non-negative hash code for a QueryPart, taking into account FindBugs' RV_ABSOLUTE_VALUE_OF_HASHCODE pattern

pack-priv static final int
hash0(Object object)

pack-priv static final <T> Field<T>
iadd(Field<T> lhs, Field<?> rhs)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> Field<T>
idiv(Field<T> lhs, Field<?> rhs)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> Field<T>
imul(Field<T> lhs, Field<?> rhs)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> Field<T>
ineg(Field<T> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> Field<T>
isub(Field<T> lhs, Field<?> rhs)

Deprecated as a consequence of Field being deprecated.
public static final int
javaVersion()

Get the Java version (relevant to jOOQ) as an int.

public static final void
requireCommercial(Supplier<String> logMessage)

Whether this is a commercial edition of jOOQ, throwing an exception with a message, if not.

public static final <R extends Record> Result<R>
result(R record)

Create an empty result from a Record using its row type.

public static final <T> Subscriber<T>
subscriber(Consumer<? super Subscription> subscription, Consumer<? super T> onNext, Consumer<? super Throwable> onError, Runnable onComplete)

Create a Subscriber from a set of lambdas.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONVERTER_SCOPEback to summary
private static final Lazy<ConverterContext> CONVERTER_SCOPE
JAVA_VERSIONback to summary
private static final Lazy<Integer> JAVA_VERSION

Constructor Detail

Internalback to summary
private Internal()

Method Detail

arrayTypeback to summary
public static final <T> Class<T[]> arrayType(Class<T> type)

JDK agnostic abstraction over Class#arrayType() and Array#newInstance(Class, int).

Annotations
@SuppressWarnings:unchecked, unused
commercialback to summary
public static final boolean commercial()

Whether this is a commercial edition of jOOQ.

commercialback to summary
public static final boolean commercial(Supplier<String> logMessage)

Whether this is a commercial edition of jOOQ, logging a warning message, if not.

converterContextback to summary
public static final ConverterContext converterContext()
createCheckback to summary
public static final <R extends Record> @NotNull Check<R> createCheck(Table<R> table, Name name, String condition)

Factory method for check constraints.

Annotations
@NotNull
createCheckback to summary
public static final <R extends Record> @NotNull Check<R> createCheck(Table<R> table, Name name, String condition, boolean enforced)

Factory method for check constraints.

Annotations
@NotNull
createDomainback to summary
public static final <T> @NotNull Domain<T> createDomain(Schema schema, Name name, DataType<T> type, Check<?>... checks)

Factory method for domain specifications.

Annotations
@NotNull
createDomainback to summary
public static final <T, U> @NotNull Domain<U> createDomain(Schema schema, Name name, DataType<T> type, Converter<T, U> converter, Check<?>... checks)

Factory method for domain specifications.

Annotations
@NotNull
createDomainback to summary
public static final <T, U> @NotNull Domain<U> createDomain(Schema schema, Name name, DataType<T> type, Binding<T, U> binding, Check<?>... checks)

Factory method for domain specifications.

Annotations
@NotNull
createDomainback to summary
public static final <T, X, U> @NotNull Domain<U> createDomain(Schema schema, Name name, DataType<T> type, Converter<X, U> converter, Binding<T, X> binding, Check<?>... checks)

Factory method for domain specifications.

Annotations
@NotNull
createEmbeddableback to summary
public static final <R extends Record, E extends EmbeddableRecord<E>> @NotNull TableField<R, E> createEmbeddable(Name name, Class<E> recordType, Table<R> table, TableField<R, ?>... fields)

Deprecated

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

Factory method for embeddable types.

Annotations
@SafeVarargs
@NotNull
createEmbeddableback to summary
public static final <R extends Record, E extends EmbeddableRecord<E>> @NotNull TableField<R, E> createEmbeddable(Name name, Class<E> recordType, boolean replacesFields, Table<R> table, TableField<R, ?>... fields)

Deprecated

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

Factory method for embeddable types.

Annotations
@SafeVarargs
@NotNull
createForeignKeyback to summary
public static final <R extends Record, U extends Record> @NotNull ForeignKey<R, U> createForeignKey(UniqueKey<U> key, Table<R> table, TableField<R, ?>... fields)

Deprecated

- 3.14.0 - [#9404] - Please re-generate your code.

Factory method for foreign keys.

Annotations
@Deprecated
@NotNull
@SafeVarargs
createForeignKeyback to summary
public static final <R extends Record, U extends Record> @NotNull ForeignKey<R, U> createForeignKey(Table<R> table, Name name, TableField<R, ?>[] fkFields, UniqueKey<U> uk, TableField<U, ?>[] ukFields, boolean enforced)

Deprecated

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

Factory method for foreign keys.

Annotations
@NotNull
createForeignKeyback to summary
public static final <R extends Record, U extends Record, ER extends EmbeddableRecord<ER>> @NotNull ForeignKey<R, U> createForeignKey(Table<R> table, Name name, TableField<R, ER> fkEmbeddableField, UniqueKey<U> uk, TableField<U, ER> ukEmbeddableField, boolean enforced)

Deprecated

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

Factory method for foreign keys.

Annotations
@NotNull
createForeignKeyback to summary
public static final <R extends Record, U extends Record> @NotNull ForeignKey<R, U> createForeignKey(UniqueKey<U> key, Table<R> table, String name, TableField<R, ?>... fields)

Deprecated

for removal since 3.14.

- 3.14.0 - [#9404] - Please re-generate your code.

Factory method for foreign keys.

Annotations
@NotNull
@SafeVarargs
@Deprecated
since:3.14
forRemoval:true
createForeignKeyback to summary
public static final <R extends Record, U extends Record> @NotNull ForeignKey<R, U> createForeignKey(UniqueKey<U> key, Table<R> table, String name, TableField<R, ?>[] fields, boolean enforced)

Deprecated

for removal since 3.14.

- 3.14.0 - [#9404] - Please re-generate your code.

Factory method for foreign keys.

Annotations
@NotNull
@Deprecated
since:3.14
forRemoval:true
createIdentityback to summary
public static final <R extends Record, T> @NotNull Identity<R, T> createIdentity(Table<R> table, TableField<R, T> field)

Deprecated

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

Factory method for identities.

Annotations
@NotNull
createIndexback to summary
public static final @NotNull Index createIndex(Name name, Table<?> table, OrderField<?>[] sortFields, boolean unique)

Factory method for indexes.

Annotations
@NotNull
createIndexback to summary
public static final @NotNull Index createIndex(String name, Table<?> table, OrderField<?>[] sortFields, boolean unique)

Deprecated

for removal since 3.14.

- 3.14.0 - [#9404] - Please re-generate your code.

Factory method for indexes.

Annotations
@NotNull
@Deprecated
since:3.14
forRemoval:true
createParameterback to summary
public static final <T> @NotNull Parameter<T> createParameter(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed)

Factory method for parameters.

Annotations
@NotNull
createParameterback to summary
public static final <T, U> @NotNull Parameter<U> createParameter(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed, Converter<T, U> converter)

Factory method for parameters.

Annotations
@NotNull
createParameterback to summary
public static final <T, U> @NotNull Parameter<U> createParameter(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed, Binding<T, U> binding)

Factory method for parameters.

Annotations
@NotNull
createParameterback to summary
public static final <T, X, U> @NotNull Parameter<U> createParameter(String name, DataType<T> type, boolean isDefaulted, boolean isUnnamed, Converter<X, U> converter, Binding<T, X> binding)

Factory method for parameters.

Annotations
@NotNull
@SuppressWarnings:unchecked
createPathAliasback to summary
public static final @NotNull Name createPathAlias(Table<?> child, ForeignKey<?, ?> path)

Factory method for path aliases.

Annotations
@NotNull
createSequenceback to summary
public static final <T extends Number> @NotNull Sequence<T> createSequence(String name, Schema schema, DataType<T> type)

Factory method for sequences.

Annotations
@NotNull
createSequenceback to summary
public static final <T extends Number> @NotNull Sequence<T> createSequence(String name, Schema schema, DataType<T> type, Number startWith, Number incrementBy, Number minvalue, Number maxvalue, boolean cycle, Number cache)

Factory method for sequences.

Annotations
@NotNull
createUniqueKeyback to summary
public static final <R extends Record> @NotNull UniqueKey<R> createUniqueKey(Table<R> table, TableField<R, ?>... fields)

Deprecated

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

Factory method for unique keys.

Annotations
@NotNull
@SafeVarargs
createUniqueKeyback to summary
public static final <R extends Record> @NotNull UniqueKey<R> createUniqueKey(Table<R> table, Name name, TableField<R, ?>... fields)

Deprecated

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

Factory method for unique keys.

Annotations
@NotNull
@SafeVarargs
createUniqueKeyback to summary
public static final <R extends Record> @NotNull UniqueKey<R> createUniqueKey(Table<R> table, Name name, TableField<R, ?>[] fields, boolean enforced)

Deprecated

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

Factory method for unique keys.

Annotations
@NotNull
createUniqueKeyback to summary
public static final <R extends Record, ER extends EmbeddableRecord<ER>> @NotNull UniqueKey<R> createUniqueKey(Table<R> table, Name name, TableField<R, ER> embeddableField, boolean enforced)

Deprecated

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

Factory method for unique keys.

Annotations
@NotNull
createUniqueKeyback to summary
public static final <R extends Record> @NotNull UniqueKey<R> createUniqueKey(Table<R> table, String name, TableField<R, ?>... fields)

Deprecated

for removal since 3.14.

- 3.14.0 - [#9404] - Please re-generate your code.

Factory method for unique keys.

Annotations
@NotNull
@SafeVarargs
@Deprecated
since:3.14
forRemoval:true
createUniqueKeyback to summary
public static final <R extends Record> @NotNull UniqueKey<R> createUniqueKey(Table<R> table, String name, TableField<R, ?>[] fields, boolean enforced)

Deprecated

for removal since 3.14.

- 3.14.0 - [#9404] - Please re-generate your code.

Factory method for unique keys.

Annotations
@NotNull
@Deprecated
since:3.14
forRemoval:true
fieldsback to summary
public static final <R extends Record, ER extends EmbeddableRecord<ER>> @NotNull TableField<R, ?>[] fields(TableField<R, ER> embeddableField)

Deprecated

for removal since 3.14.

- [#11058] - 3.14.5 - Please re-generate your code.

Get the fields of an embeddable type.

Annotations
@NotNull
@Deprecated
since:3.14
forRemoval:true
fieldsRowback to summary
public static final <R extends Record, ER extends EmbeddableRecord<ER>> @NotNull Row fieldsRow(TableField<R, ER> embeddableField)

Deprecated

for removal since 3.16.

- [#12238] - 3.16.0 - Please re-generate your code.

Get the fields row of an embeddable type.

Annotations
@NotNull
@Deprecated
since:3.16
forRemoval:true
hashback to summary
public static final int hash(QueryPart part)

Return a non-negative hash code for a QueryPart, taking into account FindBugs' RV_ABSOLUTE_VALUE_OF_HASHCODE pattern

hash0back to summary
pack-priv static final int hash0(Object object)
iaddback to summary
pack-priv static final <T> Field<T> iadd(Field<T> lhs, Field<?> rhs)

Deprecated

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

Annotations
@SuppressWarnings:unchecked
@Support
idivback to summary
pack-priv static final <T> Field<T> idiv(Field<T> lhs, Field<?> rhs)

Deprecated

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

Annotations
@SuppressWarnings:unchecked
@Support
imulback to summary
pack-priv static final <T> Field<T> imul(Field<T> lhs, Field<?> rhs)

Deprecated

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

Annotations
@SuppressWarnings:unchecked
@Support
inegback to summary
pack-priv static final <T> Field<T> ineg(Field<T> field)

Deprecated

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

Annotations
@Support
isubback to summary
pack-priv static final <T> Field<T> isub(Field<T> lhs, Field<?> rhs)

Deprecated

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

Annotations
@SuppressWarnings:unchecked
@Support
javaVersionback to summary
public static final int javaVersion()

Get the Java version (relevant to jOOQ) as an int.

Supported versions are:

  • 8
  • 11
  • 17
  • 21
requireCommercialback to summary
public static final void requireCommercial(Supplier<String> logMessage) throws DataAccessException

Whether this is a commercial edition of jOOQ, throwing an exception with a message, if not.

resultback to summary
public static final <R extends Record> Result<R> result(R record)

Create an empty result from a Record using its row type.

subscriberback to summary
public static final <T> Subscriber<T> subscriber(Consumer<? super Subscription> subscription, Consumer<? super T> onNext, Consumer<? super Throwable> onError, Runnable onComplete)

Create a Subscriber from a set of lambdas.

This is used for internal purposes and thus subject for change.