Top Description Methods
org.jooq

public Interface Queries

extends AttachableQueryPart, Iterable<Query>
Known Direct Implementers
org.jooq.impl.QueriesImpl
Imports
java.sql.Statement, java.util.stream.Stream, org.jooq.exception.DetachedException, org.jooq.impl.DSL, .QOM, .QOM.UnmodifiableList, org.jetbrains.annotations.Blocking, .NotNull, .ApiStatus.Experimental

A wrapper for a collection of queries.

Instances can be created using DSL#queries(Query...) and overloads.

Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public @NotNull QOM.UnmodifiableList<? extends Query>
$queries()

Experimental query object model accessor method, see also QOM.

public Batch
batch()

The wrapped collection of queries as a Batch.

public @NotNull Block
block()

The wrapped collection of queries as a Block.

public @NotNull Queries
concat(Queries other)

Return a new instance combining both sets of queries.

public @NotNull int[]
executeBatch()

Sends the entire batch of queries to the server and executes them using a JDBC Statement#executeBatch() operation.

public @NotNull Results
fetchMany()

Execute all queries one-by-one and return all results.

public @NotNull @NotNull Query[]
queries()

The wrapped collection of queries.

public @NotNull Stream<Query>
queryStream()

The wrapped collection of queries.

public @NotNull Stream<Query>
stream()

Deprecated for removal since 3.10. - 3.10 - [#6143] - Use queryStream() instead.
The wrapped collection of queries.
Inherited from java.lang.Iterable:
forEachiteratorspliterator
Inherited from org.jooq.AttachableQueryPart:
getBindValuesgetParamgetParamsgetSQLgetSQL

Method Detail

$queriesback to summary
public @NotNull QOM.UnmodifiableList<? extends Query> $queries()

Experimental query object model accessor method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.

Annotations
@Experimental
@NotNull
batchback to summary
public Batch batch()

The wrapped collection of queries as a Batch.

See Also
DSLContext#batch(Queries)
blockback to summary
public @NotNull Block block()

The wrapped collection of queries as a Block.

Annotations
@NotNull
concatback to summary
public @NotNull Queries concat(Queries other)

Return a new instance combining both sets of queries.

Annotations
@NotNull
executeBatchback to summary
public @NotNull int[] executeBatch()

Sends the entire batch of queries to the server and executes them using a JDBC Statement#executeBatch() operation.

This Queries reference must be attached to a Configuration.

Annotations
@Blocking
Exceptions
DetachedException:
If this queries reference is unattached.
See Also
DSLContext#batch(Queries)
fetchManyback to summary
public @NotNull Results fetchMany()

Execute all queries one-by-one and return all results.

This is a convenience method for executing individual queries().

If this Queries reference is attached to a Configuration, then that configuration is used through DSLContext#fetchMany(ResultQuery) or DSLContext#execute(Query). If this queries reference is unattached, then each individual ResultQuery#fetchMany() or Query#execute() method is called.

Annotations
@NotNull
@Blocking
Exceptions
DetachedException:
If this queries reference is unattached and at least one of the contained queries() is also unattached.
queriesback to summary
public @NotNull @NotNull Query[] queries()

The wrapped collection of queries.

Annotations
@NotNull
queryStreamback to summary
public @NotNull Stream<Query> queryStream()

The wrapped collection of queries.

Annotations
@NotNull
streamback to summary
public @NotNull Stream<Query> stream()

Deprecated

for removal since 3.10.

- 3.10 - [#6143] - Use queryStream() instead.

The wrapped collection of queries.

Annotations
@NotNull
@Deprecated
forRemoval:true
since:3.10