Module org.jooq
Package org.jooq.impl

Class Internal

java.lang.Object
org.jooq.impl.Internal

@Internal public final class Internal extends Object
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
  • Method Details Link icon

    • createUDTPathTableField Link icon

      public static final <R extends Record, T, P extends UDTPathTableField<R, ?, T>> P createUDTPathTableField(Name name, DataType<? extends T> type, Table<R> table, Class<P> returnType)
    • createUDTPathTableField Link icon

      public static final <R extends Record, T, P extends UDTPathTableField<R, ?, T>> P createUDTPathTableField(Name name, DataType<? extends T> type, Table<R> table, String comment, Class<P> returnType)
    • createUDTPathTableField Link icon

      public static final <R extends Record, T, U, P extends UDTPathTableField<R, ?, U>> P createUDTPathTableField(Name name, DataType<? extends T> type, Table<R> table, String comment, Class<P> returnType, Converter<T,U> converter)
    • createUDTPathTableField Link icon

      public static final <R extends Record, T, U, P extends UDTPathTableField<R, ?, U>> P createUDTPathTableField(Name name, DataType<? extends T> type, Table<R> table, String comment, Class<P> returnType, Binding<T,U> binding)
    • createUDTPathTableField Link icon

      public static final <R extends Record, T, X, U, P extends UDTPathTableField<R, ?, U>> P createUDTPathTableField(Name name, DataType<? extends T> type, Table<R> table, String comment, Class<P> returnType, Converter<X,U> converter, Binding<T,X> binding)
    • createUDTPathTableField Link icon

      public static final <R extends Record, TR extends Table<R>, T, P extends UDTPathTableField<R, ?, T>> P createUDTPathTableField(Name name, DataType<? extends T> type, TR table, String comment, Class<P> returnType, Generator<R,TR,T> generator)
    • createUDTPathTableField Link icon

      public static final <R extends Record, TR extends Table<R>, T, U, P extends UDTPathTableField<R, ?, U>> P createUDTPathTableField(Name name, DataType<? extends T> type, TR table, String comment, Class<P> returnType, Converter<T,U> converter, Generator<R,TR,U> generator)
    • createUDTPathTableField Link icon

      public static final <R extends Record, TR extends Table<R>, T, U, P extends UDTPathTableField<R, ?, U>> P createUDTPathTableField(Name name, DataType<? extends T> type, TR table, String comment, Class<P> returnType, Binding<T,U> binding, Generator<R,TR,U> generator)
    • createUDTPathTableField Link icon

      public static final <R extends Record, TR extends Table<R>, T, X, U, P extends UDTPathTableField<R, ?, U>> P createUDTPathTableField(Name name, DataType<? extends T> type, TR table, String comment, Class<P> returnType, Converter<X,U> converter, Binding<T,X> binding, Generator<R,TR,U> generator)
    • createUDTPathField Link icon

      public static final <T, P extends UDTField<?, T>> P createUDTPathField(Name name, DataType<? extends T> type, UDTPathField<?,?,?> qualifier, Class<P> returnType)
    • createUDTPathField Link icon

      public static final <T, P extends UDTField<?, T>> P createUDTPathField(Name name, DataType<? extends T> type, UDTPathField<?,?,?> qualifier, String comment, Class<P> returnType)
    • createUDTPathField Link icon

      public static final <T, U, P extends UDTField<?, U>> P createUDTPathField(Name name, DataType<? extends T> type, UDTPathField<?,?,?> qualifier, String comment, Class<P> returnType, Converter<T,U> converter)
    • createUDTPathField Link icon

      public static final <T, U, P extends UDTField<?, U>> P createUDTPathField(Name name, DataType<? extends T> type, UDTPathField<?,?,?> qualifier, String comment, Class<P> returnType, Binding<T,U> binding)
    • createUDTPathField Link icon

      public static final <T, X, U, P extends UDTField<?, U>> P createUDTPathField(Name name, DataType<? extends T> type, UDTPathField<?,?,?> qualifier, String comment, Class<P> returnType, Converter<X,U> converter, Binding<T,X> binding)
    • createEmbeddable Link icon

      @SafeVarargs @NotNull 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)
      Factory method for embeddable types.
    • createEmbeddable Link icon

      @SafeVarargs @NotNull 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)
      Factory method for embeddable types.
    • createIndex Link icon

      @NotNull public static final @NotNull Index createIndex(Name name, Table<?> table, OrderField<?>[] sortFields, boolean unique)
      Factory method for indexes.
    • createIdentity Link icon

      @NotNull public static final <R extends Record, T> @NotNull Identity<R,T> createIdentity(Table<R> table, TableField<R,T> field)
      Factory method for identities.
    • createUniqueKey Link icon

      @NotNull @SafeVarargs public static final <R extends Record> @NotNull UniqueKey<R> createUniqueKey(Table<R> table, TableField<R,?>... fields)
      Factory method for unique keys.
    • createUniqueKey Link icon

      @NotNull @SafeVarargs public static final <R extends Record> @NotNull UniqueKey<R> createUniqueKey(Table<R> table, Name name, TableField<R,?>... fields)
      Factory method for unique keys.
    • createUniqueKey Link icon

      @NotNull public static final <R extends Record> @NotNull UniqueKey<R> createUniqueKey(Table<R> table, Name name, TableField<R,?>[] fields, boolean enforced)
      Factory method for unique keys.
    • createUniqueKey Link icon

      @NotNull 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)
      Factory method for unique keys.
    • createForeignKey Link icon

      @Deprecated @NotNull @SafeVarargs 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.
    • createForeignKey Link icon

      @NotNull 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, QOM.ForeignKeyRule deleteRule, QOM.ForeignKeyRule updateRule)
      Factory method for foreign keys.
    • createForeignKey Link icon

      @NotNull 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, QOM.ForeignKeyRule deleteRule, QOM.ForeignKeyRule updateRule)
      Factory method for foreign keys.
    • createForeignKey Link icon

      @NotNull 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, QOM.ForeignKeyRule deleteRule, QOM.ForeignKeyRule updateRule)
      Factory method for foreign keys.
    • createForeignKey Link icon

      @Deprecated @NotNull 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.
      - 3.20.0 - [#9736] - Regenerate your code.
      Factory method for foreign keys.

    • createForeignKey Link icon

      @Deprecated @NotNull 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.
      - 3.20.0 - [#9736] - Regenerate your code.
      Factory method for foreign keys.

    • createSequence Link icon

      @Deprecated @NotNull public static final <T extends Number> @NotNull Sequence<T> createSequence(String name, Schema schema, DataType<T> type)
      Deprecated.
      - 3.20.0 - [#15723] - Regenerate your code.
      Factory method for sequences.
    • createSequence Link icon

      @Deprecated @NotNull 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)
      Deprecated.
      - 3.20.0 - [#15723] - Regenerate your code.
      Factory method for sequences.
    • createSequence Link icon

      @NotNull public static final <T extends Number> @NotNull Sequence<T> createSequence(String name, Schema schema, Comment comment, DataType<T> type)
      Factory method for sequences.
    • createSequence Link icon

      @NotNull public static final <T extends Number> @NotNull Sequence<T> createSequence(String name, Schema schema, Comment comment, DataType<T> type, Number startWith, Number incrementBy, Number minvalue, Number maxvalue, boolean cycle, Number cache)
      Factory method for sequences.
    • createCheck Link icon

      @NotNull public static final <R extends Record> @NotNull Check<R> createCheck(Table<R> table, Name name, String condition)
      Factory method for check constraints.
    • createCheck Link icon

      @NotNull public static final <R extends Record> @NotNull Check<R> createCheck(Table<R> table, Name name, String condition, boolean enforced)
      Factory method for check constraints.
    • createDomain Link icon

      @Deprecated @NotNull public static final <T> @NotNull Domain<T> createDomain(Schema schema, Name name, DataType<T> type, Check<?>... checks)
      Deprecated.
      - 3.20.0 - [#15723] - Regenerate your code.
      Factory method for domain specifications.
    • createDomain Link icon

      public static final <T> Domain<T> createDomain(Schema schema, Name name, Comment comment, DataType<T> type, Check<?>... checks)
      Factory method for domain specifications.
    • createDomain Link icon

      @Deprecated @NotNull public static final <T, U> @NotNull Domain<U> createDomain(Schema schema, Name name, DataType<T> type, Converter<T,U> converter, Check<?>... checks)
      Deprecated.
      - 3.20.0 - [#15723] - Regenerate your code.
      Factory method for domain specifications.
    • createDomain Link icon

      @NotNull public static final <T, U> @NotNull Domain<U> createDomain(Schema schema, Name name, Comment comment, DataType<T> type, Converter<T,U> converter, Check<?>... checks)
      Factory method for domain specifications.
    • createDomain Link icon

      @Deprecated @NotNull public static final <T, U> @NotNull Domain<U> createDomain(Schema schema, Name name, DataType<T> type, Binding<T,U> binding, Check<?>... checks)
      Deprecated.
      - 3.20.0 - [#15723] - Regenerate your code.
      Factory method for domain specifications.
    • createDomain Link icon

      @NotNull public static final <T, U> @NotNull Domain<U> createDomain(Schema schema, Name name, Comment comment, DataType<T> type, Binding<T,U> binding, Check<?>... checks)
      Factory method for domain specifications.
    • createDomain Link icon

      @Deprecated @NotNull 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)
      Deprecated.
      - 3.20.0 - [#15723] - Regenerate your code.
      Factory method for domain specifications.
    • createDomain Link icon

      @NotNull public static final <T, X, U> @NotNull Domain<U> createDomain(Schema schema, Name name, Comment comment, DataType<T> type, Converter<X,U> converter, Binding<T,X> binding, Check<?>... checks)
      Factory method for domain specifications.
    • createTrigger Link icon

      @Pro @NotNull public static final @NotNull Trigger createTrigger(Schema schema, Table<?> table, List<Field<?>> fields, Name name, Comment comment, TriggerTime time, Set<TriggerEvent> events, TriggerExecution execution, Condition when, int actionOrder, Statement action)
      Factory method for trigger specifications.
    • createSynonym Link icon

      @Pro @NotNull public static final @NotNull Synonym createSynonym(Schema schema, Name name, Table<?> table, boolean isPublic, Comment comment)
      Factory method for synonym specifications.
    • createPathAlias Link icon

      @NotNull public static final @NotNull Name createPathAlias(Table<?> path, ForeignKey<?,?> childPath, InverseForeignKey<?,?> parentPath)
      Factory method for path aliases.
    • createParameter Link icon

      @NotNull public static final <T> @NotNull Parameter<T> createParameter(String name, DataType<? extends T> type, boolean isDefaulted, boolean isUnnamed)
      Factory method for parameters.
    • createParameter Link icon

      @NotNull public static final <T, U> @NotNull Parameter<U> createParameter(String name, DataType<? extends T> type, boolean isDefaulted, boolean isUnnamed, Converter<T,U> converter)
      Factory method for parameters.
    • createParameter Link icon

      @NotNull public static final <T, U> @NotNull Parameter<U> createParameter(String name, DataType<? extends T> type, boolean isDefaulted, boolean isUnnamed, Binding<T,U> binding)
      Factory method for parameters.
    • createParameter Link icon

      @NotNull public static final <T, X, U> @NotNull Parameter<U> createParameter(String name, DataType<? extends T> type, boolean isDefaulted, boolean isUnnamed, Converter<X,U> converter, Binding<T,X> binding)
      Factory method for parameters.
    • createQueue Link icon

      @NotNull @Pro public static final <R extends UDTRecord<R>> @NotNull Queue<R> createQueue(String name, Schema schema, UDT<R> type)
    • createIndex Link icon

      @NotNull @Deprecated(since="3.14", forRemoval=true) public static final @NotNull Index createIndex(String name, Table<?> table, OrderField<?>[] sortFields, boolean unique)
      Deprecated, for removal: This API element is subject to removal in a future version.
      - 3.14.0 - [#9404] - Please re-generate your code.
      Factory method for indexes.
    • createUniqueKey Link icon

      @NotNull @SafeVarargs @Deprecated(since="3.14", forRemoval=true) public static final <R extends Record> @NotNull UniqueKey<R> createUniqueKey(Table<R> table, String name, TableField<R,?>... fields)
      Deprecated, for removal: This API element is subject to removal in a future version.
      - 3.14.0 - [#9404] - Please re-generate your code.
      Factory method for unique keys.
    • createUniqueKey Link icon

      @NotNull @Deprecated(since="3.14", forRemoval=true) public static final <R extends Record> @NotNull UniqueKey<R> createUniqueKey(Table<R> table, String name, TableField<R,?>[] fields, boolean enforced)
      Deprecated, for removal: This API element is subject to removal in a future version.
      - 3.14.0 - [#9404] - Please re-generate your code.
      Factory method for unique keys.
    • createForeignKey Link icon

      @NotNull @SafeVarargs @Deprecated(since="3.14", forRemoval=true) 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: This API element is subject to removal in a future version.
      - 3.14.0 - [#9404] - Please re-generate your code.
      Factory method for foreign keys.
    • createForeignKey Link icon

      @NotNull @Deprecated(since="3.14", forRemoval=true) 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: This API element is subject to removal in a future version.
      - 3.14.0 - [#9404] - Please re-generate your code.
      Factory method for foreign keys.
    • fields Link icon

      @NotNull @Deprecated(since="3.14", forRemoval=true) public static final <R extends Record, ER extends EmbeddableRecord<ER>> @NotNull TableField<R,?>[] fields(TableField<R,ER> embeddableField)
      Deprecated, for removal: This API element is subject to removal in a future version.
      - [#11058] - 3.14.5 - Please re-generate your code.
      Get the fields of an embeddable type.
    • fieldsRow Link icon

      @NotNull @Deprecated(since="3.16", forRemoval=true) public static final <R extends Record, ER extends EmbeddableRecord<ER>> @NotNull Row fieldsRow(TableField<R,ER> embeddableField)
      Deprecated, for removal: This API element is subject to removal in a future version.
      - [#12238] - 3.16.0 - Please re-generate your code.
      Get the fields row of an embeddable type.
    • arrayType Link icon

      public static final <T> Class<T[]> arrayType(Class<T> type)
      JDK agnostic abstraction over Class.arrayType() and Array.newInstance(Class, int).
    • result Link icon

      public static final <R extends Record> Result<R> result(R record)
      Create an empty result from a Record using its row type.
    • commercial Link icon

      public static final boolean commercial()
      Whether this is a commercial edition of jOOQ.
    • commercial Link icon

      public static final boolean commercial(Supplier<String> logMessage)
      Whether this is a commercial edition of jOOQ, logging a warning message, if not.
    • requireCommercial Link icon

      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.
      Throws:
      DataAccessException
    • decomposing Link icon

      @Pro public static final Replacer decomposing()
      The implementation of Replacers.decomposing().
    • transformPatterns Link icon

      @Pro public static final Replacer transformPatterns(Configuration configuration)
    • mappingTable Link icon

      @Pro public static final Replacer mappingTable(Function<? super Table<?>,? extends Table<?>> replacement)
      The implementation of Replacers.mappingTable(Function).
    • hash Link icon

      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
    • converterContext Link icon

      public static final ConverterContext converterContext()
    • javaVersion Link icon

      public static final int javaVersion()
      Get the Java version (relevant to jOOQ) as an int.

      Supported versions are:

      • 8
      • 11
      • 17
      • 21
    • convert Link icon

      @Deprecated(forRemoval=true) public static final Object[] convert(Object[] values, Field<?>[] fields)
      Deprecated, for removal: This API element is subject to removal in a future version.
      [#11898] [#16044] This method just acts as a bridge to internal API from the deprecated-for-removal Convert utility. Do not reuse these methods.
    • convert Link icon

      @Deprecated(forRemoval=true) public static final Object[] convert(Object[] values, Class<?>[] types)
      Deprecated, for removal: This API element is subject to removal in a future version.
      [#11898] [#16044] This method just acts as a bridge to internal API from the deprecated-for-removal Convert utility. Do not reuse these methods.
    • convertArray Link icon

      @Deprecated(forRemoval=true) public static final <U> U[] convertArray(Object[] from, Converter<?,? extends U> converter) throws DataTypeException
      Deprecated, for removal: This API element is subject to removal in a future version.
      [#11898] [#16044] This method just acts as a bridge to internal API from the deprecated-for-removal Convert utility. Do not reuse these methods.
      Throws:
      DataTypeException
    • convertArray Link icon

      @Deprecated(forRemoval=true) public static final Object[] convertArray(Object[] from, Class<?> toClass) throws DataTypeException
      Deprecated, for removal: This API element is subject to removal in a future version.
      [#11898] [#16044] This method just acts as a bridge to internal API from the deprecated-for-removal Convert utility. Do not reuse these methods.
      Throws:
      DataTypeException
    • convertCollection Link icon

      @Deprecated(forRemoval=true) public static final <U> U[] convertCollection(Collection from, Class<? extends U[]> to)
      Deprecated, for removal: This API element is subject to removal in a future version.
      [#11898] [#16044] This method just acts as a bridge to internal API from the deprecated-for-removal Convert utility. Do not reuse these methods.
    • convert Link icon

      @Deprecated(forRemoval=true) public static final <U> U convert(Object from, Converter<?,? extends U> converter) throws DataTypeException
      Deprecated, for removal: This API element is subject to removal in a future version.
      [#11898] [#16044] This method just acts as a bridge to internal API from the deprecated-for-removal Convert utility. Do not reuse these methods.
      Throws:
      DataTypeException
    • convert Link icon

      @Deprecated(forRemoval=true) public static final <T> T convert(Object from, Class<? extends T> toClass) throws DataTypeException
      Deprecated, for removal: This API element is subject to removal in a future version.
      [#11898] [#16044] This method just acts as a bridge to internal API from the deprecated-for-removal Convert utility. Do not reuse these methods.
      Throws:
      DataTypeException
    • convert Link icon

      @Deprecated(forRemoval=true) public static final <T> List<T> convert(Collection<?> collection, Class<? extends T> type) throws DataTypeException
      Deprecated, for removal: This API element is subject to removal in a future version.
      [#11898] [#16044] This method just acts as a bridge to internal API from the deprecated-for-removal Convert utility. Do not reuse these methods.
      Throws:
      DataTypeException
    • convert Link icon

      @Deprecated(forRemoval=true) public static final <U> List<U> convert(Collection<?> collection, Converter<?,? extends U> converter) throws DataTypeException
      Deprecated, for removal: This API element is subject to removal in a future version.
      [#11898] [#16044] This method just acts as a bridge to internal API from the deprecated-for-removal Convert utility. Do not reuse these methods.
      Throws:
      DataTypeException
    • getInstanceMethods Link icon

      public static final Set<Method> getInstanceMethods(Class<?> type)
      All the public and declared methods of a type.

      This method returns each method only once. Public methods are returned first in the resulting set while declared methods are returned afterwards, from lowest to highest type in the type hierarchy.

    • getInstanceMembers Link icon

      public static final List<Field> getInstanceMembers(Class<?> type)
      A utility to look up all declared instance members of a type and its hierarchy.