Top Description Methods
org.jooq

public Interface ResultQuery<R extends org.jooq.Record>

extends Fields, Query, Iterable<R extends Record>, Publisher<R extends Record>
Known Direct Subinterfaces
org.jooq.InsertResultStep, org.jooq.UpdateResultStep, org.jooq.impl.QOM.InsertReturning, org.jooq.impl.QOM.UpdateReturning, org.jooq.impl.QOM.DeleteReturning, org.jooq.DeleteResultStep, org.jooq.Select, org.jooq.CloseableResultQuery
Imports
java.sql.Connection, .PreparedStatement, .ResultSet, .Statement, java.util.Collection, .Iterator, .List, .Map, .Optional, .Set, .Spliterator, java.util.concurrent.CompletionStage, .Executor, java.util.function.Consumer, java.util.stream.Collector, .Stream, javax.sql.DataSource, org.jooq.conf.Settings, org.jooq.exception.DataAccessException, .DataTypeException, .InvalidResultException, .MappingException, .NoDataFoundException, .TooManyRowsException, org.jooq.impl.DefaultRecordMapper, org.jetbrains.annotations.Blocking, .NotNull, .Nullable

A query that can return results.

jOOQ distinguishes between ordinary Query types, such as Insert, Update, Delete, and any DDLQuery, which are meant to produce side effects in a database, and the ResultQuery, which is meant to produce a Result through various means.

The most common way to create a result is by calling fetch(), or by using the query's iterator() method in a foreach loop:


Result<TRecord> result = ctx.select(T.A, T.B).from(T).fetch();

for (TRecord record : ctx.select(T.A, T.B).from(T)) {
  // ...
}

Most approaches to fetching results in ResultQuery (including the above), fetch the entire JDBC ResultSet eagerly into memory, which allows for closing the underlying JDBC resources as quickly as possible. Such operations are not resourceful, i.e. users do not need to worry about closing any resources. None of the many ways of fetching data will affect the SQL query projection (SELECT clause). Hence, users must make sure not to fetch any unnecessary columns, themselves.

There are, however, some ways of fetching results lazily, and thus in a resourceful way. These include:

In both cases, it is recommended to explicitly close the underlying resources (i.e. JDBC ResultSet) using try-with-resources:


try (Cursor<TRecord> cursor = ctx.select(T.A, T.B).from(T).fetchLazy()) {
  for (;;) {
    TRecord record = cursor.fetchNext();
    if (record == null)
      break;

    // ...
  }
}

try (Stream<TRecord> stream = ctx.select(T.A, T.B).from(T).fetchStream()) {
  stream.forEach(record -> {
    // ...
  });
}

While most instances of ResultQuery implement Select, there also exist other types of ResultQuery constructed e.g. from plain SQL APIs, such as DSLContext#resultQuery(String).

Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public @NotNull ResultQuery<R>
bind(String
The named parameter name. If this is a number, then this is the same as calling bind(int, Object)
param
,
Object
The new bind value.
value
)

Redeclares org.jooq.Query.bind.

Bind a new value to a named parameter.
public @NotNull ResultQuery<R>
bind(int
The parameter index, starting with 1
index
,
Object
The new bind value.
value
)

Redeclares org.jooq.Query.bind.

Bind a new value to an indexed parameter.
public <X extends Record> @NotNull ResultQuery<X>
coerce(Table<X> table)

Coerce the result record type of this query to that of a table.

public @NotNull ResultQuery<Record>
coerce(Field<?>... fields)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public @NotNull ResultQuery<Record>
coerce(Collection<? extends Field<?>> fields)

Coerce the result record type of this query to that of a set of fields.

public <T1> @NotNull ResultQuery<Record1<T1>>
coerce(Field<T1> field1)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2> @NotNull ResultQuery<Record2<T1, T2>>
coerce(Field<T1> field1, Field<T2> field2)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3> @NotNull ResultQuery<Record3<T1, T2, T3>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4> @NotNull ResultQuery<Record4<T1, T2, T3, T4>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5> @NotNull ResultQuery<Record5<T1, T2, T3, T4, T5>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6> @NotNull ResultQuery<Record6<T1, T2, T3, T4, T5, T6>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7> @NotNull ResultQuery<Record7<T1, T2, T3, T4, T5, T6, T7>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8> @NotNull ResultQuery<Record8<T1, T2, T3, T4, T5, T6, T7, T8>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9> @NotNull ResultQuery<Record9<T1, T2, T3, T4, T5, T6, T7, T8, T9>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> @NotNull ResultQuery<Record10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> @NotNull ResultQuery<Record11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> @NotNull ResultQuery<Record12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> @NotNull ResultQuery<Record13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> @NotNull ResultQuery<Record14<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> @NotNull ResultQuery<Record15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> @NotNull ResultQuery<Record16<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> @NotNull ResultQuery<Record17<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> @NotNull ResultQuery<Record18<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17, Field<T18> field18)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> @NotNull ResultQuery<Record19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17, Field<T18> field18, Field<T19> field19)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> @NotNull ResultQuery<Record20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17, Field<T18> field18, Field<T19> field19, Field<T20> field20)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> @NotNull ResultQuery<Record21<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17, Field<T18> field18, Field<T19> field19, Field<T20> field20, Field<T21> field21)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> @NotNull ResultQuery<Record22<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>>
coerce(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17, Field<T18> field18, Field<T19> field19, Field<T20> field20, Field<T21> field21, Field<T22> field22)

Deprecated as a consequence of Field being deprecated.
Coerce the result record type of this query to that of a set of fields.
public <X, A> X

Returns:

The result of the collection.
collect
(Collector<? super R, A, X>
The collector that collects all records and accumulates them into a result type.
collector
)

Reduce the execution results of this query using a Collector.

public @NotNull Result<R>

Returns:

The result. This will never be null.
fetch
()

Execute the query and return the generated result.

public <T> @NotNull List<T>

Returns:

The result. This will never be null.
fetch
(Field<T> field)

Deprecated as a consequence of Field being deprecated.
Execute the query and return all values for a field from the generated result, using field(Field) for lookup.
public <U> @NotNull List<U>

Returns:

The result. This will never be null.
fetch
(Field<?> field, Class<? extends U> type)

Deprecated as a consequence of Field being deprecated.
Execute the query and return all values for a field from the generated result, using field(Field) for lookup.
public <T, U> @NotNull List<U>

Returns:

The result. This will never be null.
fetch
(Field<T> field, Converter<? super T, ? extends U> converter)

Deprecated as a consequence of Field being deprecated.
Execute the query and return all values for a field from the generated result, using field(Field) for lookup.
public @NotNull List<?>

Returns:

The result. This will never be null.
fetch
(int fieldIndex)

Execute the query and return all values for a field index from the generated result.

public <U> @NotNull List<U>

Returns:

The result. This will never be null.
fetch
(int fieldIndex, Class<? extends U> type)

Execute the query and return all values for a field index from the generated result.

public <U> @NotNull List<U>

Returns:

The result. This will never be null.
fetch
(int fieldIndex, Converter<?, ? extends U> converter)

Execute the query and return all values for a field index from the generated result.

public @NotNull List<?>

Returns:

The result. This will never be null.
fetch
(String fieldName)

Execute the query and return all values for a field name from the generated result, using field(String) for lookup.

public <U> @NotNull List<U>

Returns:

The result. This will never be null.
fetch
(String fieldName, Class<? extends U> type)

Execute the query and return all values for a field name from the generated result, using field(String) for lookup.

public <U> @NotNull List<U>

Returns:

The result. This will never be null.
fetch
(String fieldName, Converter<?, ? extends U> converter)

Execute the query and return all values for a field name from the generated result, using field(String) for lookup.

public @NotNull List<?>

Returns:

The result. This will never be null.
fetch
(Name fieldName)

Execute the query and return all values for a field name from the generated result, using field(Name) for lookup.

public <U> @NotNull List<U>

Returns:

The result. This will never be null.
fetch
(Name fieldName, Class<? extends U> type)

Execute the query and return all values for a field name from the generated result, using field(Name) for lookup.

public <U> @NotNull List<U>

Returns:

The result. This will never be null.
fetch
(Name fieldName, Converter<?, ? extends U> converter)

Execute the query and return all values for a field name from the generated result, using field(Name) for lookup.

public <E> @NotNull List<E>

Returns:

The result. This will never be null.
fetch
(RecordMapper<? super R, E>
The mapper callback
mapper
)

Fetch results into a custom mapper callback.

public <T> T

Returns:

The resulting value or null if the query returned no records.
fetchAny
(Field<T> field)

Deprecated as a consequence of Field being deprecated.
Execute the query and return at most one resulting value for a field from the generated result, using field(Field) for lookup.
public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchAny
(Field<?> field, Class<? extends U> type)

Deprecated as a consequence of Field being deprecated.
Execute the query and return at most one resulting value for a field from the generated result, using field(Field) for lookup.
public <T, U> U

Returns:

The resulting value or null if the query returned no records.
fetchAny
(Field<T> field, Converter<? super T, ? extends U> converter)

Deprecated as a consequence of Field being deprecated.
Execute the query and return at most one resulting value for a field from the generated result, using field(Field) for lookup.
public @Nullable Object

Returns:

The resulting value or null if the query returned no records.
fetchAny
(int fieldIndex)

Execute the query and return at most one resulting value for a field index from the generated result.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchAny
(int fieldIndex, Class<? extends U> type)

Execute the query and return at most one resulting value for a field index from the generated result.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchAny
(int fieldIndex, Converter<?, ? extends U> converter)

Execute the query and return at most one resulting value for a field index from the generated result.

public @Nullable Object

Returns:

The resulting value or null if the query returned no records.
fetchAny
(String fieldName)

Execute the query and return at most one resulting value for a field name from the generated result, using field(String) for lookup.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchAny
(String fieldName, Class<? extends U> type)

Execute the query and return at most one resulting value for a field name from the generated result, using field(String) for lookup.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchAny
(String fieldName, Converter<?, ? extends U> converter)

Execute the query and return at most one resulting value for a field name from the generated result, using field(String) for lookup.

public @Nullable Object

Returns:

The resulting value or null if the query returned no records.
fetchAny
(Name fieldName)

Execute the query and return at most one resulting value for a field name from the generated result, using field(Name) for lookup.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchAny
(Name fieldName, Class<? extends U> type)

Execute the query and return at most one resulting value for a field name from the generated result, using field(Name) for lookup.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchAny
(Name fieldName, Converter<?, ? extends U> converter)

Execute the query and return at most one resulting value for a field name from the generated result, using field(Name) for lookup.

public R

Returns:

The first resulting record or null if the query returns no records.
fetchAny
()

Execute the query and return at most one resulting record.

public <E> E

Returns:

The first resulting record or null if the query returns no records.
fetchAny
(RecordMapper<? super R, E> mapper)

Execute the query and return at most one resulting record.

public @Nullable @Nullable Object[]

Returns:

The resulting record or null if the query returns no records.
fetchAnyArray
()

Execute the query and return at most one resulting record as an array

You can access data like this

query.fetchAnyArray()[fieldIndex]
public <
The generic entity type.
E
>
E

Returns:

The resulting record or null if the query returns no records.
fetchAnyInto
(Class<? extends E>
The entity type.
type
)

Map resulting records onto a custom type.

public <
The generic table record type.
Z extends Record
>
Z

Returns:

The resulting record or null if the query returns no records.
fetchAnyInto
(Table<Z>
The table type.
table
)

Map resulting records onto a custom record.

public @Nullable Map<String, Object>

Returns:

The resulting record or null if the query returns no records.
fetchAnyMap
()

Execute the query and return at most one resulting record as a name/value map.

public @NotNull R[]

Returns:

The result. This will never be null.
fetchArray
()

Execute the query and return the generated result as an array of records.

public @NotNull @Nullable Object[]

Returns:

The resulting values. This may be an array type more concrete than Object[], depending on whether jOOQ has any knowledge about fieldIndex's actual type. This will never be null.
fetchArray
(int fieldIndex)

Execute the query and return all values for a field index from the generated result.

public <U> @NotNull U[]

Returns:

The resulting values. This will never be null.
fetchArray
(int fieldIndex, Class<? extends U> type)

Execute the query and return all values for a field index from the generated result.

public <U> @NotNull U[]

Returns:

The resulting values. This will never be null.
fetchArray
(int fieldIndex, Converter<?, ? extends U> converter)

Execute the query and return all values for a field index from the generated result.

public @NotNull @Nullable Object[]

Returns:

The resulting values. This may be an array type more concrete than Object[], depending on whether jOOQ has any knowledge about fieldName's actual type. This will never be null.
fetchArray
(String fieldName)

Execute the query and return all values for a field name from the generated result, using field(String) for lookup.

public <U> @NotNull U[]

Returns:

The resulting values. This will never be null.
fetchArray
(String fieldName, Class<? extends U> type)

Execute the query and return all values for a field name from the generated result, using field(String) for lookup.

public <U> @NotNull U[]

Returns:

The resulting values. This will never be null.
fetchArray
(String fieldName, Converter<?, ? extends U> converter)

Execute the query and return all values for a field name from the generated result, using field(String) for lookup.

public @NotNull @Nullable Object[]

Returns:

The resulting values. This may be an array type more concrete than Object[], depending on whether jOOQ has any knowledge about fieldName's actual type. This will never be null.
fetchArray
(Name fieldName)

Execute the query and return all values for a field name from the generated result, using field(Name) for lookup.

public <U> @NotNull U[]

Returns:

The resulting values. This will never be null.
fetchArray
(Name fieldName, Class<? extends U> type)

Execute the query and return all values for a field name from the generated result, using field(Name) for lookup.

public <U> @NotNull U[]

Returns:

The resulting values. This will never be null.
fetchArray
(Name fieldName, Converter<?, ? extends U> converter)

Execute the query and return all values for a field name from the generated result, using field(Name) for lookup.

public <T> @NotNull T[]

Returns:

The result. This will never be null.
fetchArray
(Field<T> field)

Deprecated as a consequence of Field being deprecated.
Execute the query and return all values for a field from the generated result, using field(Field) for lookup.
public <U> @NotNull U[]

Returns:

The result. This will never be null.
fetchArray
(Field<?> field, Class<? extends U> type)

Deprecated as a consequence of Field being deprecated.
Execute the query and return all values for a field from the generated result, using field(Field) for lookup.
public <T, U> @NotNull U[]

Returns:

The result. This will never be null.
fetchArray
(Field<T> field, Converter<? super T, ? extends U> converter)

Deprecated as a consequence of Field being deprecated.
Execute the query and return all values for a field from the generated result, using field(Field) for lookup.
public @NotNull @NotNull @Nullable Object[][]

Returns:

The result. This will never be null.
fetchArrays
()

Execute the query and return the generated result as an Object matrix.

public @NotNull CompletionStage<Result<R>>

Returns:

The completion stage. The completed result will never be null.
fetchAsync
()

Fetch results in a new CompletionStage.

public @NotNull CompletionStage<Result<R>>

Returns:

The completion stage. The completed result will never be null.
fetchAsync
(Executor executor)

Fetch results in a new CompletionStage that is asynchronously completed by a task running in the given executor.

public <
The key's generic field type
K
>
@NotNull Map<K, Result<R>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Field<K>
The key field.
key
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with one of the result's columns as key and a list of corresponding records as value, using field(Field) for lookup.
public @NotNull Map<?, Result<R>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(int
The key field index.
keyFieldIndex
)

Execute the query and return a Map with one of the result's columns as key and a list of corresponding records as value.

public @NotNull Map<?, Result<R>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(String
The key field name.
keyFieldName
)

Execute the query and return a Map with one of the result's columns as key and a list of corresponding records as value, using field(String) for lookup.

public @NotNull Map<?, Result<R>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Name
The key field name.
keyFieldName
)

Execute the query and return a Map with one of the result's columns as key and a list of corresponding records as value, using field(Name) for lookup.

public <
The key's generic field type
K
,
The value's generic field type
V
>
@NotNull Map<K, List<V>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Field<K>
The key field.
key
,
Field<V>
The value field
value
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with one of the result's columns as key and another one of the result's columns as value, using field(Field) for lookup.
public @NotNull Map<?, List<?>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(int
The key field index.
keyFieldIndex
,
int
The value field index.
valueFieldIndex
)

Execute the query and return a Map with one of the result's columns as key and another one of the result's columns as value.

public @NotNull Map<?, List<?>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(String
The key field name.
keyFieldName
,
String
The value field name.
valueFieldName
)

Execute the query and return a Map with one of the result's columns as key and another one of the result's columns as value, using field(String) for lookup.

public @NotNull Map<?, List<?>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Name
The key field name.
keyFieldName
,
Name
The value field name.
valueFieldName
)

Execute the query and return a Map with one of the result's columns as key and another one of the result's columns as value, using field(Name) for lookup.

public @NotNull Map<Record, Result<R>>

Returns:

A Map containing grouped results. This will never be null.
fetchGroups
(Field<?>[]
The keys used for result grouping. If this is null or an empty array, the resulting map will contain at most one entry.
keys
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with the result grouped by the given keys, using field(Field) for lookup.
public @NotNull Map<Record, Result<R>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(int[]
The keys used for result grouping. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldIndexes
)

Execute the query and return a Map with the result grouped by the given keys.

public @NotNull Map<Record, Result<R>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(String[]
The keys used for result grouping. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
)

Execute the query and return a Map with the result grouped by the given keys, using field(String) for lookup.

public @NotNull Map<Record, Result<R>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Name[]
The keys used for result grouping. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
)

Execute the query and return a Map with the result grouped by the given keys, using field(Name) for lookup.

public @NotNull Map<Record, Result<Record>>

Returns:

A Map containing grouped results. This will never be null.
fetchGroups
(Field<?>[]
The keys used for result grouping. If this is null or an empty array, the resulting map will contain at most one entry.
keys
,
Field<?>[]
The values.
values
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with the result grouped by the given keys, using field(Field) for lookup.
public @NotNull Map<Record, Result<Record>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(int[]
The keys used for result grouping. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldIndexes
,
int[]
The values.
valueFieldIndexes
)

Execute the query and return a Map with the result grouped by the given keys.

public @NotNull Map<Record, Result<Record>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(String[]
The keys used for result grouping. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
,
String[]
The values.
valueFieldNames
)

Execute the query and return a Map with the result grouped by the given keys, using field(String) for lookup.

public @NotNull Map<Record, Result<Record>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Name[]
The keys used for result grouping. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
,
Name[]
The values returned per group.
valueFieldNames
)

Execute the query and return a Map with the result grouped by the given keys, using field(Name) for lookup.

public <E> @NotNull Map<Record, List<E>>

Returns:

A Map containing grouped results. This will never be null.
fetchGroups
(Field<?>[]
The keys. If this is null or an empty array, the resulting map will contain at most one entry.
keys
,
Class<? extends E>
The entity type.
type
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with results grouped by the given keys and mapped into the given entity type, using field(Field) for lookup.
public <E> @NotNull Map<Record, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(int[]
The keys. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldIndexes
,
Class<? extends E>
The entity type.
type
)

Execute the query and return a Map with results grouped by the given keys and mapped into the given entity type.

public <E> @NotNull Map<Record, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(String[]
The keys. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
,
Class<? extends E>
The entity type.
type
)

Execute the query and return a Map with results grouped by the given keys and mapped into the given entity type, using field(String) for lookup.

public <E> @NotNull Map<Record, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Name[]
The keys. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
,
Class<? extends E>
The entity type.
type
)

Execute the query and return a Map with results grouped by the given keys and mapped into the given entity type, using field(Name) for lookup.

public <E> @NotNull Map<Record, List<E>>

Returns:

A Map containing grouped results. This will never be null.
fetchGroups
(Field<?>[]
The keys. If this is null or an empty array, the resulting map will contain at most one entry.
keys
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with results grouped by the given keys and mapped by the given mapper, using field(Field) for lookup.
public <E> @NotNull Map<Record, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(int[]
The keys. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldIndexes
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Execute the query and return a Map with results grouped by the given keys and mapped by the given mapper.

public <E> @NotNull Map<Record, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(String[]
The keys. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Execute the query and return a Map with results grouped by the given keys and mapped by the given mapper, using field(String) for lookup.

public <E> @NotNull Map<Record, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Name[]
The keys. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Execute the query and return a Map with results grouped by the given keys and mapped by the given mapper, using field(Name) for lookup.

public <K> @NotNull Map<K, Result<R>>

Returns:

A Map containing grouped results. This will never be null.
fetchGroups
(Class<? extends K>
The key type. If this is null, the resulting map will contain at most one entry.
keyType
)

Execute the query and return a Map with results grouped by the given key entity.

public <K, V> @NotNull Map<K, List<V>>

Returns:

A Map containing grouped results. This will never be null.
fetchGroups
(Class<? extends K>
The key type. If this is null, the resulting map will contain at most one entry.
keyType
,
Class<? extends V>
The value type.
valueType
)

Execute the query and return a Map with results grouped by the given key entity and mapped into the given entity type.

public <K, V> @NotNull Map<K, List<V>>

Returns:

A Map containing grouped results. This will never be null.
fetchGroups
(Class<? extends K>
The key type. If this is null, the resulting map will contain at most one entry.
keyType
,
RecordMapper<? super R, V>
The value mapper.
valueMapper
)

Execute the query and return a Map with results grouped by the given key entity and mapped into the given entity type.

public <K> @NotNull Map<K, Result<R>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(RecordMapper<? super R, K>
The key mapper.
keyMapper
)

Execute the query and return a Map with results grouped by the given key entity and mapped into the given entity type.

public <K, V> @NotNull Map<K, List<V>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(RecordMapper<? super R, K>
The key mapper.
keyMapper
,
Class<V>
The value type.
valueType
)

Execute the query and return a Map with results grouped by the given key entity and mapped into the given entity type.

public <K, V> @NotNull Map<K, List<V>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(RecordMapper<? super R, K>
The key mapper.
keyMapper
,
RecordMapper<? super R, V>
The value mapper.
valueMapper
)

Execute the query and return a Map with results grouped by the given key entity and mapped into the given entity type.

public <S extends Record> @NotNull Map<S, Result<R>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Table<S>
The key table. May not be null.
table
)

Execute the query and return a Map with the result grouped by the given table.

public <S extends Record, T extends Record> @NotNull Map<S, Result<T>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Table<S>
The key table. May not be null.
keyTable
,
Table<T>
The value table. May not be null.
valueTable
)

Execute the query and return a Map with the result grouped by the given table.

public <E, S extends Record> @NotNull Map<S, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Table<S>
The key table. May not be null.
table
,
Class<? extends E>
The entity type.
type
)

Execute the query and return a Map with results grouped by the given table and mapped into the given entity type.

public <E, S extends Record> @NotNull Map<S, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Table<S>
The key table. May not be null.
table
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Execute the query and return a Map with results grouped by the given table and mapped by the given mapper.

public <
The key's generic field type
K
,
The generic entity type.
E
>
@NotNull Map<K, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Field<K>
The key field.
key
,
Class<? extends E>
The entity type.
type
)

Deprecated as a consequence of Field being deprecated.
Return a Map with results grouped by the given key and mapped into the given entity type, using field(Field) for lookup.
public <E> @NotNull Map<?, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(int
The key field index.
keyFieldIndex
,
Class<? extends E>
The entity type.
type
)

Return a Map with results grouped by the given key and mapped into the given entity type.

public <E> @NotNull Map<?, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(String
The key field name.
keyFieldName
,
Class<? extends E>
The entity type.
type
)

Return a Map with results grouped by the given key and mapped into the given entity type, using field(String) for lookup.

public <E> @NotNull Map<?, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Name
The key field name.
keyFieldName
,
Class<? extends E>
The entity type.
type
)

Return a Map with results grouped by the given key and mapped into the given entity type, using field(Name) for lookup.

public <
The key's generic field type
K
,
The generic entity type.
E
>
@NotNull Map<K, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Field<K>
The key field.
key
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Deprecated as a consequence of Field being deprecated.
Return a Map with results grouped by the given key and mapped by the given mapper, using field(Field) for lookup.
public <E> @NotNull Map<?, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(int
The key field index.
keyFieldIndex
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Return a Map with results grouped by the given key and mapped by the given mapper.

public <E> @NotNull Map<?, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(String
The key field name.
keyFieldName
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Return a Map with results grouped by the given key and mapped by the given mapper, using field(String) for lookup.

public <E> @NotNull Map<?, List<E>>

Returns:

A Map containing the results. This will never be null.
fetchGroups
(Name
The key field name.
keyFieldName
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Return a Map with results grouped by the given key and mapped by the given mapper, using field(Name) for lookup.

public <
The generic entity type.
E
>
@NotNull List<E>

Returns:

The results. This will never be null.
fetchInto
(Class<? extends E>
The entity type.
type
)

Map resulting records onto a custom type.

public <
The generic table record type.
Z extends Record
>
@NotNull Result<Z>

Returns:

The results. This will never be null.
fetchInto
(Table<Z>
The table type.
table
)

Map resulting records onto a custom record.

public <H extends RecordHandler<? super R>> H

Returns:

Convenience result, returning the parameter handler itself
fetchInto
(H
The handler callback
handler
)

Deprecated for removal since 3.15. - 3.15.0 - [#11902] - Use Iterable#forEach(Consumer) based methods, instead.
Fetch results into a custom handler callback.
public @NotNull Cursor<R>

Returns:

The resulting cursor. This will never be null.
fetchLazy
()

Execute the query and "lazily" return the generated result.

public @NotNull Results

Returns:

The resulting records. This will never be null.
fetchMany
()

Execute a query, possibly returning several result sets.

public <
The key's generic field type
K
>
@NotNull Map<K, R>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Field<K>
The key field. Client code must assure that this field is unique in the result set.
key
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with one of the result's columns as key and the corresponding records as value, using field(Field) for lookup.
public @NotNull Map<?, R>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(int
The key field. Client code must assure that this field is unique in the result set.
keyFieldIndex
)

Execute the query and return a Map with one of the result's columns as key and the corresponding records as value.

public @NotNull Map<?, R>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(String
The key field. Client code must assure that this field is unique in the result set.
keyFieldName
)

Execute the query and return a Map with one of the result's columns as key and the corresponding records as value, using field(String) for lookup.

public @NotNull Map<?, R>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Name
The key field. Client code must assure that this field is unique in the result set.
keyFieldName
)

Execute the query and return a Map with one of the result's columns as key and the corresponding records as value, using field(Name) for lookup.

public <
The key's generic field type
K
,
The value's generic field type
V
>
@NotNull Map<K, V>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Field<K>
The key field. Client code must assure that this field is unique in the result set.
key
,
Field<V>
The value field
value
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with one of the result's columns as key and another one of the result's columns as value, using field(Field) for lookup.
public @NotNull Map<?, ?>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(int
The key field. Client code must assure that this field is unique in the result set.
keyFieldIndex
,
int
The value field
valueFieldIndex
)

Execute the query and return a Map with one of the result's columns as key and another one of the result's columns as value.

public @NotNull Map<?, ?>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(String
The key field. Client code must assure that this field is unique in the result set.
keyFieldName
,
String
The value field
valueFieldName
)

Execute the query and return a Map with one of the result's columns as key and another one of the result's columns as value, using field(String) for lookup.

public @NotNull Map<?, ?>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Name
The key field. Client code must assure that this field is unique in the result set.
keyFieldName
,
Name
The value field
valueFieldName
)

Execute the query and return a Map with one of the result's columns as key and another one of the result's columns as value, using field(Name) for lookup.

public @NotNull Map<Record, R>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Field<?>[]
The keys. Client code must assure that keys are unique in the result set.
keys
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with keys as a map key and the corresponding record as value, using field(Field) for lookup.
public @NotNull Map<Record, R>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(int[]
The keys. Client code must assure that keys are unique in the result set.
keyFieldIndexes
)

Execute the query and return a Map with keys as a map key and the corresponding record as value.

public @NotNull Map<Record, R>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(String[]
The keys. Client code must assure that keys are unique in the result set.
keyFieldNames
)

Execute the query and return a Map with keys as a map key and the corresponding record as value, using field(String) for lookup.

public @NotNull Map<Record, R>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Name[]
The keys. Client code must assure that keys are unique in the result set.
keyFieldNames
)

Execute the query and return a Map with keys as a map key and the corresponding record as value, using field(Name) for lookup.

public @NotNull Map<Record, Record>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Field<?>[]
The keys. Client code must assure that keys are unique in the result set.
keys
,
Field<?>[]
The values.
values
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with keys as a map key and the corresponding record as value, using field(Field) for lookup.
public @NotNull Map<Record, Record>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(int[]
The keys. Client code must assure that keys are unique in the result set.
keyFieldIndexes
,
int[]
The values.
valueFieldIndexes
)

Execute the query and return a Map with keys as a map key and the corresponding record as value.

public @NotNull Map<Record, Record>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(String[]
The keys. Client code must assure that keys are unique in the result set.
keyFieldNames
,
String[]
The values.
valueFieldNames
)

Execute the query and return a Map with keys as a map key and the corresponding record as value, using field(String) for lookup.

public @NotNull Map<Record, Record>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Name[]
The keys. Client code must assure that keys are unique in the result set.
keyFieldNames
,
Name[]
The values.
valueFieldNames
)

Execute the query and return a Map with keys as a map key and the corresponding record as value, using field(Name) for lookup.

public <E> @NotNull Map<List<?>, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Field<?>[]
The keys. Client code must assure that keys are unique in the result set. If this is null or an empty array, the resulting map will contain at most one entry.
keys
,
Class<? extends E>
The entity type.
type
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with results grouped by the given keys and mapped into the given entity type, using field(Field) for lookup.
public <E> @NotNull Map<List<?>, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(int[]
The keys. Client code must assure that keys are unique in the result set. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldIndexes
,
Class<? extends E>
The entity type.
type
)

Execute the query and return a Map with results grouped by the given keys and mapped into the given entity type.

public <E> @NotNull Map<List<?>, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(String[]
The keys. Client code must assure that keys are unique in the result set. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
,
Class<? extends E>
The entity type.
type
)

Execute the query and return a Map with results grouped by the given keys and mapped into the given entity type, using field(String) for lookup.

public <E> @NotNull Map<List<?>, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Name[]
The keys. Client code must assure that keys are unique in the result set. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
,
Class<? extends E>
The entity type.
type
)

Execute the query and return a Map with results grouped by the given keys and mapped into the given entity type, using field(Name) for lookup.

public <E> @NotNull Map<List<?>, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Field<?>[]
The keys. Client code must assure that keys are unique in the result set. If this is null or an empty array, the resulting map will contain at most one entry.
keys
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with results grouped by the given keys and mapped by the given mapper, using field(Field) for lookup.
public <E> @NotNull Map<List<?>, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(int[]
The keys. Client code must assure that keys are unique in the result set. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldIndexes
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Execute the query and return a Map with results grouped by the given keys and mapped by the given mapper.

public <E> @NotNull Map<List<?>, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(String[]
The keys. Client code must assure that keys are unique in the result set. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Execute the query and return a Map with results grouped by the given keys and mapped by the given mapper, using field(String) for lookup.

public <E> @NotNull Map<List<?>, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Name[]
The keys. Client code must assure that keys are unique in the result set. If this is null or an empty array, the resulting map will contain at most one entry.
keyFieldNames
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Execute the query and return a Map with results grouped by the given keys and mapped by the given mapper, using field(Name) for lookup.

public <K> @NotNull Map<K, R>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Class<? extends K>
The key type. If this is null, the resulting map will contain at most one entry.
keyType
)

Execute the query and return a Map with results grouped by the given key entity.

public <K, V> @NotNull Map<K, V>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Class<? extends K>
The key type. If this is null, the resulting map will contain at most one entry.
keyType
,
Class<? extends V>
The value type.
valueType
)

Execute the query and return a Map with results grouped by the given key entity and mapped into the given entity type.

public <K, V> @NotNull Map<K, V>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Class<? extends K>
The key type. If this is null, the resulting map will contain at most one entry.
keyType
,
RecordMapper<? super R, V>
The value mapper.
valueMapper
)

Execute the query and return a Map with results grouped by the given key entity and mapped into the given entity type.

public <K> @NotNull Map<K, R>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(RecordMapper<? super R, K>
The key mapper.
keyMapper
)

Execute the query and return a Map with results grouped by the given key entity and mapped into the given entity type.

public <K, V> @NotNull Map<K, V>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(RecordMapper<? super R, K>
The key mapper.
keyMapper
,
Class<V>
The value type.
valueType
)

Execute the query and return a Map with results grouped by the given key entity and mapped into the given entity type.

public <K, V> @NotNull Map<K, V>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(RecordMapper<? super R, K>
The key mapper.
keyMapper
,
RecordMapper<? super R, V>
The value mapper.
valueMapper
)

Execute the query and return a Map with results grouped by the given key entity and mapped into the given entity type.

public <S extends Record> @NotNull Map<S, R>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Table<S>
The key table. Client code must assure that keys are unique in the result set. May not be null.
table
)

Execute the query and return a Map with table as a map key and the corresponding record as value.

public <S extends Record, T extends Record> @NotNull Map<S, T>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Table<S>
The key table. Client code must assure that keys are unique in the result set. May not be null.
keyTable
,
Table<T>
The value table. May not be null.
valueTable
)

Execute the query and return a Map with table as a map key and the corresponding record as value.

public <E, S extends Record> @NotNull Map<S, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Table<S>
The key table. Client code must assure that keys are unique in the result set. May not be null.
table
,
Class<? extends E>
The entity type.
type
)

Execute the query and return a Map with results grouped by the given table and mapped into the given entity type.

public <E, S extends Record> @NotNull Map<S, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Table<S>
The key table. Client code must assure that keys are unique in the result set. May not be null.
table
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Execute the query and return a Map with results grouped by the given table and mapped by the given mapper.

public <K, E> @NotNull Map<K, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Field<K>
The key. Client code must assure that key is unique in the result set.
key
,
Class<? extends E>
The entity type.
type
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with results grouped by the given key and mapped into the given entity type, using field(Field) for lookup.
public <E> @NotNull Map<?, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(int
The key. Client code must assure that key is unique in the result set.
keyFieldIndex
,
Class<? extends E>
The entity type.
type
)

Execute the query and return a Map with results grouped by the given key and mapped into the given entity type.

public <E> @NotNull Map<?, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(String
The key. Client code must assure that key is unique in the result set.
keyFieldName
,
Class<? extends E>
The entity type.
type
)

Execute the query and return a Map with results grouped by the given key and mapped into the given entity type, using field(String) for lookup.

public <E> @NotNull Map<?, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Name
The key. Client code must assure that key is unique in the result set.
keyFieldName
,
Class<? extends E>
The entity type.
type
)

Execute the query and return a Map with results grouped by the given key and mapped into the given entity type, using field(Name) for lookup.

public <K, E> @NotNull Map<K, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Field<K>
The key. Client code must assure that key is unique in the result set.
key
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Deprecated as a consequence of Field being deprecated.
Execute the query and return a Map with results grouped by the given key and mapped by the given mapper, using field(Field) for lookup.
public <E> @NotNull Map<?, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(int
The key. Client code must assure that key is unique in the result set.
keyFieldIndex
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Execute the query and return a Map with results grouped by the given key and mapped by the given mapper.

public <E> @NotNull Map<?, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(String
The key. Client code must assure that key is unique in the result set.
keyFieldName
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Execute the query and return a Map with results grouped by the given key and mapped by the given mapper, using field(String) for lookup.

public <E> @NotNull Map<?, E>

Returns:

A Map containing grouped results. This will never be null.
fetchMap
(Name
The key. Client code must assure that key is unique in the result set.
keyFieldName
,
RecordMapper<? super R, E>
The mapper callback.
mapper
)

Execute the query and return a Map with results grouped by the given key and mapped by the given mapper, using field(Name) for lookup.

public @NotNull List<Map<String, Object>>

Returns:

The result. This will never be null.
fetchMaps
()

Execute the query and return the generated result as a list of name/value maps.

public <T> T

Returns:

The resulting value or null if the query returned no records.
fetchOne
(Field<T> field)

Deprecated as a consequence of Field being deprecated.
Execute the query and return at most one resulting value for a field from the generated result, using field(Field) for lookup.
public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchOne
(Field<?> field, Class<? extends U> type)

Deprecated as a consequence of Field being deprecated.
Execute the query and return at most one resulting value for a field from the generated result, using field(Field) for lookup.
public <T, U> U

Returns:

The resulting value or null if the query returned no records.
fetchOne
(Field<T> field, Converter<? super T, ? extends U> converter)

Deprecated as a consequence of Field being deprecated.
Execute the query and return at most one resulting value for a field from the generated result, using field(Field) for lookup.
public @Nullable Object

Returns:

The resulting value or null if the query returned no records.
fetchOne
(int fieldIndex)

Execute the query and return at most one resulting value for a field index from the generated result.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchOne
(int fieldIndex, Class<? extends U> type)

Execute the query and return at most one resulting value for a field index from the generated result.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchOne
(int fieldIndex, Converter<?, ? extends U> converter)

Execute the query and return at most one resulting value for a field index from the generated result.

public @Nullable Object

Returns:

The resulting value or null if the query returned no records.
fetchOne
(String fieldName)

Execute the query and return at most one resulting value for a field name from the generated result, using field(String) for lookup.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchOne
(String fieldName, Class<? extends U> type)

Execute the query and return at most one resulting value for a field name from the generated result, using field(String) for lookup.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchOne
(String fieldName, Converter<?, ? extends U> converter)

Execute the query and return at most one resulting value for a field name from the generated result, using field(String) for lookup.

public @Nullable Object

Returns:

The resulting value or null if the query returned no records.
fetchOne
(Name fieldName)

Execute the query and return at most one resulting value for a field name from the generated result, using field(Name) for lookup.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchOne
(Name fieldName, Class<? extends U> type)

Execute the query and return at most one resulting value for a field name from the generated result, using field(Name) for lookup.

public <U> U

Returns:

The resulting value or null if the query returned no records.
fetchOne
(Name fieldName, Converter<?, ? extends U> converter)

Execute the query and return at most one resulting value for a field name from the generated result, using field(Name) for lookup.

public R

Returns:

The resulting record or null if the query returns no records.
fetchOne
()

Execute the query and return at most one resulting record.

public <E> E

Returns:

The custom mapped record or null if the query returned no records.
fetchOne
(RecordMapper<? super R, E> mapper)

Execute the query and return at most one resulting value into a custom mapper callback.

public @Nullable @Nullable Object[]

Returns:

The resulting record or null if the query returns no records.
fetchOneArray
()

Execute the query and return at most one resulting record as an array

You can access data like this

query.fetchOneArray()[fieldIndex]
public <
The generic entity type.
E
>
E

Returns:

The resulting record or null if the query returns no records.
fetchOneInto
(Class<? extends E>
The entity type.
type
)

Map resulting records onto a custom type.

public <
The generic table record type.
Z extends Record
>
Z

Returns:

The resulting record or null if the query returns no records.
fetchOneInto
(Table<Z>
The table type.
table
)

Map resulting records onto a custom record.

public @Nullable Map<String, Object>

Returns:

The resulting record or null if the query returns no records.
fetchOneMap
()

Execute the query and return at most one resulting record as a name/value map.

public <T> @NotNull Optional<T>

Returns:

The resulting value
fetchOptional
(Field<T> field)

Deprecated as a consequence of Field being deprecated.
Execute the query and return at most one resulting value for a field from the generated result, using field(Field) for lookup.
public <U> @NotNull Optional<U>

Returns:

The resulting value
fetchOptional
(Field<?> field, Class<? extends U> type)

Deprecated as a consequence of Field being deprecated.
Execute the query and return at most one resulting value for a field from the generated result, using field(Field) for lookup.
public <T, U> @NotNull Optional<U>

Returns:

The resulting value
fetchOptional
(Field<T> field, Converter<? super T, ? extends U> converter)

Deprecated as a consequence of Field being deprecated.
Execute the query and return at most one resulting value for a field from the generated result, using field(Field) for lookup.
public @NotNull Optional<?>

Returns:

The resulting value
fetchOptional
(int fieldIndex)

Execute the query and return at most one resulting value for a field index from the generated result.

public <U> @NotNull Optional<U>

Returns:

The resulting value
fetchOptional
(int fieldIndex, Class<? extends U> type)

Execute the query and return at most one resulting value for a field index from the generated result.

public <U> @NotNull Optional<U>

Returns:

The resulting value
fetchOptional
(int fieldIndex, Converter<?, ? extends U> converter)

Execute the query and return at most one resulting value for a field index from the generated result.

public @NotNull Optional<?>

Returns:

The resulting value
fetchOptional
(String fieldName)

Execute the query and return at most one resulting value for a field name from the generated result, using field(String) for lookup.

public <U> @NotNull Optional<U>

Returns:

The resulting value
fetchOptional
(String fieldName, Class<? extends U> type)

Execute the query and return at most one resulting value for a field name from the generated result, using field(String) for lookup.

public <U> @NotNull Optional<U>

Returns:

The resulting value
fetchOptional
(String fieldName, Converter<?, ? extends U> converter)

Execute the query and return at most one resulting value for a field name from the generated result, using field(String) for lookup.

public @NotNull Optional<?>

Returns:

The resulting value
fetchOptional
(Name fieldName)

Execute the query and return at most one resulting value for a field name from the generated result, using field(Name) for lookup.

public <U> @NotNull Optional<U>

Returns:

The resulting value
fetchOptional
(Name fieldName, Class<? extends U> type)

Execute the query and return at most one resulting value for a field name from the generated result, using field(Name) for lookup.

public <U> @NotNull Optional<U>

Returns:

The resulting value
fetchOptional
(Name fieldName, Converter<?, ? extends U> converter)

Execute the query and return at most one resulting value for a field name from the generated result, using field(Name) for lookup.

public @NotNull Optional<R>

Returns:

The resulting record
fetchOptional
()

Execute the query and return at most one resulting record.

public <E> @NotNull Optional<E>

Returns:

The custom mapped record
fetchOptional
(RecordMapper<? super R, E> mapper)

Execute the query and return at most one resulting value into a custom mapper callback.

public @NotNull Optional<Object[]>

Returns:

The resulting record
fetchOptionalArray
()

Execute the query and return at most one resulting record as an array.

public <
The generic entity type.
E
>
@NotNull Optional<E>

Returns:

The resulting record
fetchOptionalInto
(Class<? extends E>
The entity type.
type
)

Map resulting records onto a custom type.

public <
The generic table record type.
Z extends Record
>
@NotNull Optional<Z>

Returns:

The resulting record
fetchOptionalInto
(Table<Z>
The table type.
table
)

Map resulting records onto a custom record.

public @NotNull Optional<Map<String, Object>>

Returns:

The resulting record
fetchOptionalMap
()

Execute the query and return at most one resulting record as a name/value map.

public @NotNull ResultSet

Returns:

The result. This will never be null.
fetchResultSet
()

Execute the query and return the generated result as a JDBC ResultSet.

public <E> @NotNull Set<E>

Returns:

The result. This will never be null.
fetchSet
(RecordMapper<? super R, E>
The mapper callback
mapper
)

Fetch results into a custom mapper callback.

public @NotNull Set<?>

Returns:

The resulting values. This will never be null.
fetchSet
(int fieldIndex)

Execute the query and return all values for a field index from the generated result.

public <U> @NotNull Set<U>

Returns:

The resulting values. This will never be null.
fetchSet
(int fieldIndex, Class<? extends U> type)

Execute the query and return all values for a field index from the generated result.

public <U> @NotNull Set<U>

Returns:

The resulting values. This will never be null.
fetchSet
(int fieldIndex, Converter<?, ? extends U> converter)

Execute the query and return all values for a field index from the generated result.

public @NotNull Set<?>

Returns:

The resulting values. This will never be null.
fetchSet
(String fieldName)

Execute the query and return all values for a field name from the generated result, using field(String) for lookup.

public <U> @NotNull Set<U>

Returns:

The resulting values. This will never be null.
fetchSet
(String fieldName, Class<? extends U> type)

Execute the query and return all values for a field name from the generated result, using field(String) for lookup.

public <U> @NotNull Set<U>

Returns:

The resulting values. This will never be null.
fetchSet
(String fieldName, Converter<?, ? extends U> converter)

Execute the query and return all values for a field name from the generated result, using field(String) for lookup.

public @NotNull Set<?>

Returns:

The resulting values. This will never be null.
fetchSet
(Name fieldName)

Execute the query and return all values for a field name from the generated result, using field(Name) for lookup.

public <U> @NotNull Set<U>

Returns:

The resulting values. This will never be null.
fetchSet
(Name fieldName, Class<? extends U> type)

Execute the query and return all values for a field name from the generated result, using field(Name) for lookup.

public <U> @NotNull Set<U>

Returns:

The resulting values. This will never be null.
fetchSet
(Name fieldName, Converter<?, ? extends U> converter)

Execute the query and return all values for a field name from the generated result, using field(Name) for lookup.

public <T> @NotNull Set<T>

Returns:

The resulting values. This will never be null.
fetchSet
(Field<T> field)

Deprecated as a consequence of Field being deprecated.
Execute the query and return all values for a field from the generated result, using field(Field) for lookup.
public <U> @NotNull Set<U>

Returns:

The resulting values. This will never be null.
fetchSet
(Field<?> field, Class<? extends U> type)

Deprecated as a consequence of Field being deprecated.
Execute the query and return all values for a field from the generated result, using field(Field) for lookup.
public <T, U> @NotNull Set<U>

Returns:

The resulting values. This will never be null.
fetchSet
(Field<T> field, Converter<? super T, ? extends U> converter)

Deprecated as a consequence of Field being deprecated.
Execute the query and return all values for a field from the generated result, using field(Field) for lookup.
public <T> T

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(Field<T> field)

Deprecated as a consequence of Field being deprecated.
Execute the query and return exactly one resulting value for a field from the generated result, using field(Field) for lookup.
public <U> U

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(Field<?> field, Class<? extends U> type)

Deprecated as a consequence of Field being deprecated.
Execute the query and return exactly one resulting value for a field from the generated result, using field(Field) for lookup.
public <T, U> U

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(Field<T> field, Converter<? super T, ? extends U> converter)

Deprecated as a consequence of Field being deprecated.
Execute the query and return exactly one resulting value for a field from the generated result, using field(Field) for lookup.
public @Nullable Object

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(int fieldIndex)

Execute the query and return exactly one resulting value for a field index from the generated result.

public <U> U

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(int fieldIndex, Class<? extends U> type)

Execute the query and return exactly one resulting value for a field index from the generated result.

public <U> U

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(int fieldIndex, Converter<?, ? extends U> converter)

Execute the query and return exactly one resulting value for a field index from the generated result.

public @Nullable Object

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(String fieldName)

Execute the query and return exactly one resulting value for a field name from the generated result, using field(String) for lookup.

public <U> U

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(String fieldName, Class<? extends U> type)

Execute the query and return exactly one resulting value for a field name from the generated result, using field(String) for lookup.

public <U> U

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(String fieldName, Converter<?, ? extends U> converter)

Execute the query and return exactly one resulting value for a field name from the generated result, using field(String) for lookup.

public @Nullable Object

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(Name fieldName)

Execute the query and return exactly one resulting value for a field name from the generated result, using field(Name) for lookup.

public <U> U

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(Name fieldName, Class<? extends U> type)

Execute the query and return exactly one resulting value for a field name from the generated result, using field(Name) for lookup.

public <U> U

Returns:

The resulting value. Unlike other fetchSingle() methods, which never produce null records, this can be null if the resulting value in the record is null.
fetchSingle
(Name fieldName, Converter<?, ? extends U> converter)

Execute the query and return exactly one resulting value for a field name from the generated result, using field(Name) for lookup.

public R

Returns:

The resulting value. This is never null.
fetchSingle
()

Execute the query and return exactly one resulting record.

public <E> E

Returns:

The resulting value. This is never null.
fetchSingle
(RecordMapper<? super R, E> mapper)

Execute the query and return exactly one resulting value into a custom mapper callback.

public @NotNull @Nullable Object[]

Returns:

The resulting value. This is never null.
fetchSingleArray
()

Execute the query and return exactly one resulting record as an array

You can access data like this

query.fetchSingleArray()[fieldIndex]
public <
The generic entity type.
E
>
E

Returns:

The resulting value.
fetchSingleInto
(Class<? extends E>
The entity type.
type
)

Map resulting records onto a custom type.

public <
The generic table record type.
Z extends Record
>
Z

Returns:

The resulting value. This is never null.
fetchSingleInto
(Table<Z>
The table type.
table
)

Map resulting records onto a custom record.

public @NotNull Map<String, Object>

Returns:

The resulting value. This is never null.
fetchSingleMap
()

Execute the query and return exactly one resulting record as a name/value map.

public @NotNull ResultQuery<R>
fetchSize(int rows)

Specify the fetch size of the underlying Statement.

public @NotNull Stream<R>

Returns:

The result.
fetchStream
()

Stream this query.

public <
The generic entity type.
E
>
@NotNull Stream<E>

Returns:

The results.
fetchStreamInto
(Class<? extends E>
The entity type.
type
)

Stream this query, mapping records into a custom type.

public <
The generic table record type.
Z extends Record
>
@NotNull Stream<Z>

Returns:

The results. This will never be null.
fetchStreamInto
(Table<Z>
The table type.
table
)

Stream this query, mapping records into a custom record.

public default void
forEach(Consumer<? super R>
The action to be performed for each element
action
)

Overrides default java.lang.Iterable.forEach.

Execute the query and consume its results.
public @NotNull Class<? extends R>
getRecordType()

The record type produced by this query.

public @Nullable Result<R>

Returns:

The result or null if no call to execute() was done previously.
getResult
()

Return the result generated by a previous call to execute().

public @NotNull ResultQuery<R>

Returns:

The same result query
intern
(Field<?>...
The fields whose values should be interned
fields
)

Deprecated for removal since 3.10. - 3.10 - [#6254] - This functionality is no longer supported and will be removed in 4.0
Specify a set of fields whose values should be interned.
public @NotNull ResultQuery<R>

Returns:

The same result query
intern
(int...
The field indexes whose values should be interned
fieldIndexes
)

Deprecated for removal since 3.10. - 3.10 - [#6254] - This functionality is no longer supported and will be removed in 4.0
Specify a set of field indexes whose values should be interned.
public @NotNull ResultQuery<R>

Returns:

The same result query
intern
(String...
The field names whose values should be interned
fieldNames
)

Deprecated for removal since 3.10. - 3.10 - [#6254] - This functionality is no longer supported and will be removed in 4.0
Specify a set of field names whose values should be interned.
public @NotNull ResultQuery<R>

Returns:

The same result query
intern
(Name...
The field names whose values should be interned
fieldNames
)

Deprecated for removal since 3.10. - 3.10 - [#6254] - This functionality is no longer supported and will be removed in 4.0
Specify a set of field names whose values should be interned.
public @NotNull Iterator<R>
iterator()

Redeclares java.lang.Iterable.iterator.

Execute the query using fetch() and return the generated result as an Iterator.
public @NotNull CloseableResultQuery<R>
keepStatement(boolean
Whether to keep the underlying statement open
keepStatement
)

Redeclares org.jooq.Query.keepStatement.

Keep the query's underlying statement open after execution.
public @NotNull ResultQuery<R>
maxRows(int rows)

Specify the maximum number of rows returned by the underlying Statement.

public @NotNull ResultQuery<R>
poolable(boolean poolable)

Redeclares org.jooq.Query.poolable.

Specify whether any JDBC java.sql.Statement created by this query should be java.sql.Statement#setPoolable(boolean).
public @NotNull ResultQuery<R>
queryTimeout(int timeout)

Redeclares org.jooq.Query.queryTimeout.

Specify the query timeout in number of seconds for the underlying JDBC Statement.
public @NotNull ResultQuery<R>
resultSetConcurrency(int resultSetConcurrency)

Specify the ResultSet concurrency of ResultSet objects created by jOOQ.

public @NotNull ResultQuery<R>
resultSetHoldability(int resultSetHoldability)

Specify the ResultSet holdability of ResultSet objects created by jOOQ.

public @NotNull ResultQuery<R>
resultSetType(int resultSetType)

Specify the ResultSet type of ResultSet objects created by jOOQ.

public default @NotNull Spliterator<R>
spliterator()

Overrides default java.lang.Iterable.spliterator.

Execute the query using fetch() and return the generated result as an Spliterator.
public @NotNull Stream<R>

Returns:

The result.
stream
()

Stream this query.

Inherited from org.jooq.Fields:
dataTypedataTypedataTypedataTypesfieldfieldfieldfieldfieldfieldfieldfieldfieldfieldfieldsfieldsfieldsfieldsfieldsfieldsRowfieldStreamindexOfindexOfindexOftypetypetypetypes
Inherited from org.jooq.Publisher:
subscribe
Inherited from org.jooq.Query:
cancelexecuteexecuteAsyncexecuteAsyncisExecutable