public interface Queries extends QueryPart, Attachable, java.lang.Iterable<Query>
Modifier and Type | Method and Description |
---|---|
int[] |
executeBatch()
Sends the entire batch of queries to the server and executes them using a
JDBC
Statement.executeBatch() operation. |
Results |
fetchMany()
Execute all queries one-by-one and return all results.
|
Query[] |
queries()
The wrapped collection of queries.
|
java.util.stream.Stream<Query> |
queryStream()
The wrapped collection of queries.
|
java.util.stream.Stream<Query> |
stream()
Deprecated.
- 3.10 - [#6143] - Use
queryStream() instead. |
attach, configuration, detach
Query[] queries()
@Deprecated java.util.stream.Stream<Query> stream()
queryStream()
instead.java.util.stream.Stream<Query> queryStream()
Results fetchMany()
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.
DetachedException
- If this queries
reference is
unattached and at least one of the contained
queries()
is also unattached.int[] executeBatch()
Statement.executeBatch()
operation.
This Queries
reference must be attached to a
Configuration
.
DetachedException
- If this queries
reference is
unattached.DSLContext.batch(Queries)
Copyright © 2018. All Rights Reserved.