Top Fields Constructors Methods
org.jooq.impl

pack-priv final Class QueriesImpl

extends AbstractAttachableQueryPart
implements Queries
Class Inheritance
All Implemented Interfaces
org.jooq.Queries, java.lang.Iterable, org.jooq.AttachableQueryPart, org.jooq.QueryPart, java.io.Serializable, org.jooq.Attachable
Static Imports
org.jooq.impl.Tools.EMPTY_QUERY

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private static final Pattern
private static final Pattern
private final QueryPartList<Query>

Constructor Summary

AccessConstructor and Description
pack-priv
QueriesImpl(Configuration configuration, Collection<? extends Query> queries)

Method Summary

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

Implements org.jooq.Queries.$queries.

Experimental query object model accessor method, see also QOM.
public final void
accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.
public final Batch
batch()

Implements org.jooq.Queries.batch.

The wrapped collection of queries as a Batch.
public final Block
block()

Implements org.jooq.Queries.block.

The wrapped collection of queries as a Block.
public final Queries
concat(Queries other)

Implements org.jooq.Queries.concat.

Return a new instance combining both sets of queries.
public boolean
equals(Object
The other QueryPart
obj
)

Overrides org.jooq.impl.AbstractQueryPart.equals.

Implements org.jooq.QueryPart.equals.

Check whether this QueryPart can be considered equal to another QueryPart.
public final int[]
executeBatch()

Implements org.jooq.Queries.executeBatch.

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

Implements org.jooq.Queries.fetchMany.

Execute all queries one-by-one and return all results.
public int
hashCode()

Overrides org.jooq.impl.AbstractQueryPart.hashCode.

Implements org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.
public final Iterator<Query>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.
public final Query[]
queries()

Implements org.jooq.Queries.queries.

The wrapped collection of queries.
public final Stream<Query>
queryStream()

Implements org.jooq.Queries.queryStream.

The wrapped collection of queries.
public final Stream<Query>
stream()

Implements org.jooq.Queries.stream.

The wrapped collection of queries.
Inherited from org.jooq.impl.AbstractAttachableQueryPart:
attachconfigurationconfigurationOrDefaultconfigurationOrThrowdetachgetBindValuesgetParamgetParamsgetSQLgetSQL

Field Detail

P_IGNORE_FORMATTEDback to summary
private static final Pattern P_IGNORE_FORMATTED
P_IGNORE_UNFORMATTEDback to summary
private static final Pattern P_IGNORE_UNFORMATTED
queriesback to summary
private final QueryPartList<Query> queries

Constructor Detail

QueriesImplback to summary
pack-priv QueriesImpl(Configuration configuration, Collection<? extends Query> queries)

Method Detail

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

Implements org.jooq.Queries.$queries.

Doc from org.jooq.Queries.$queries.

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

Annotations
@Override
acceptback to summary
public final void accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

Doc from org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.

Annotations
@Override
batchback to summary
public final Batch batch()

Implements org.jooq.Queries.batch.

Doc from org.jooq.Queries.batch.

The wrapped collection of queries as a Batch.

Annotations
@Override
blockback to summary
public final Block block()

Implements org.jooq.Queries.block.

Doc from org.jooq.Queries.block.

The wrapped collection of queries as a Block.

Annotations
@Override
concatback to summary
public final Queries concat(Queries other)

Implements org.jooq.Queries.concat.

Doc from org.jooq.Queries.concat.

Return a new instance combining both sets of queries.

Annotations
@Override
equalsback to summary
public boolean equals(Object obj)

Overrides org.jooq.impl.AbstractQueryPart.equals.

Implements org.jooq.QueryPart.equals.

Doc from org.jooq.QueryPart.equals.

Check whether this QueryPart can be considered equal to another QueryPart.

In general, QueryPart equality is defined in terms of toString() equality. In other words, two query parts are considered equal if their rendered SQL (with inlined bind variables) is equal. This means that the two query parts do not necessarily have to be of the same type.

Some QueryPart implementations may choose to override this behaviour for improved performance, as toString() is an expensive operation, if called many times.

Parameters
obj:Object

The other QueryPart

Returns:boolean

Whether the two query parts are equal

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

Implements org.jooq.Queries.executeBatch.

Doc from org.jooq.Queries.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
@Override
fetchManyback to summary
public final Results fetchMany()

Implements org.jooq.Queries.fetchMany.

Doc from org.jooq.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 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
@Override
hashCodeback to summary
public int hashCode()

Overrides org.jooq.impl.AbstractQueryPart.hashCode.

Implements org.jooq.QueryPart.hashCode.

Doc from org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.

In general, QueryPart hash codes are the same as the hash codes generated from toString(). This guarantees consistent behaviour with equals(Object)

Some QueryPart implementations may choose to override this behaviour for improved performance, as toString() is an expensive operation, if called many times.

Returns:int

The QueryPart hash code

Annotations
@Override
iteratorback to summary
public final Iterator<Query> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Returns:Iterator<Query>

an Iterator.

Annotations
@Override
queriesback to summary
public final Query[] queries()

Implements org.jooq.Queries.queries.

Doc from org.jooq.Queries.queries.

The wrapped collection of queries.

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

Implements org.jooq.Queries.queryStream.

Doc from org.jooq.Queries.queryStream.

The wrapped collection of queries.

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

Implements org.jooq.Queries.stream.

Doc from org.jooq.Queries.stream.

The wrapped collection of queries.

Annotations
@Override