Top Description Inners Fields Constructors Methods
org.jooq.impl

pack-priv final Class Tools

extends Object
Class Inheritance
Static Imports
java.lang.Boolean.FALSE, .Boolean.TRUE, .Character.isJavaIdentifierPart, java.util.Arrays.asList, .Collections.emptyList, .Collections.nCopies, .Collections.singletonList, java.util.stream.Collectors.joining, org.jooq.ContextConverter.scoped, .SQLDialect.DERBY, .SQLDialect.FIREBIRD, .SQLDialect.H2, .SQLDialect.HSQLDB, .SQLDialect.MARIADB, .SQLDialect.MYSQL, .SQLDialect.POSTGRES, .SQLDialect.SQLITE, .SQLDialect.YUGABYTEDB, org.jooq.conf.BackslashEscaping.DEFAULT, .BackslashEscaping.ON, .ParamType.INLINED, .ParamType.NAMED, .ParamType.NAMED_OR_INLINED, .RenderDefaultNullability.IMPLICIT_NULL, .RenderQuotedNames.EXPLICIT_DEFAULT_QUOTED, .SettingsTools.getBackslashEscaping, .SettingsTools.updatablePrimaryKeys, .ThrowExceptions.THROW_FIRST, .ThrowExceptions.THROW_NONE, org.jooq.exception.DataAccessException.sqlStateClass, org.jooq.impl.CacheType.REFLECTION_CACHE_GET_ANNOTATED_GETTER, .CacheType.REFLECTION_CACHE_GET_ANNOTATED_MEMBERS, .CacheType.REFLECTION_CACHE_GET_ANNOTATED_SETTERS, .CacheType.REFLECTION_CACHE_GET_MATCHING_GETTER, .CacheType.REFLECTION_CACHE_GET_MATCHING_MEMBERS, .CacheType.REFLECTION_CACHE_GET_MATCHING_SETTERS, .CacheType.REFLECTION_CACHE_HAS_COLUMN_ANNOTATIONS, .Convert.convert, .DDLStatementType.ALTER_SCHEMA, .DDLStatementType.ALTER_TABLE, .DDLStatementType.ALTER_VIEW, .DDLStatementType.CREATE_DATABASE, .DDLStatementType.CREATE_DOMAIN, .DDLStatementType.CREATE_INDEX, .DDLStatementType.CREATE_SCHEMA, .DDLStatementType.CREATE_SEQUENCE, .DDLStatementType.CREATE_TABLE, .DDLStatementType.CREATE_VIEW, .DDLStatementType.DROP_INDEX, .DDLStatementType.DROP_SCHEMA, .DDLStatementType.DROP_SEQUENCE, .DDLStatementType.DROP_TABLE, .DDLStatementType.DROP_VIEW, .DSL.all, .DSL.any, .DSL.asterisk, .DSL.concat, .DSL.escape, .DSL.getDataType, .DSL.keyword, .DSL.name, .DSL.noCondition, .DSL.row, .DSL.select, .DSL.unquotedName, .DSL.val, .DefaultExecuteContext.localConnection, .DefaultParseContext.SUPPORTS_HASH_COMMENT_SYNTAX, .DerivedTable.NO_SUPPORT_CORRELATED_DERIVED_TABLE, .Identifiers.QUOTES, .Identifiers.QUOTE_END_DELIMITER, .Identifiers.QUOTE_END_DELIMITER_ESCAPED, .Identifiers.QUOTE_START_DELIMITER, .Keywords.K_ALWAYS, .Keywords.K_AS, .Keywords.K_ATOMIC, .Keywords.K_AUTOINCREMENT, .Keywords.K_AUTO_INCREMENT, .Keywords.K_BEGIN, .Keywords.K_BEGIN_CATCH, .Keywords.K_BEGIN_TRY, .Keywords.K_BY, .Keywords.K_CHARACTER_SET, .Keywords.K_COLLATE, .Keywords.K_DECLARE, .Keywords.K_DEFAULT, .Keywords.K_DO, .Keywords.K_ELSE, .Keywords.K_ELSIF, .Keywords.K_END, .Keywords.K_END_CATCH, .Keywords.K_END_IF, .Keywords.K_END_TRY, .Keywords.K_ENUM, .Keywords.K_ERROR, .Keywords.K_EXCEPTION, .Keywords.K_EXEC, .Keywords.K_EXECUTE_BLOCK, .Keywords.K_EXECUTE_IMMEDIATE, .Keywords.K_EXECUTE_STATEMENT, .Keywords.K_GENERATED, .Keywords.K_IDENTITY, .Keywords.K_IF, .Keywords.K_INT, .Keywords.K_LIKE, .Keywords.K_NOT, .Keywords.K_NOT_NULL, .Keywords.K_NULL, .Keywords.K_NVARCHAR, .Keywords.K_PERSISTED, .Keywords.K_PRIMARY_KEY, .Keywords.K_RAISE, .Keywords.K_RAISERROR, .Keywords.K_SERIAL, .Keywords.K_SERIAL4, .Keywords.K_SERIAL8, .Keywords.K_SQLSTATE, .Keywords.K_START_WITH, .Keywords.K_STORED, .Keywords.K_THEN, .Keywords.K_THROW, .Keywords.K_VIRTUAL, .Keywords.K_WHEN, .QOM.GenerationOption.STORED, .QOM.GenerationOption.VIRTUAL, .SQLDataType.BLOB, .SQLDataType.CLOB, .SQLDataType.INTEGER, .SQLDataType.JSON, .SQLDataType.JSONB, .SQLDataType.OTHER, .SQLDataType.SMALLINT, .SQLDataType.VARCHAR, .SQLDataType.XML, .SubqueryCharacteristics.DERIVED_TABLE, .SubqueryCharacteristics.PREDICAND, .SubqueryCharacteristics.SET_OPERATION, .Tools.executeImmediate, .Tools.SimpleDataKey.DATA_BLOCK_NESTING, org.jooq.tools.StringUtils.defaultIfNull

General internal jOOQ utilities
Author
Lukas Eder

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum
Tools.BooleanDataKey

Keys for Configuration#data(), which may be referenced frequently and represent a boolean value and are thus stored in an EnumSet for speedier access.

pack-priv static interface
pack-priv static class
pack-priv static enum
Tools.ExtendedDataKey

Keys for Configuration#data(), which may be referenced very infrequently and are thus stored in an ordinary HashMap for a more optimal memory layout.

pack-priv static class
Tools.FlatteningIterator<E>

A base implementation for EmbeddableTableField flattening iterators with a default implementation for Iterator#remove() for convenience in the Java 6 build.

pack-priv static enum
pack-priv static enum
Tools.SimpleDataKey

Keys for Configuration#data(), which may be referenced frequently and are thus stored in an EnumMap for speedier access.

private static class
Tools.SourceMethod

A wrapper class that re-implements Method#equals(Object) and Method#hashCode() based only on the "source signature" (name, parameter types), instead of the "binary signature" (declaring class, name, return type, parameter types).

Field Summary

Modifier and TypeField and Description
private static final char[][]
BIND_VARIABLE_SUFFIXES

"Suffixes" that are placed behind a "?" character to form a JDBC bind variable, rather than an operator.

pack-priv static final Lazy<Configuration>
pack-priv static final Lazy<Configuration>
pack-priv static final Lazy<DSLContext>
private static final Pattern
DASH_PATTERN

A pattern for the dash line syntax

pack-priv static final Tools.DataKey[]
pack-priv static final Set<SQLDialect>
pack-priv static final Set<SQLDialect>
pack-priv static final byte[]
pack-priv static final Catalog[]
pack-priv static final Check<?>[]
pack-priv static final Clause[]
EMPTY_CLAUSE

Deprecated as a consequence of Clause being deprecated.
pack-priv static final Collection<?>[]
pack-priv static final CommonTableExpression<?>[]
pack-priv static final ExecuteListener[]
pack-priv static final Field<?>[]
EMPTY_FIELD

Deprecated as a consequence of Field being deprecated.
pack-priv static final FieldOrRow[]
pack-priv static final int[]
pack-priv static final JSONEntry<?>[]
pack-priv static final Name[]
pack-priv static final Object[]
pack-priv static final OrderField<?>[]
pack-priv static final Param<?>[]
EMPTY_PARAM

Deprecated as a consequence of Param being deprecated.
pack-priv static final Query[]
pack-priv static final QueryPart[]
pack-priv static final Record[]
pack-priv static final Row[]
pack-priv static final SortField<?>[]
pack-priv static final Source[]
pack-priv static final String[]
pack-priv static final Table<?>[]
pack-priv static final TableField<?, ?>[]
EMPTY_TABLE_FIELD

Deprecated as a consequence of TableField being deprecated.
pack-priv static final TableRecord<?>[]
pack-priv static final UpdatableRecord<?>[]
pack-priv static final Schema[]
pack-priv static final char
ESCAPE

The default escape character for [a] LIKE [b] ESCAPE […] clauses.

private static final int
private static final String[]
private static final Name[]
private static final char[]
HEX_DIGITS

All hexadecimal digits accessible through array index, e.g. HEX_DIGITS[15] == 'f'.

private static final byte[]
private static final Object
initLock

A lock for the initialisation of other static members

private static volatile Boolean
isKotlinAvailable

Indicating whether Kotlin (kotlin.*) is on the classpath.

private static final char[][]
JDBC_ESCAPE_PREFIXES

Acceptable prefixes for JDBC escape syntax.

private static volatile Tools.JPANamespace
jpaNamespace

Indicating whether JPA (jakarta.persistence) is on the classpath.

private static volatile Reflect
private static volatile Reflect
private static volatile Reflect
private static volatile Reflect
pack-priv static final JooqLogger
pack-priv static int
maxConsumedExceptions

[#3696] The maximum number of consumed exceptions in consumeExceptions(Configuration, PreparedStatement, SQLException) helps prevent infinite loops and OutOfMemoryError.

pack-priv static int
private static final Pattern
pack-priv static final Set<SQLDialect>
pack-priv static final Set<SQLDialect>
pack-priv static final Set<SQLDialect>
pack-priv static final Set<SQLDialect>
private static final char[][]
NON_BIND_VARIABLE_SUFFIXES

"Suffixes" that are placed behind a "?" character to form an operator, rather than a JDBC bind variable.

private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
PIPE_PATTERN

A pattern for the pipe line syntax

private static final Pattern
PLUS_PATTERN

A pattern for the dash line syntax

private static final Set<SQLDialect>
pack-priv static final Set<SQLDialect>
pack-priv static final Set<SQLDialect>
private static final Set<SQLDialect>
pack-priv static final Set<SQLDialect>
private static final char[]
private static final char[]
private static final char[]
private static final char[]
private static final char[]
private static final char[]
private static final char[]
private static final char[]
WHITESPACE_CHARACTERS

All characters that are matched by Java's interpretation of \s.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static final AbstractDMLQuery<?>
pack-priv static final AbstractResultQuery<?>
pack-priv static final <T extends AccessibleObject> T
accessible(T object, boolean makeAccessible)

pack-priv static final <T> void
addCondition(ConditionProvider provider, Record record, Field<T> field)

Deprecated as a consequence of ConditionProvider and Field being deprecated.
Add a field condition to a query
pack-priv static final void
addConditions(ConditionProvider query, Record record, Field<?>... keys)

Deprecated as a consequence of ConditionProvider and Field being deprecated.
Add primary key conditions to a query
pack-priv static final <R extends Record> Alias<Table<R>>
alias(Table<R> table)

pack-priv static final <T> Field<T>
aliased(Field<T> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <R extends Record> Table<R>
aliased(Table<R> table)

pack-priv static final List<Field<?>>
aliasedFields(Collection<? extends Field<?>> fields)

pack-priv static final <R extends Record, O extends Record> ReferenceImpl<R, O>
aliasedKey(ForeignKey<R, O> key, Table<R> child, Table<O> parent)

pack-priv static final <T, E extends Exception> boolean
allMatch(T[] array, ThrowingPredicate<? super T, E> test)

pack-priv static final <T, E extends Exception> boolean
allMatch(T[] array, ThrowingIntPredicate<? super T, E> test)

pack-priv static final <T, E extends Exception> boolean
allMatch(Iterable<? extends T> it, ThrowingPredicate<? super T, E> test)

pack-priv static final <T, E extends Exception> boolean
allMatch(Iterable<? extends T> it, ThrowingIntPredicate<? super T, E> test)

pack-priv static final Condition
allNotNull(Field<?>[] fields)

Deprecated as a consequence of Field and Condition being deprecated.
pack-priv static final <T> DataType<T>
allNotNull(DataType<T> defaultType)

pack-priv static final <T> DataType<T>
allNotNull(DataType<T> defaultType, Field<?> f1)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
allNotNull(DataType<T> defaultType, Field<?> f1, Field<?> f2)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
allNotNull(DataType<T> defaultType, Field<?> f1, Field<?> f2, Field<?> f3)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
allNotNull(DataType<T> defaultType, Field<?>... fields)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Condition
allNull(Field<?>[] fields)

Deprecated as a consequence of Field and Condition being deprecated.
pack-priv static final <T, E extends Exception> boolean
anyMatch(T[] array, ThrowingPredicate<? super T, E> test)

pack-priv static final <T, E extends Exception> boolean
anyMatch(T[] array, ThrowingIntPredicate<? super T, E> test)

pack-priv static final <T, E extends Exception> boolean
anyMatch(Iterable<? extends T> it, ThrowingPredicate<? super T, E> test)

pack-priv static final <T, E extends Exception> boolean
anyMatch(Iterable<? extends T> it, ThrowingIntPredicate<? super T, E> test)

pack-priv static final <T> DataType<T>
anyNotNull(DataType<T> defaultType, Field<?> f1)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
anyNotNull(DataType<T> defaultType, Field<?> f1, Field<?> f2)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
anyNotNull(DataType<T> defaultType, Field<?> f1, Field<?> f2, Field<?> f3)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
anyNotNull(DataType<T> defaultType, Field<?>... fields)

Deprecated as a consequence of Field being deprecated.
pack-priv static final boolean
anyQuoted(Settings settings, Name... names)

pack-priv static final <C extends Context<? extends C>> C
appendSQL(C ctx, Query... queries)

pack-priv static final <T, R, X extends Throwable> R
apply(T t, ThrowingFunction<? super @NotNull T, ? extends R, ? extends X> f)

pack-priv static final <T, R, X extends Throwable> R
applyOrElse(T t, ThrowingFunction<? super @NotNull T, ? extends R, ? extends X> f, ThrowingSupplier<? extends R, ? extends X> s)

pack-priv static final int
asInt(long value)

pack-priv static final <E extends Exception> int
asInt(long value, Supplier<E> e)

pack-priv static final String
asString(Name name)

pack-priv static final <T> T
attach(Attachable attachable, Configuration configuration, Supplier<T> supplier)

pack-priv static final boolean
pack-priv static final String
autoAlias(QueryPart part)

A possibly inefficient but stable way to generate an alias for any QueryPart.

pack-priv static final Name
autoAliasName(QueryPart part)

A possibly inefficient but stable way to generate an alias for any QueryPart.

pack-priv static final void
begin(Context<?> ctx, Consumer<? super Context<?>> runnable)

Wrap a runnable in a BEGIN / END anonymous block.

private static final void
begin(Context<?> ctx)

Generate the BEGIN part of an anonymous procedural block.

pack-priv static final void
beginExecuteImmediate(Context<?> ctx)

Wrap a statement in an EXECUTE IMMEDIATE statement.

pack-priv static final <T> Supplier<T>
blocking(Supplier<T> supplier)

pack-priv static final <T> Supplier<T>
blocking(Supplier<T> supplier, boolean threadLocal)

pack-priv static final <T> Supplier<T>
pack-priv static final String
camelCase(String snakeCase)

pack-priv static final String
pack-priv static final <T> Field<T>[]
castAllIfNeeded(Field<?>[] fields, Class<T> type)

Deprecated as a consequence of Field being deprecated.
[#461] [#473] [#2597] [#8234] Some internals need a cast only if necessary.
pack-priv static final <T> Field<T>[]
castAllIfNeeded(Field<?>[] fields, DataType<T> type)

Deprecated as a consequence of Field being deprecated.
[#461] [#473] [#2597] [#8234] Some internals need a cast only if necessary.
pack-priv static final <T> Field<T>
castIfNeeded(Field<?> field, Class<T> type)

Deprecated as a consequence of Field being deprecated.
[#461] [#473] [#2597] [#8234] Some internals need a cast only if necessary.
pack-priv static final <T> Field<T>
castIfNeeded(Field<?> field, DataType<T> type)

Deprecated as a consequence of Field being deprecated.
[#461] [#473] [#2597] [#8234] Some internals need a cast only if necessary.
pack-priv static final <T> Field<T>
castIfNeeded(Field<?> field, Field<T> type)

Deprecated as a consequence of Field being deprecated.
[#461] [#473] [#2597] [#8234] Some internals need a cast only if necessary.
pack-priv static final String
characterLiteral(char character)

pack-priv static final <E> List<E>
collect(Iterable<E> iterable)

pack-priv static final <T> T[]
combine(T value, T[] array)

pack-priv static final <T> T[]
combine(T[] array, T value)

pack-priv static final <T> T[]
combine(T[] a1, T[] a2)

pack-priv static final Field<?>[]
combine(Field<?> field, Field<?>... fields)

Deprecated as a consequence of Field being deprecated.
Combine a field with an array of fields
pack-priv static final Field<?>[]
combine(Field<?> field1, Field<?> field2, Field<?>... fields)

Deprecated as a consequence of Field being deprecated.
Combine a field with an array of fields
pack-priv static final Field<?>[]
combine(Field<?> field1, Field<?> field2, Field<?> field3, Field<?>... fields)

Deprecated as a consequence of Field being deprecated.
Combine a field with an array of fields
pack-priv static final DataType<?>
pack-priv static final <T> Condition
condition(Field<T> field, T value)

Deprecated as a consequence of Field and Condition being deprecated.
Create a null-safe condition.
pack-priv static final Configuration
configuration(Attachable attachable)

Get an attachable's configuration or a new DefaultConfiguration if null.

pack-priv static final Configuration
configuration(Configuration configuration)

Get a configuration or a new DefaultConfiguration if null.

pack-priv static final Configuration
configuration(Scope scope)

Get a configuration or a new DefaultConfiguration if null.

pack-priv static final Configuration
configurationOrThrow(Attachable attachable)

Get an attachable's configuration or a new DefaultConfiguration if null.

pack-priv static final void
consumeExceptions(Configuration configuration, PreparedStatement stmt, SQLException previous)

[#3011] [#3054] [#6390] [#6413] Consume additional exceptions if there are any and append them to the previous exception's SQLException#getNextException() list.

pack-priv static final void
consumeResultSets(ExecuteContext ctx, ExecuteListener listener, Results results, Intern intern, SQLException prev)

[#3681] Consume all ResultSets from a JDBC Statement.

pack-priv static final void
consumeWarnings(ExecuteContext ctx, ExecuteListener listener)

[#3076] Consume warnings from a Statement and notify listeners.

pack-priv static final boolean
containsDeclaredTable(Table<?> in, Table<?> search)

pack-priv static final boolean
containsDeclaredTable(Iterable<? extends Table<?>> in, Table<?> search)

pack-priv static final boolean
containsTable(Table<?> in, Table<?> search, boolean unalias)

pack-priv static final boolean
containsTable(Iterable<? extends Table<?>> in, Table<?> search, boolean unalias)

pack-priv static final boolean
pack-priv static final boolean
containsUnaliasedTable(Iterable<? extends Table<?>> in, Table<?> search)

pack-priv static final String

Returns:

the hex encoded string
convertBytesToHex
(byte[]
the byte array
value
,
int offset, int
the number of bytes to encode
len
)

Convert a byte array to a hex encoded string.

pack-priv static final String

Returns:

the hex encoded string
convertBytesToHex
(byte[]
the byte array
value
)

Convert a byte array to a hex encoded string.

pack-priv static final <T, U> ContextConverter<T, U>
converter(Configuration configuration, T instance, Class<T> tType, Class<U> uType)

Get a converter from a ConverterProvider or null if no converter could be provided.

pack-priv static final ConverterContext
pack-priv static final ConverterContext
pack-priv static final <T, U> ContextConverter<T, U>
converterOrFail(Configuration configuration, T instance, Class<T> tType, Class<U> uType)

Get a converter from a ConverterProvider or null if no converter could be provided.

pack-priv static final <T, U> ContextConverter<T, U>
converterOrFail(Attachable attachable, T instance, Class<T> tType, Class<U> uType)

Get a converter from a ConverterProvider.

pack-priv static final byte[]

Returns:

the byte array
convertHexToBytes
(String
the hex encoded string
value
,
int offset, int
the number of bytes to encode
len
)

Convert a hex encoded string to a byte array.

pack-priv static final byte[]

Returns:

the byte array
convertHexToBytes
(String
the hex encoded string
value
)

Convert a hex encoded string to a byte array.

pack-priv static final <T> Field<T>
convertVal(Field<T> field, DataType<?> type)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> void
copyValue(AbstractRecord target, Field<T> targetField, Record source, Field<?> sourceField)

Deprecated as a consequence of Field being deprecated.
[#2591] Type-safely copy a value from one record to another, preserving flags.
pack-priv static final DataType<?>
dataType(Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
dataType(DataType<T> defaultType, Field<?> field, boolean preferDefault)

Deprecated as a consequence of Field being deprecated.
pack-priv static final DataType<?>[]
dataTypes(Class<?>[] types)

pack-priv static final List<DataType<?>>
pack-priv static final String
pack-priv static final boolean
decrement(Map<Object, Object> data, Tools.SimpleDataKey key)

Decrement a counter and return true if the counter is zero after decrementing.

pack-priv static final int
degree(ResultQuery<?> query)

pack-priv static final DeleteQueryImpl<?>
deleteQueryImpl(Query query)

Deprecated as a consequence of DeleteQueryImpl being deprecated.
pack-priv static final <T1, R> Field<R>
derivedTable(Context<?> ctx, Field<T1> f1, Function1<? super Field<T1>, ? extends Field<R>> f)

Deprecated as a consequence of Field being deprecated.
Wrap an expression in a derived table to allow for simplifying referencing it.
pack-priv static final <T1, T2, R> Field<R>
derivedTable(Context<?> ctx, Field<T1> f1, Field<T2> f2, Function2<? super Field<T1>, ? super Field<T2>, ? extends Field<R>> f)

Deprecated as a consequence of Field being deprecated.
Wrap expressions in a derived table to allow for simplifying referencing them.
pack-priv static final <T1, T2, T3, R> Field<R>
derivedTable(Context<?> ctx, Field<T1> f1, Field<T2> f2, Field<T3> f3, Function3<? super Field<T1>, ? super Field<T2>, ? super Field<T3>, ? extends Field<R>> f)

Deprecated as a consequence of Field being deprecated.
Wrap expressions in a derived table to allow for simplifying referencing them.
private static boolean
pack-priv static final <T1, R> Field<R>
derivedTableIf(Context<?> ctx, boolean condition, Field<T1> f1, Function1<? super Field<T1>, ? extends Field<R>> f)

Deprecated as a consequence of Field being deprecated.
Wrap an expression in a derived table to allow for simplifying referencing it.
pack-priv static final <T1, T2, R> Field<R>
derivedTableIf(Context<?> ctx, boolean condition, Field<T1> f1, Field<T2> f2, Function2<? super Field<T1>, ? super Field<T2>, ? extends Field<R>> f)

Deprecated as a consequence of Field being deprecated.
Wrap expressions in a derived table to allow for simplifying referencing them.
pack-priv static final <T1, T2, T3, R> Field<R>
derivedTableIf(Context<?> ctx, boolean condition, Field<T1> f1, Field<T2> f2, Field<T3> f3, Function3<? super Field<T1>, ? super Field<T2>, ? super Field<T3>, ? extends Field<R>> f)

Deprecated as a consequence of Field being deprecated.
Wrap expressions in a derived table to allow for simplifying referencing them.
pack-priv static final Field<?>[]
embeddedFields(Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Field<?>[]
embeddedFields(ScalarSubquery<?> field)

Deprecated as a consequence of ScalarSubquery and Field being deprecated.
pack-priv static final Row
pack-priv static final Class<? extends AbstractRecord>
embeddedRecordType(Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final DataType<String>
private static final DataType<String>
emulateEnumType(DataType<? extends EnumType> type, EnumType[] enums)

pack-priv static final NestedCollectionEmulation
private static final void
end(Context<?> ctx)

Generate the END part of an anonymous procedural block.

pack-priv static final void
endExecuteImmediate(Context<?> ctx)

Wrap a statement in an EXECUTE IMMEDIATE statement.

private static final EnumType[]
enumConstants(DataType<? extends EnumType> type)

pack-priv static final <E extends EnumType> E[]
enums(Class<? extends E> type)

pack-priv static final Field<String>
escapeForLike(Field<?> field)

Deprecated as a consequence of Field being deprecated.
Utility method to escape string fields, or cast other fields
pack-priv static final Field<String>
escapeForLike(Field<?> field, Configuration configuration)

Deprecated as a consequence of Field being deprecated.
Utility method to escape string fields, or cast other fields
private static final RuntimeException
pack-priv static final void
executeImmediate(Context<?> ctx, Consumer<? super Context<?>> runnable)

Wrap a statement in an EXECUTE IMMEDIATE statement.

pack-priv static final void
executeImmediateIf(boolean wrap, Context<?> ctx, Consumer<? super Context<?>> runnable)

Wrap a statement in an EXECUTE IMMEDIATE statement.

pack-priv static final SQLException
executeStatementAndGetFirstResultSet(ExecuteContext ctx, int skipUpdateCounts)

[#5666] Handle the complexity of each dialect's understanding of correctly calling PreparedStatement#execute()}.

pack-priv static final <T> T
extractParamValue(Field<T> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Val<?>
extractVal(Field<?> field)

Deprecated as a consequence of Field and Val being deprecated.
pack-priv static final <R extends Record> R

Returns:

The only element from the cursor or null
fetchOne
(Cursor<R>
The cursor
cursor
)

Get the only element from a cursor or null, or throw an exception.

pack-priv static final <R extends Record> R

Returns:

The only element from the cursor or null
fetchOne
(Cursor<R>
The cursor
cursor
,
boolean
Whether a LIMIT clause is present that guarantees at most one row
hasLimit1
)

Get the only element from a cursor or null, or throw an exception.

pack-priv static final <R extends Record> R

Returns:

The only element from the cursor
fetchSingle
(Cursor<R>
The cursor
cursor
)

Get the only element from a cursor, or throw an exception.

pack-priv static final <R extends Record> R

Returns:

The only element from the cursor
fetchSingle
(Cursor<R>
The cursor
cursor
,
boolean
Whether a LIMIT clause is present that guarantees at most one row
hasLimit1
)

Get the only element from a cursor, or throw an exception.

pack-priv static final Param<Byte>
field(byte value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Byte>
field(Byte value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<UByte>
field(UByte value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Short>
field(short value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Short>
field(Short value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<UShort>
field(UShort value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Integer>
field(int value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Integer>
field(Integer value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<UInteger>
field(UInteger value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Long>
field(long value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Long>
field(Long value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<ULong>
field(ULong value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Float>
field(float value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Float>
field(Float value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Double>
field(double value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Double>
field(Double value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Boolean>
field(boolean value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Boolean>
field(Boolean value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<BigDecimal>
field(BigDecimal value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<BigInteger>
field(BigInteger value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<byte[]>
field(byte[] value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<String>
field(String value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Date>
field(Date value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Time>
field(Time value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Timestamp>
field(Timestamp value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<LocalDate>
field(LocalDate value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<LocalTime>
field(LocalTime value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<LocalDateTime>
field(LocalDateTime value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<OffsetTime>
field(OffsetTime value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<OffsetDateTime>
field(OffsetDateTime value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<Instant>
field(Instant value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<UUID>
field(UUID value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<JSON>
field(JSON value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<JSONB>
field(JSONB value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Param<XML>
field(XML value)

Deprecated as a consequence of Param being deprecated.
pack-priv static final Field<Object>
field(Name name)

Deprecated - This method is probably called by mistake (ambiguous static import).
private static final <T> Field<T>
field(Object value, boolean defaultInferred, Function<? super Object, ? extends Param<T>> defaultValue)

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

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

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> Field<T>
field(Object value, Class<T> type)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> Field<T>
field(Object value, DataType<T> type)

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

Deprecated as a consequence of Field being deprecated.
pack-priv static final Field<?>[]
fieldArray(Collection<? extends Field<?>> fields)

Deprecated as a consequence of Field being deprecated.
private static final IllegalArgumentException
pack-priv static final Name
fieldName(int index)

pack-priv static final Name[]
fieldNames(int length)

pack-priv static final String
fieldNameString(int index)

private static final String
fieldNameString0(int index)

pack-priv static final String[]
fieldNameStrings(int length)

pack-priv static final Field<?>[]
fields(int length)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> Field<T>[]
fields(int length, DataType<T> type)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> List<Field<T>>
fields(T[] values)

pack-priv static final <T> List<Field<T>>
fields(Object[] values, Field<T> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final List<Field<?>>
fields(Object[] values, Field<?>[] fields)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> List<Field<T>>
fields(Object[] values, DataType<T> type)

pack-priv static final <T> List<Field<T>>
fields(Collection<?> values, DataType<T> type)

pack-priv static final List<Field<?>>
fields(Object[] values, DataType<?>[] types)

pack-priv static final Field<?>[]
fields(OrderField<?>[] orderFields)

Deprecated as a consequence of Field being deprecated.
pack-priv static final List<Field<?>>
fields(Collection<? extends OrderField<?>> orderFields)

pack-priv static final <T> Field<T>[]
fieldsArray(T[] values)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Field<?>[]
fieldsArray(Object[] values, Field<?>[] fields)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> Field<T>[]
fieldsArray(Object[] values, DataType<T> type)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Field<?>[]
fieldsArray(Object[] values, DataType<?>[] types)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Field<?>[]
fieldsByName(String[] fieldNames)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Field<?>[]
fieldsByName(Name tableName, int length)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <R extends Record> TableField<R, ?>[]
fieldsByName(Table<R> tableName, Field<?>[] fieldNames)

Deprecated as a consequence of Field and TableField being deprecated.
pack-priv static final Field<?>[]
fieldsByName(Name tableName, Name[] fieldNames)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Field<?>[]
fieldsByName(String tableName, String[] fieldNames)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Field<?>[]
fieldsByName(Name[] names)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <E> Iterator<E>
filter(Iterator<E> iterator, Predicate<? super E> predicate)

pack-priv static final <E> Iterator<E>
filter(Iterator<E> iterator, ObjIntPredicate<? super E> predicate)

pack-priv static final <E> Iterable<E>
filter(Iterable<E> iterable, Predicate<? super E> predicate)

pack-priv static final <E> Iterable<E>
filter(Iterable<E> iterable, ObjIntPredicate<? super E> predicate)

pack-priv static final <E> Iterable<E>
filter(E[] array, Predicate<? super E> predicate)

pack-priv static final <E> Iterable<E>
filter(E[] array, ObjIntPredicate<? super E> predicate)

pack-priv static final <R extends Record> R

Returns:

The only element from the list or null
filterOne
(List<R>
The list
list
)

Deprecated - [#8881] - Do not reuse this method as it doesn't properly manage the ExecuteListener#exception(ExecuteContext) lifecycle event.
Get the only element from a list or null, or throw an exception.
pack-priv static final <T, E extends Exception> T
findAny(T[] array, ThrowingPredicate<? super T, E> test)

pack-priv static final <T, E extends Exception> T
findAny(T[] array, ThrowingIntPredicate<? super T, E> test)

pack-priv static final <T, E extends Exception> T
findAny(Iterable<? extends T> it, ThrowingPredicate<? super T, E> test)

pack-priv static final <T, E extends Exception> T
findAny(Iterable<? extends T> it, ThrowingIntPredicate<? super T, E> test)

pack-priv static final <T, U, E extends Exception> U
findAny(T[] array, ThrowingPredicate<? super T, E> test, ThrowingFunction<? super T, ? extends U, E> function)

pack-priv static final <T, U, E extends Exception> U
findAny(T[] array, ThrowingIntPredicate<? super T, E> test, ThrowingFunction<? super T, ? extends U, E> function)

pack-priv static final <T, U, E extends Exception> U
findAny(Iterable<? extends T> it, ThrowingPredicate<? super T, E> test, ThrowingFunction<? super T, ? extends U, E> function)

pack-priv static final <T, U, E extends Exception> U
findAny(Iterable<? extends T> it, ThrowingIntPredicate<? super T, E> test, ThrowingFunction<? super T, ? extends U, E> function)

pack-priv static final <T> T
first(Iterable<? extends T> iterable)

Extract the first item from an iterable or null, if there is no such item, or if iterable itself is null

pack-priv static final <T, U, E extends Exception> List<U>
flatMap(Iterable<? extends T> it, ThrowingFunction<? super T, ? extends List<? extends U>, E> mapper)

Like Stream.of(array).map(mapper).toList() but without the entire stream pipeline.

pack-priv static final <E extends Field<?>> Iterable<E>
flatten(E field)

Flatten out an EmbeddableTableField.

pack-priv static final Iterable<Field<?>>
flattenCollection(Iterable<? extends Field<?>> iterable)

Flatten out EmbeddableTableField elements contained in an ordinary iterable.

pack-priv static final Iterable<Field<?>>
flattenCollection(Iterable<? extends Field<?>> iterable, boolean removeDuplicates, boolean flattenRowFields)

Flatten out EmbeddableTableField elements contained in an ordinary iterable.

pack-priv static final Iterable<Map.Entry<FieldOrRow, FieldOrRowOrSelect>>
flattenEntrySet(final Iterable<Map.Entry<FieldOrRow, FieldOrRowOrSelect>> iterable, final boolean removeDuplicates)

Flatten out EmbeddableTableField elements contained in an entry set iterable, making sure no duplicate keys resulting from overlapping embeddables will be produced.

pack-priv static final Iterable<Field<?>>
pack-priv static final <C extends Collection<Field<?>>> C
pack-priv static final Method
getAnnotatedGetter(final Configuration configuration, final Class<?> type, final String name, final boolean makeAccessible)

Get the first getter method annotated with a given column name

pack-priv static final List<Field>
getAnnotatedMembers(final Configuration configuration, final Class<?> type, final String name, final boolean makeAccessible)

Get all members annotated with a given column name

pack-priv static final List<Method>
getAnnotatedSetters(final Configuration configuration, final Class<?> type, final String name, final boolean makeAccessible)

Get all setter methods annotated with a given column name

private static final List<Field>
private static final Method
getInstanceMethod(Class<?> type, String name, Class<?>[] parameters)

private static final Set<Method>
getInstanceMethods(Class<?> type)

All the public and declared methods of a type.

pack-priv static final Catalog
getMappedCatalog(Scope scope, Catalog catalog)

Map a Catalog according to the configured org.jooq.SchemaMapping

pack-priv static final Schema
getMappedSchema(Scope scope, Schema schema)

Map a Schema according to the configured org.jooq.SchemaMapping

pack-priv static final <R extends Record> Table<R>
getMappedTable(Scope scope, Table<R> table)

Map a Table according to the configured org.jooq.SchemaMapping

pack-priv static final String
getMappedUDTName(Scope scope, Class<? extends QualifiedRecord<?>> type)

Map an QualifiedRecord according to the configured org.jooq.SchemaMapping

pack-priv static final String
getMappedUDTName(Scope scope, QualifiedRecord<?> record)

Map an QualifiedRecord according to the configured org.jooq.SchemaMapping

pack-priv static final Method
getMatchingGetter(final Configuration configuration, final Class<?> type, final String name, final boolean makeAccessible)

Get the first getter method matching a given column name

pack-priv static final List<Field>
getMatchingMembers(final Configuration configuration, final Class<?> type, final String name, final boolean makeAccessible)

Get all members matching a given column name

pack-priv static final List<Method>
getMatchingSetters(final Configuration configuration, final Class<?> type, final String name, final boolean makeAccessible)

Get all setter methods matching a given column name

pack-priv static final String
getPropertyName(String methodName)

Get a property name associated with a getter/setter method name.

pack-priv static final RecordQualifier<?>
pack-priv static final RecordQualifier<?>
pack-priv static final boolean
hasAmbiguousNames(Collection<? extends Field<?>> fields)

pack-priv static final boolean
hasColumnAnnotations(final Configuration configuration, final Class<?> type)

Check whether type has any Column annotated members or methods

pack-priv static final boolean
hasDefaultConverter(Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final boolean
hasEmbeddedFields(Field<?>[] fields)

Deprecated as a consequence of Field being deprecated.
pack-priv static final boolean
hasEmbeddedFields(Iterable<? extends Field<?>> fields)

pack-priv static final <T, E extends Exception> T
ignoreNPE(ThrowingSupplier<? extends T, ? extends E> supplier, Supplier<? extends T> ifNPE)

Used to work around bugs in JDBC drivers, e.g. https://github.com/h2database/h2database/issues/3236

pack-priv static final void
increment(Map<Object, Object> data, Tools.SimpleDataKey key, Runnable runnable)

Increment a counter, run a runnable, and decrement the counter again.

pack-priv static final boolean
increment(Map<Object, Object> data, Tools.SimpleDataKey key)

Increment a counter and return true if the counter was zero prior to incrementing.

pack-priv static final IllegalArgumentException
indexFail(Fields row, Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final IllegalArgumentException
indexFail(Fields row, String fieldName)

pack-priv static final IllegalArgumentException
indexFail(Fields row, Name fieldName)

pack-priv static final IllegalArgumentException
indexFail(Fields row, int fieldIndex)

pack-priv static final int
indexOrFail(Fields row, Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final int
indexOrFail(Fields row, String fieldName)

pack-priv static final int
indexOrFail(Fields row, Name fieldName)

pack-priv static final int
indexOrFail(Fields row, int fieldIndex)

pack-priv static final InsertQueryImpl<?>
insertQueryImpl(Query query)

Deprecated as a consequence of InsertQueryImpl being deprecated.
pack-priv static final boolean
isDate(Class<?> t)

Whether a Java type is suitable for Types#DATE.

pack-priv static final boolean
isEmpty(Collection<?> collection)

pack-priv static final boolean
pack-priv static final boolean
isEmpty(Object[] array)

private static final ThrowingPredicate<? super Annotation, RuntimeException>
pack-priv static final boolean
pack-priv static final boolean
isNotEmpty(Collection<?> collection)

pack-priv static final boolean
pack-priv static final boolean
isNotEmpty(Object[] array)

pack-priv static final boolean
isParam(Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final boolean
isParamOrCastParam(Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final boolean
isPossiblyNullable(Field<?> f)

Deprecated as a consequence of Field being deprecated.
pack-priv static final boolean
pack-priv static final boolean
isScalarSubquery(Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final boolean
isSimple(Context<?> ctx, QueryPart part)

pack-priv static final boolean
isSimple(Context<?> ctx, QueryPart... parts)

pack-priv static final boolean
isTime(Class<?> t)

Whether a Java type is suitable for Types#TIME.

pack-priv static final boolean
isTimestamp(Class<?> t)

Whether a Java type is suitable for Types#TIMESTAMP.

pack-priv static final boolean
isVal(Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final boolean
pack-priv static final <T, U> Iterator<U>
iterator(Iterator<? extends T> iterator, Function<? super T, ? extends U> mapper)

pack-priv static final Tools.JPANamespace
jpaNamespace()

Check if JPA classes can be loaded.

pack-priv static final List<JSONEntry<?>>
jsonEntries(Field<?>[] entries)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Reflect
pack-priv static final Reflect
pack-priv static final Reflect
pack-priv static final Reflect
pack-priv static final <T> T
last(Collection<T> collection)

pack-priv static final <T> Set<T>
lazy(Set<T> set)

pack-priv static final <T> List<T>
lazy(List<T> list)

pack-priv static final <T> List<T>
lazy(List<T> list, int size)

pack-priv static final <T> T
let(T t, Consumer<? super @NotNull T> consumer)

pack-priv static final <T> List<T>
list(T... array)

Use this rather than Arrays#asList(Object...) for null-safety

pack-priv static final <T, U, E extends Exception> U[]
map(T[] array, ThrowingFunction<? super T, ? extends U, E> mapper, IntFunction<U[]> constructor)

Like Stream.of(array).map(mapper).toArray(constructor) but without the entire stream pipeline.

pack-priv static final <U, E extends Exception> U[]
map(int[] array, ThrowingIntFunction<? extends U, E> mapper, IntFunction<U[]> constructor)

Like Stream.of(array).map(mapper).toArray(constructor) but without the entire stream pipeline.

pack-priv static final <T, U, E extends Exception> U[]
map(Collection<? extends T> collection, ThrowingFunction<? super T, ? extends U, E> mapper, IntFunction<U[]> constructor)

Like Stream.of(array).map(mapper).toArray(constructor) but without the entire stream pipeline.

pack-priv static final <T, U, E extends Exception> U[]
map(T[] array, ThrowingObjIntFunction<? super T, ? extends U, E> mapper, IntFunction<U[]> constructor)

Like Stream.of(array).zipWithIndex().map(mapper).toArray(constructor) but without the entire stream pipeline.

pack-priv static final <U, E extends Exception> U[]
map(int[] array, ThrowingIntIntFunction<? extends U, E> mapper, IntFunction<U[]> constructor)

Like Stream.of(array).zipWithIndex().map(mapper).toArray(constructor) but without the entire stream pipeline.

pack-priv static final <T, U, E extends Exception> U[]
map(Collection<? extends T> collection, ThrowingObjIntFunction<? super T, ? extends U, E> mapper, IntFunction<U[]> constructor)

Like Stream.of(array).zipWithIndex().map(mapper).toArray(constructor) but without the entire stream pipeline.

pack-priv static final <T, U, E extends Exception> List<U>
map(T[] array, ThrowingFunction<? super T, ? extends U, E> mapper)

Like Stream.of(array).map(mapper).toList() but without the entire stream pipeline.

pack-priv static final <U, E extends Exception> List<U>
map(int[] array, ThrowingIntFunction<? extends U, E> mapper)

Like Stream.of(array).map(mapper).toList() but without the entire stream pipeline.

pack-priv static final <T, U, E extends Exception> List<U>
map(Iterable<? extends T> it, ThrowingFunction<? super T, ? extends U, E> mapper)

Like Stream.of(array).map(mapper).toList() but without the entire stream pipeline.

pack-priv static final <T, U, E extends Exception> List<U>
map(T[] array, ThrowingObjIntFunction<? super T, ? extends U, E> mapper)

Like Stream.of(array).zipWithIndex().map(mapper).toList() but without the entire stream pipeline.

pack-priv static final <U, E extends Exception> List<U>
map(int[] array, ThrowingIntIntFunction<? extends U, E> mapper)

Like Stream.of(array).zipWithIndex().map(mapper).toList() but without the entire stream pipeline.

pack-priv static final <T, U, E extends Exception> List<U>
map(Iterable<? extends T> it, ThrowingObjIntFunction<? super T, ? extends U, E> mapper)

Like Stream.of(array).map(mapper).toList() but without the entire stream pipeline.

pack-priv static final Map<Field<?>, Object>
mapOfChangedValues(Record record)

Turn a Record into a Map

pack-priv static final Object[]
pack-priv static final Name[]
names(String[] names)

pack-priv static final List<Name>
names(Collection<?> names)

private static final boolean
namesMatch(String name, String annotation)

pack-priv static final boolean
needsBackslashEscaping(Configuration configuration)

Whether backslash escaping is needed in inlined string literals.

private static final EmbeddableRecord<?>
newInstance(Class<? extends EmbeddableRecord<?>> type)

private static final <T> List<T>
pack-priv static final <R extends Record> RecordDelegate<R>
newRecord(boolean fetched, Class<R> type)

Create a new record

pack-priv static final <R extends Record> RecordDelegate<R>
newRecord(boolean fetched, Class<R> type, AbstractRow<R> fields)

Create a new record.

pack-priv static final <R extends Record> RecordDelegate<R>
newRecord(boolean fetched, RecordQualifier<R> type)

Create a new Table or UDT record.

pack-priv static final <R extends Record> RecordDelegate<R>
newRecord(boolean fetched, RecordQualifier<R> type, Configuration configuration)

Create a new Table or UDT record.

pack-priv static final <R extends Record> RecordDelegate<R>
newRecord(boolean fetched, Class<? extends R> type, AbstractRow<? extends R> fields, Configuration configuration)

Create a new record.

pack-priv static final <R extends Record> RecordDelegate<R>
newRecord(boolean fetched, Supplier<R> factory, Configuration configuration)

Create a new record.

pack-priv static final boolean
nonReplacingEmbeddable(Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final String
normaliseNameCase(Configuration configuration, String name, boolean quoted, Locale locale)

Normalise a name case depending on the dialect and the setting for ParseNameCase.

pack-priv static final <T> DataType<T>
nullable(DataType<T> defaultType, Field<?> f1)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
nullable(DataType<T> defaultType, Field<?> f1, Field<?> f2)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
nullable(DataType<T> defaultType, Field<?> f1, Field<?> f2, Field<?> f3)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
nullable(DataType<T> defaultType, Field<?>... fields)

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

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

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> Field<T>
nullSafe(Field<T> field, DataType<?> type)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Field<?>[]
nullSafe(Field<?>... fields)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Field<?>[]
nullSafe(Field<?>[] fields, DataType<?> type)

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

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
nullSafeDataType(Field<?>[] values)

Deprecated as a consequence of Field being deprecated.
pack-priv static final List<Field<?>>
nullSafeList(Field<?>... fields)

Deprecated as a consequence of Field being deprecated.
pack-priv static final List<Field<?>>
nullSafeList(Field<?>[] fields, DataType<?> type)

Deprecated as a consequence of Field being deprecated.
pack-priv static final Field<?>
nullSafeNoConvertVal(Object field, DataType<?> type)

Deprecated as a consequence of Field being deprecated.
In very rare cases, we want nullSafe(Field, DataType) behaviour but only for null values.
pack-priv static final Field<?>
nullSafeNoConvertValNotNull(Field<?> field, DataType<?> type)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> Field<T>
nullSafeNotNull(Field<T> field, DataType<?> type)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T, X extends Throwable> T
orElse(T t, ThrowingSupplier<? extends T, ? extends X> s)

pack-priv static final List<String[]>
parseHTML(String string)

private static final ParseNameCase
parseNameCase(Configuration configuration)

Get the ParseNameCase, looking up the default value from the parse dialect.

pack-priv static final List<String[]>
parseTXT(String string, String nullLiteral)

private static final void
parseTXTLine(List<int[]> positions, List<String[]> result, String string, String nullLiteral)

private static final List<String[]>
parseTXTLines(String nullLiteral, String[] strings, Pattern pattern, int matchLine, int headerLine, int dataLineStart, int dataLineEnd)

pack-priv static final String
pascalCase(String snakeCase)

pack-priv static final boolean
peek(char[]
The char array to peek into
sqlChars
,
int
The index within the char array to peek for a string
index
,
char[]
The string to peek for
peek
)

Peek for a string at a given index of a char[]

pack-priv static final boolean
peek(char[]
The char array to peek into
sqlChars
,
int
The index within the char array to peek for a string
index
,
char[]
The string to peek for
peek
,
boolean
A whitespace character in peekAny represents "any" whitespace character as defined in WHITESPACE_CHARACTERS, or in Java Regex "\s".
anyWhitespace
)

Peek for a string at a given index of a char[]

pack-priv static final boolean
peekAny(char[]
The char array to peek into
sqlChars
,
int
The index within the char array to peek for a string
index
,
char[][]
The strings to peek for
peekAny
)

Peek for several strings at a given index of a char[]

pack-priv static final boolean
peekAny(char[]
The char array to peek into
sqlChars
,
int
The index within the char array to peek for a string
index
,
char[][]
The strings to peek for
peekAny
,
boolean
A whitespace character in peekAny represents "any" whitespace character as defined in WHITESPACE_CHARACTERS, or in Java Regex "\s".
anyWhitespace
)

Peek for several strings at a given index of a char[]

private static final <C extends Context<? extends C>> C
preOrAppendSQL(Tools.SimpleDataKey key, C ctx, Query... queries)

pack-priv static final <C extends Context<? extends C>> C
prependInline(C ctx, String prepend, Field<?> inline, String append)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <C extends Context<? extends C>> C
prependSQL(C ctx, Query... queries)

pack-priv static final SelectFieldOrAsterisk
pack-priv static final <T> Field<T>
qualify(Table<?> table, Field<T> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <R extends Record> QuantifiedSelect<R>
quantify(QOM.Quantifier q, Select<R> select)

pack-priv static final List<QueryPart>
queryParts(Object... substitutes)

Create QueryPart objects from bind values or substitutes

pack-priv static final <R extends Record> Supplier<R>
recordFactory(Class<? extends R> type, AbstractRow<? extends R> row)

Create a new record factory.

pack-priv static final Class<? extends AbstractRecord>
recordType(int length)

pack-priv static final boolean
reference(Field<?> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> DataType<T>
removeGenerator(Configuration configuration, DataType<T> dataType)

pack-priv static final void
renderAndBind(Context<?> ctx, String sql, List<QueryPart> substitutes)

Render and bind a list of QueryPart to plain SQL

This will perform two actions:

  • When RenderContext is provided, it will render plain SQL to the context, substituting {numbered placeholders} and bind values if RenderContext#inline() is set
  • When BindContext is provided, it will bind the list of QueryPart according to the {numbered placeholders} and bind values in the sql string
pack-priv static final String
replaceAll(String string, Matcher matcher, Function<MatchResult, String> replacer)

Access to the JDK 9 Matcher#replaceAll(Function) function.

pack-priv static final void
resetChangedOnNotNull(Record record)

[#2700] [#3582] If a POJO attribute is NULL, but the column is NOT NULL then we should let the database apply DEFAULT values

pack-priv static final <T> T[]
reverse(T... array)

Reverse an array.

pack-priv static final <T> Iterable<T>
reverseIterable(final T... array)

Reverse iterate over an array.

pack-priv static final <T> Iterable<T>
reverseIterable(List<T> list)

Reverse iterate over a list.

pack-priv static final <T> Iterator<T>
reverseIterator(T... array)

Reverse iterate over an array.

pack-priv static final <T> Iterator<T>
reverseIterator(List<T> list)

Reverse iterate over a list.

pack-priv static final <R extends Record> AbstractRow<R>
row0(FieldsImpl<R> fields)

pack-priv static final AbstractRow<?>
row0(Collection<? extends Field<?>> fields)

pack-priv static final AbstractRow<?>
row0(Field<?>... fields)

Deprecated as a consequence of Field being deprecated.
pack-priv static final List<Row>
rows(Result<?> result)

Turn a Result into a list of Row

pack-priv static final void
safeClose(ExecuteListener listener, ExecuteContext ctx)

Safely close a statement

pack-priv static final void
safeClose(ExecuteListener listener, ExecuteContext ctx, boolean keepStatement)

Safely close a statement

pack-priv static final void
safeClose(ExecuteListener listener, ExecuteContext ctx, boolean keepStatement, boolean keepResultSet)

Safely close a statement

pack-priv static final String
sanitiseName(Configuration configuration, String name)

pack-priv static final DataType<?>
private static final BiFunction<Boolean, Table<?>, Boolean>
search(Table<?> table, Function<? super Table<?>, ? extends Table<?>> f)

pack-priv static final <R extends Record> SelectQueryImpl<R>
selectQueryImpl(QueryPart part)

Deprecated as a consequence of SelectQueryImpl being deprecated.
pack-priv static final void
setFetchSize(ExecuteContext ctx, int fetchSize)

Sets the statement's fetch size to the given value or org.jooq.conf.Settings#getFetchSize() if 0.

pack-priv static final Settings
settings(Attachable attachable)

Get a configuration's settings or default settings if the configuration is null.

pack-priv static final Settings
settings(Configuration configuration)

Get a configuration's settings or default settings if the configuration is null.

pack-priv static final <T> void
setValue(Record target, Field<T> targetField, Record source, Field<?> sourceField)

Deprecated as a consequence of Field being deprecated.
Type-safely copy a value from one record to another
pack-priv static final <T> void
setValue(AbstractRecord target, Field<T> targetField, int targetIndex, Record source, int sourceIndex)

Deprecated as a consequence of Field being deprecated.
Type-safely copy a value from one record to another
pack-priv static final <T> void
setValue(Record target, Field<T> targetField, Object value)

Deprecated as a consequence of Field being deprecated.
Type-safely set a value to a record
pack-priv static final <T> void
setValue(AbstractRecord target, Field<T> targetField, int targetIndex, Object value)

Deprecated as a consequence of Field being deprecated.
Type-safely set a value to a record
pack-priv static final <T> SortField<T>
pack-priv static final SortField<?>[]
sortFields(OrderField<?>[] fields)

pack-priv static final List<SortField<?>>
sortFields(Collection<? extends OrderField<?>> fields)

pack-priv static final boolean
pack-priv static final String
pack-priv static final Field<?>
tableField(Table<?> table, Object field)

Deprecated as a consequence of Field being deprecated.
Look up a field in a table, or create a new qualified field from the table.
pack-priv static final boolean
toplevel(Map<Object, Object> data, Tools.SimpleDataKey key)

Whether a counter is currently at the top level or not.

pack-priv static final void
pack-priv static final void
private static final void
pack-priv static final void
private static final void
pack-priv static final void
toSQLDDLTypeDeclarationIdentityAfterNull(Context<?> ctx, DataType<?> type)

If a type is an identity type, some dialects require the relevant keywords after the [ NOT ] NULL constraint.

pack-priv static final void
toSQLDDLTypeDeclarationIdentityBeforeNull(Context<?> ctx, DataType<?> type)

If a type is an identity type, some dialects require the relevant keywords before the [ NOT ] NULL constraint.

pack-priv static final RuntimeException
pack-priv static final DataAccessException
pack-priv static final DataAccessException
private static final DataAccessException
pack-priv static final RuntimeException
pack-priv static final void
traverseJoins(Iterable<? extends Table<?>> i, Consumer<? super Table<?>> consumer)

pack-priv static final void
traverseJoins(Table<?> t, Consumer<? super Table<?>> consumer)

pack-priv static final <T> T
traverseJoins(Iterable<? extends Table<?>> i, T result, Predicate<? super T> abort, BiFunction<? super T, ? super Table<?>, ? extends T> function)

pack-priv static final <T> T
traverseJoins(Table<?> t, T result, Predicate<? super T> abort, BiFunction<? super T, ? super Table<?>, ? extends T> function)

pack-priv static final <T> T
traverseJoins(Iterable<? extends Table<?>> i, T result, Predicate<? super T> abort, Predicate<? super JoinTable<J extends JoinTable<J>>> recurseLhs, Predicate<? super JoinTable<J extends JoinTable<J>>> recurseRhs, BiFunction<? super T, ? super JoinType, ? extends T> joinTypeFunction, BiFunction<? super T, ? super Table<?>, ? extends T> tableFunction)

pack-priv static final <T> T
traverseJoins(Table<?> t, T result, Predicate<? super T> abort, Predicate<? super JoinTable<J extends JoinTable<J>>> recurseLhs, Predicate<? super JoinTable<J extends JoinTable<J>>> recurseRhs, BiFunction<? super T, ? super JoinType, ? extends T> joinTypeFunction, BiFunction<? super T, ? super Table<?>, ? extends T> tableFunction)

pack-priv static final void
tryCatch(Context<?> ctx, DDLStatementType type, Consumer<? super Context<?>> runnable)

Wrap a DROP … IF EXISTS statement with BEGIN EXECUTE IMMEDIATE '…' EXCEPTION WHEN … END;, if IF EXISTS is not supported.

pack-priv static final void
tryCatch(Context<?> ctx, DDLStatementType type, Boolean container, Boolean element, Consumer<? super Context<?>> runnable)

pack-priv static final <T> Field<T>
unalias(Field<T> field)

Deprecated as a consequence of Field being deprecated.
pack-priv static final <R extends Record> Table<R>
unalias(Table<R> table)

pack-priv static final List<Field<?>>
unaliasedFields(Collection<? extends Field<?>> fields)

pack-priv static final <T> Field<T>
unaliasTable(Field<T> field)

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

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

Deprecated as a consequence of Field being deprecated.
pack-priv static final <T> SortField<T>
pack-priv static final <R extends Record> Table<R>
unwrap(Table<R> table)

pack-priv static final <R extends Record> Table<R>
unwrap(Table<R> table, boolean unalias)

pack-priv static final UpdateQueryImpl<?>
updateQueryImpl(Query query)

Deprecated as a consequence of UpdateQueryImpl being deprecated.
pack-priv static final <C extends Context<?>> C
visitAll(C ctx, Collection<? extends QueryPart> parts)

Visit each query part from a collection, given a context.

pack-priv static final <C extends Context<?>> C
visitAll(C ctx, QueryPart[] parts)

Visit each query part from an array, given a context.

pack-priv static final <Q extends QueryPart> void
visitAutoAliased(Context<?> ctx, Q q, Predicate<? super Context<?>> declaring, BiConsumer<? super Context<?>, ? super Q> visit)

pack-priv static final <C extends Context<?>> C
visitMappedSchema(C ctx, Name qualifiedName)

Apply RenderMapping to a qualified Name, assuming the Name#qualifier() describes the schema, if available.

pack-priv static final void
pack-priv static final void
visitSubquery(Context<?> ctx, QueryPart query, int characteristics)

pack-priv static final void
visitSubquery(Context<?> ctx, QueryPart query, int characteristics, boolean parentheses)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait