- All Superinterfaces:
Attachable
,AttachableQueryPart
,Iterable<Query>
,QueryPart
,Serializable
A wrapper for a collection of queries.
Instances can be created using DSL.queries(Query...)
and overloads.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescription@NotNull Block
block()
The wrapped collection of queries as aBlock
.@NotNull Queries
Return a new instance combining both sets of queries.@org.jetbrains.annotations.NotNull int[]
Sends the entire batch of queries to the server and executes them using a JDBCStatement.executeBatch()
operation.@NotNull Results
Execute all queries one-by-one and return all results.@NotNull Query[]
queries()
The wrapped collection of queries.The wrapped collection of queries.stream()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface org.jooq.Attachable
attach, configuration, detach
Methods inherited from interface org.jooq.AttachableQueryPart
getBindValues, getParam, getParams, getSQL, getSQL
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
concat
Return a new instance combining both sets of queries. -
queries
The wrapped collection of queries. -
block
The wrapped collection of queries as aBlock
. -
stream
Deprecated, for removal: This API element is subject to removal in a future version.- 3.10 - [#6143] - UsequeryStream()
instead.The wrapped collection of queries. -
queryStream
The wrapped collection of queries. -
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 aConfiguration
, then thatconfiguration
is used throughDSLContext.fetchMany(ResultQuery)
orDSLContext.execute(Query)
. If thisqueries
reference is unattached, then each individualResultQuery.fetchMany()
orQuery.execute()
method is called.- Throws:
DetachedException
- If thisqueries
reference is unattached and at least one of the containedqueries()
is also unattached.
-
executeBatch
@NotNull @org.jetbrains.annotations.NotNull int[] executeBatch()Sends the entire batch of queries to the server and executes them using a JDBCStatement.executeBatch()
operation.This
Queries
reference must be attached to aConfiguration
.- Throws:
DetachedException
- If thisqueries
reference is unattached.- See Also:
DSLContext.batch(Queries)
-
queryStream()
instead.