-
- All Superinterfaces:
Attachable,Iterable<Query>,QueryPart,Serializable
public interface Queries extends QueryPart, Attachable, Iterable<Query>
A wrapper for a collection of queries.Instances can be created using
DSL.queries(Query...)and overloads.- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Blockblock()The wrapped collection of queries as aBlock.Queriesconcat(Queries other)Return a new instance combining both sets of queries.int[]executeBatch()Sends the entire batch of queries to the server and executes them using a JDBCStatement.executeBatch()operation.ResultsfetchMany()Execute all queries one-by-one and return all results.Query[]queries()The wrapped collection of queries.Stream<Query>queryStream()The wrapped collection of queries.Stream<Query>stream()Deprecated.- 3.10 - [#6143] - UsequeryStream()instead.-
Methods inherited from interface org.jooq.Attachable
attach, configuration, detach
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
queries
Query[] queries()
The wrapped collection of queries.
-
stream
@Deprecated Stream<Query> stream()
Deprecated.- 3.10 - [#6143] - UsequeryStream()instead.The wrapped collection of queries.
-
fetchMany
Results fetchMany()
Execute all queries one-by-one and return all results.This is a convenience method for executing individual
queries().If this
Queriesreference is attached to aConfiguration, then thatconfigurationis used throughDSLContext.fetchMany(ResultQuery)orDSLContext.execute(Query). If thisqueriesreference is unattached, then each individualResultQuery.fetchMany()orQuery.execute()method is called.- Throws:
DetachedException- If thisqueriesreference is unattached and at least one of the containedqueries()is also unattached.
-
executeBatch
int[] executeBatch()
Sends the entire batch of queries to the server and executes them using a JDBCStatement.executeBatch()operation.This
Queriesreference must be attached to aConfiguration.- Throws:
DetachedException- If thisqueriesreference is unattached.- See Also:
DSLContext.batch(Queries)
-
-