Deprecated
as a consequence of SelectQuery being deprecated. See corresponding docs for further information.
SELECT statement that can be combined with
other SELECT statement in UNIONs and similar
operations.
| Modifier and Type | Class and Description |
|---|---|
| private static enum | |
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| private static final Clause[] | |
| private final ConditionProviderImpl | condition
Deprecated
as a consequence of
ConditionProviderImpl being deprecated.
|
| private boolean | |
| private final QueryPartList | |
| private static final Set | |
| pack-priv static final Set | |
| private ForLock | |
| private final TableList | |
| private final GroupFieldList | |
| private boolean | |
| private final ConditionProviderImpl | having
Deprecated
as a consequence of
ConditionProviderImpl being deprecated.
|
| private String | |
| private Table | |
| private final Limit | |
| private final Map | |
| private static final JooqLogger | |
| private static final Set | |
| private static final Set | |
| pack-priv static final Set | |
| pack-priv static final Set | |
| private static final Set | |
| pack-priv static final Set | |
| pack-priv static final Set | |
| private String | |
| private static final Set | |
| private final SortFieldList | |
| private final ConditionProviderImpl | qualify
Deprecated
as a consequence of
ConditionProviderImpl being deprecated.
|
| private static final Set | |
| private final QueryPartList | |
| private boolean | |
| private final SelectFieldList | |
| private static final Set | |
| private static final Set | |
| private final List | |
| private static final Set | |
| private final Limit | |
| private final List | |
| private final SortFieldList | |
| private final QueryPartList | |
| private boolean | |
| private WindowList | |
| pack-priv final WithImpl | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv | SelectQueryImpl(Configuration configuration, WithImpl with, TableLike<? extends R> from, boolean distinct)
|
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | $distinct()
Implements org. QOM.
|
| public final Select | $distinct(boolean newDistinct)
Implements org. QOM.
|
| public final QOM. | $distinctOn()
Implements org. QOM.
|
| public final Select | $distinctOn(Collection<? extends SelectFieldOrAsterisk> newDistinctOn)
Implements org. QOM.
|
| public final QOM. | $from()
Implements org. QOM.
|
| public final SelectQueryImpl | $from(Collection<? extends Table<?>> newFrom)
Implements org.
Deprecated
as a consequence of
Experimental query object model accessor method, see also SelectQueryImpl being deprecated.
QOM.
|
| public final QOM. | $groupBy()
Implements org. QOM.
|
| public final Select | $groupBy(Collection<? extends GroupField> newGroupBy)
Implements org. QOM.
|
| public final boolean | $groupByDistinct()
Implements org. QOM.
|
| public final Select | $groupByDistinct(boolean newGroupByDistinct)
Implements org. QOM.
|
| public final Condition | $having()
Implements org.
Deprecated
as a consequence of
Experimental query object model accessor method, see also Condition being deprecated.
QOM.
|
| public final Select | $having(Condition newHaving)
Implements org.
Deprecated
as a consequence of
Experimental query object model accessor method, see also Condition being deprecated.
QOM.
|
| public final Field | $limit()
Implements org.
Deprecated
as a consequence of
Experimental query object model accessor method, see also Field being deprecated.
QOM.
|
| public final Select | |
| public final boolean | $limitPercent()
Implements org. QOM.
|
| public final Select | $limitPercent(boolean newLimitPercent)
Implements org. QOM.
|
| public final boolean | $limitWithTies()
Implements org. QOM.
|
| public final Select | $limitWithTies(boolean newLimitWithTies)
Implements org. QOM.
|
| public final Field | $offset()
Implements org.
Deprecated
as a consequence of
Experimental query object model accessor method, see also Field being deprecated.
QOM.
|
| public final Select | |
| public final QOM. | $orderBy()
Implements org. QOM.
|
| public final Select | $orderBy(Collection<? extends SortField<?>> newOrderBy)
Implements org. QOM.
|
| public final Condition | $qualify()
Implements org.
Deprecated
as a consequence of
Experimental query object model accessor method, see also Condition being deprecated.
QOM.
|
| public final Select | $qualify(Condition newQualify)
Implements org.
Deprecated
as a consequence of
Experimental query object model accessor method, see also Condition being deprecated.
QOM.
|
| public final QOM. | $select()
Implements org. QOM.
|
| public final SelectQueryImpl | $select(Collection<? extends SelectFieldOrAsterisk> newSelect)
Implements org.
Deprecated
as a consequence of
Experimental query object model accessor method, see also SelectQueryImpl being deprecated.
QOM.
|
| public final Condition | $where()
Implements org.
Deprecated
as a consequence of
Experimental query object model accessor method, see also Condition being deprecated.
QOM.
|
| public final Select | $where(Condition newWhere)
Implements org.
Deprecated
as a consequence of
Experimental query object model accessor method, see also Condition being deprecated.
QOM.
|
| public final QOM. | $window()
Implements org. QOM.
|
| public final Select | $window(Collection<? extends WindowDefinition> newWindow)
Implements org. QOM.
|
| public final WithImpl | $with()
Implements org. QOM.
|
| public final SelectQueryImpl | $with(QOM.
Implements org.
Deprecated
as a consequence of
Experimental query object model accessor method, see also SelectQueryImpl being deprecated.
QOM.
|
| public final void | accept(Context<?> ctx)
Implements org. QueryPart can accept a Context object
in order to render a SQL string or to bind its variables.
|
| pack-priv final void | |
| public final void | addConditions(Condition
The condition conditions)Implements org.
Deprecated
as a consequence of
Adds a new condition to the query, connecting them to existing
conditions with Condition being deprecated.
Operator#AND.
|
| public final void | addConditions(Condition...
The condition conditions)Implements org.
Deprecated
as a consequence of
Adds new conditions to the query, connecting them to existing
conditions with Condition being deprecated.
Operator#AND.
|
| public final void | addConditions(Collection<? extends Condition>
The condition conditions)Implements org. Operator#AND.
|
| public final void | addConditions(Operator operator, Condition
The condition conditions)Implements org.
Deprecated
as a consequence of
Adds a new condition to the query, connecting them to existing
conditions with the provided operator.
Condition being deprecated.
|
| public final void | addConditions(Operator operator, Condition...
The condition conditions)Implements org.
Deprecated
as a consequence of
Adds new conditions to the query, connecting them to existing
conditions with the provided operator.
Condition being deprecated.
|
| public final void | addConditions(Operator operator, Collection<? extends Condition>
The condition conditions)Implements org. |
| public final void | addDistinctOn(SelectFieldOrAsterisk... fields)
Implements org. DISTINCT ON (fields…) clause.
|
| public final void | addDistinctOn(Collection<? extends SelectFieldOrAsterisk> fields)
Implements org. DISTINCT ON (fields…) clause.
|
| public final void | addFrom(Collection<? extends TableLike<?>>
The added tables f)Implements org. |
| public final void | addFrom(TableLike<?>
The added tables f)Implements org. |
| public final void | addFrom(TableLike<?>...
The added tables f)Implements org. |
| public final void | addGroupBy(Collection<? extends GroupField>
The grouping fields fields)Implements org. |
| public final void | addGroupBy(GroupField...
The grouping fields fields)Implements org. |
| public final void | addHaving(Condition
The condition conditions)Implements org.
Deprecated
as a consequence of
Adds a new condition to the having clause of the query, connecting it
with each other with Condition being deprecated.
Operator#AND.
|
| public final void | addHaving(Condition...
The condition conditions)Implements org.
Deprecated
as a consequence of
Adds new conditions to the having clause of the query, connecting them
with each other with Condition being deprecated.
Operator#AND.
|
| public final void | addHaving(Collection<? extends Condition>
The condition conditions)Implements org. Operator#AND.
|
| public final void | addHaving(Operator
The operator to use to add the conditions to the existing
conditions operator, Condition The condition conditions)Implements org.
Deprecated
as a consequence of
Adds a new condition to the having clause of query, connecting it with
each other with Condition being deprecated.
operator.
|
| public final void | addHaving(Operator
The operator to use to add the conditions to the existing
conditions operator, Condition... The condition conditions)Implements org.
Deprecated
as a consequence of
Adds new conditions to the having clause of query, connecting them with
each other with Condition being deprecated.
operator.
|
| public final void | addHaving(Operator
The operator to use to add the conditions to the existing
conditions operator, Collection<? extends Condition> The condition conditions)Implements org. operator.
|
| public final void | addHint(String h)
Implements org. |
| public final void | addJoin(TableLike<?>
The joined table table, Condition The joining condition conditions)Implements org.
Deprecated
as a consequence of
Joins the existing table product to a new table using a condition,
connecting them with each other with Condition being deprecated.
Operator#AND.
|
| public final void | addJoin(TableLike<?>
The joined table table, Condition... The joining conditions conditions)Implements org.
Deprecated
as a consequence of
Joins the existing table product to a new table using a condition,
connecting them with each other with Condition being deprecated.
Operator#AND.
|
| public final void | addJoin(TableLike<?>
The joined table table, JoinType The type of join type, Condition The joining condition conditions)Implements org.
Deprecated
as a consequence of
Joins the existing table product to a new table using a condition,
connecting them with each other with Condition being deprecated.
Operator#AND.
|
| public final void | addJoin(TableLike<?>
The joined table table, JoinType The type of join type, Condition... The joining conditions conditions)Implements org.
Deprecated
as a consequence of
Joins the existing table product to a new table using a condition,
connecting them with each other with Condition being deprecated.
Operator#AND.
|
| private final void | |
| public final void | addJoinOnKey(TableLike<?>
The joined table table, JoinType The type of join type)Implements org. |
| public final void | addJoinOnKey(TableLike<?>
The joined table table, JoinType The type of join type, TableField<?, ?>... The foreign key fields keyFields)Implements org.
Deprecated
as a consequence of
Joins the existing table product to a new table using a foreign key.
TableField being deprecated.
|
| public final void | addJoinOnKey(TableLike<?>
The joined table table, JoinType The type of join type, ForeignKey<?, ?> The foreign key key)Implements org. |
| public final void | addJoinUsing(TableLike<?>
The joined table table, Collection<? extends Field<?>> The fields for the fields)USING clauseImplements org. USING
clause.
|
| public final void | addJoinUsing(TableLike<?>
The joined table table, JoinType The type of join type, Collection<? extends Field<?>> The fields for the fields)USING clauseImplements org. USING
clause.
|
| public final void | addLimit(Number
The number of rows to return l)Implements org. |
| public final void | addLimit(Field<? extends Number>
The number of rows to return l)Implements org.
Deprecated
as a consequence of
Limit the results of this select.
Field being deprecated.
|
| public final void | addLimit(Number
The lowest offset starting at 0 offset, Number The number of rows to return l)Implements org. |
| public final void | |
| public final void | |
| public final void | |
| public final void | addOffset(Number offset)
Implements org. OFFSET clause to the query.
|
| public final void | addOffset(Field<? extends Number> offset)
Implements org.
Deprecated
as a consequence of
Add a 0-based Field being deprecated.
OFFSET clause to the query.
|
| public final void | addOption(String o)
Implements org. |
| public final void | addOrderBy(Collection<? extends OrderField<?>>
The ordering fields fields)Implements org. |
| public final void | addOrderBy(OrderField<?>...
The ordering fields fields)Implements org. |
| public final void | addOrderBy(int...
The ordering fields fieldIndexes)Implements org. |
| public final void | addQualify(Condition
The condition conditions)Implements org.
Deprecated
as a consequence of
Adds a new condition to the qualify clause of the query, connecting it
with each other with Condition being deprecated.
Operator#AND.
|
| public final void | addQualify(Condition...
The condition conditions)Implements org.
Deprecated
as a consequence of
Adds new conditions to the qualify clause of the query, connecting them
with each other with Condition being deprecated.
Operator#AND.
|
| public final void | addQualify(Collection<? extends Condition>
The condition conditions)Implements org. Operator#AND.
|
| public final void | addQualify(Operator
The operator to use to add the conditions to the existing
conditions operator, Condition The condition conditions)Implements org.
Deprecated
as a consequence of
Adds a new condition to the qualify clause of query, connecting it with
each other with Condition being deprecated.
operator.
|
| public final void | addQualify(Operator
The operator to use to add the conditions to the existing
conditions operator, Condition... The condition conditions)Implements org.
Deprecated
as a consequence of
Adds new conditions to the qualify clause of query, connecting them with
each other with Condition being deprecated.
operator.
|
| public final void | addQualify(Operator
The operator to use to add the conditions to the existing
conditions operator, Collection<? extends Condition> The condition conditions)Implements org. operator.
|
| public final void | addSeekAfter(Field<?>...
The seeking fields fields)Implements org.
Deprecated
as a consequence of
Adds seeking fields.
Field being deprecated.
|
| public final void | addSeekAfter(Collection<? extends Field<?>>
The seeking fields fields)Implements org. |
| public final void | addSeekBefore(Field<?>...
The seeking fields fields)Implements org.
Deprecated
Adds seeking fields.
|
| public final void | addSeekBefore(Collection<? extends Field<?>>
The seeking fields fields)Implements org.
Deprecated
Adds seeking fields.
|
| public final void | addSelect(Collection<? extends SelectFieldOrAsterisk> fields)
Implements org. |
| public final void | addSelect(SelectFieldOrAsterisk... fields)
Implements org. |
| public final void | addWindow(WindowDefinition...
The definitions definitions)Implements org.
Deprecated
as a consequence of
Adds new window definitions to the window clause of the query.
WindowDefinition being deprecated.
|
| public final void | addWindow(Collection<? extends WindowDefinition>
The definitions definitions)Implements org. |
| pack-priv final void | |
| private final void | appendResolveSomeAsterisks0(Scope ctx, boolean resolveSupported, SelectFieldList<SelectFieldOrAsterisk> result, boolean resolveExcept, boolean resolveUnqualifiedCombined, SelectFieldList<SelectFieldOrAsterisk> list, SelectFieldOrAsterisk s)
|
| private final boolean | |
| public final <T> Field | asField()
Implements org.
Deprecated
as a consequence of
The underlying field representation of this object.
Field being deprecated.
|
| public final <T> Field | asField(String alias)
Implements org.
Deprecated
as a consequence of
The underlying field representation of this object.
Field being deprecated.
|
| public <T> Field | |
| public final Field | asMultiset()
Implements org.
Deprecated
as a consequence of
Turn this Field being deprecated.
TableLike expression into a
DSL#multiset(TableLike).
|
| public final Field | asMultiset(String alias)
Implements org.
Deprecated
as a consequence of
Turn this Field being deprecated.
TableLike expression into a
DSL#multiset(TableLike).
|
| public final Field | asMultiset(Name alias)
Implements org.
Deprecated
as a consequence of
Turn this Field being deprecated.
TableLike expression into a
DSL#multiset(TableLike).
|
| public final Field | asMultiset(Field<?> alias)
Implements org.
Deprecated
as a consequence of
Turn this Field being deprecated.
TableLike expression into a
DSL#multiset(TableLike).
|
| public final Table | |
| public final Table | asTable(String alias)
Implements org. |
| public final Table | asTable(String alias, String... fieldAliases)
Implements org. |
| public final Table | asTable(String alias, Collection<? extends String> fieldAliases)
Implements org. |
| public final Table | asTable(Name alias)
Implements org. |
| public final Table | asTable(Name alias, Name... fieldAliases)
Implements org. |
| public final Table | asTable(Name alias, Collection<? extends Name> fieldAliases)
Implements org. |
| public final Table | asTable(Table<?> alias)
Implements org. |
| public final Table | asTable(Table<?> alias, Field<?>... fieldAliases)
Implements org.
Deprecated
as a consequence of
The underlying aliased table representation of this object.
Field being deprecated.
|
| public final Table | asTable(Table<?> alias, Collection<? extends Field<?>> fieldAliases)
Implements org. |
| public final Table | |
| public final Table | asTable(String alias, BiFunction<? super Field<?>, ? super Integer, ? extends String> aliasFunction)
Implements org. |
| public final Clause[] | clauses(Context<?> ctx)
Overrides org. Implements org.
Deprecated
as a consequence of
The Clause being deprecated.
Clauses that are represented by this query part.
|
| private final SelectQueryImpl | combine(CombineOperator op, Select<? extends R> other)
Deprecated
as a consequence of
SelectQueryImpl being deprecated.
|
| private final SelectQueryImpl | copy(Consumer<? super SelectQueryImpl<R>> finisher)
Deprecated
as a consequence of
SelectQueryImpl being deprecated.
|
| private final SelectQueryImpl | copy(Consumer<? super SelectQueryImpl<R>> finisher, WithImpl newWith)
Deprecated
as a consequence of
SelectQueryImpl being deprecated.
|
| private final SelectQueryImpl | copyAfter(SelectQueryImpl.
Deprecated
as a consequence of
SelectQueryImpl being deprecated.
|
| private final SelectQueryImpl | copyBetween(SelectQueryImpl.
Deprecated
as a consequence of
SelectQueryImpl being deprecated.
|
| private final SelectQueryImpl | copyTo(SelectQueryImpl.
Deprecated
as a consequence of
SelectQueryImpl being deprecated.
|
| private final boolean | |
| private final Select | |
| public final SelectQueryImpl | except(Select<? extends R> other)
Implements org.
Deprecated
as a consequence of
Apply the SelectQueryImpl being deprecated.
EXCEPT (or MINUS) set operation.
|
| public final SelectQueryImpl | exceptAll(Select<? extends R> other)
Implements org.
Deprecated
as a consequence of
Apply the SelectQueryImpl being deprecated.
EXCEPT ALL set operation.
|
| public final Row | fieldsRow()
Overrides default org. Implements org. Row.
|
| pack-priv final ForLock | |
| public final Field | getFields(ThrowingSupplier<? extends ResultSetMetaData, SQLException> rs)
Overrides default org.
Deprecated
as a consequence of
Get a list of fields provided a result set.
Field being deprecated.
|
| public final Field | getFields()
Implements org.
Deprecated
as a consequence of
Get a list of fields if we don't have a result set.
Field being deprecated.
|
| pack-priv final TableList | |
| pack-priv final GroupFieldList | |
| pack-priv final ConditionProviderImpl | |
| pack-priv final Limit | |
| pack-priv final SortFieldList | |
| pack-priv final SortFieldList | |
| pack-priv final SortFieldList | |
| pack-priv final ConditionProviderImpl | |
| pack-priv final Class | |
| private final Field | |
| pack-priv final QueryPartList | |
| pack-priv final Condition | |
| public final List | |
| pack-priv final SelectFieldList | |
| private final SelectQueryImpl. | getSelectFieldIndexes(Context<?> ctx)
[#11904] Get a mapping { projected field index -> generated field index } |
| pack-priv final SelectFieldList | getSelectResolveAllAsterisks(Scope ctx)
The select list with resolved explicit asterisks (if they contain the except clause and that is not supported). |
| pack-priv final SelectFieldList | |
| private final SelectFieldList | |
| pack-priv final SelectFieldList | getSelectResolveUnsupportedAsterisks(Context<?> ctx)
The select list with resolved explicit asterisks (if they contain the except clause and that is not supported). |
| pack-priv final ConditionProviderImpl | |
| private final boolean | |
| private final boolean | |
| pack-priv final boolean | |
| private final void | |
| public final SelectQueryImpl | intersect(Select<? extends R> other)
Implements org.
Deprecated
as a consequence of
Apply the SelectQueryImpl being deprecated.
INTERSECT set operation.
|
| public final SelectQueryImpl | intersectAll(Select<? extends R> other)
Implements org.
Deprecated
as a consequence of
Apply the SelectQueryImpl being deprecated.
INTERSECT ALL set operation.
|
| private final boolean | |
| private final void | |
| private final <Q extends QueryPartList | |
| private final <Q extends QueryPartList | |
| public final void | setDistinct(boolean distinct)
Implements org. |
| public final void | setForKeyShare(boolean forKeyShare)
Implements org. |
| public final void | setForLockModeNoWait()
Implements org. FOR <lock_mode> clause.
|
| public final void | setForLockModeOf(Field<?>...
The fields that should be locked fields)Implements org.
Deprecated
as a consequence of
Some RDBMS allow for specifying the fields that should be locked by the
Field being deprecated.
FOR <lock_mode> clause, instead of the full row.
|
| public final void | setForLockModeOf(Collection<? extends Field<?>> fields)
Implements org. FOR <lock_mode> clause, instead of the full row.
|
| public final void | setForLockModeOf(Table<?>...
The tables that should be locked tables)Implements org. FOR <lock_mode> clause, instead of the full row.
|
| public final void | setForLockModeSkipLocked()
Implements org. FOR <lock_mode> clause.
|
| public final void | setForLockModeWait(int
The number of seconds to wait for a lock seconds)Implements org. FOR <lock_mode> clause.
|
| public final void | setForNoKeyUpdate(boolean forNoKeyUpdate)
Implements org. |
| public final void | setForShare(boolean
The flag's value forShare)Implements org. |
| public final void | setForUpdate(boolean
The flag's value forUpdate)Implements org. |
| public final void | setForUpdateNoWait()
Implements org. FOR UPDATE clause.
|
| public final void | setForUpdateOf(Field<?>...
The fields that should be locked fields)Implements org.
Deprecated
as a consequence of
Some RDBMS allow for specifying the fields that should be locked by the
Field being deprecated.
FOR UPDATE clause, instead of the full row.
|
| public final void | setForUpdateOf(Collection<? extends Field<?>> fields)
Implements org. FOR UPDATE clause, instead of the full row.
|
| public final void | setForUpdateOf(Table<?>...
The tables that should be locked tables)Implements org. FOR UPDATE clause, instead of the full row.
|
| public final void | setForUpdateSkipLocked()
Implements org. FOR UPDATE clause.
|
| public final void | setForUpdateWait(int
The number of seconds to wait for a lock seconds)Implements org. FOR UPDATE clause.
|
| public final void | setGroupByDistinct(boolean groupByDistinct)
Implements org. GROUP BY DISTINCT clause.
|
| pack-priv final void | |
| public final void | setInto(Table<?> table)
Implements org. INTO clause to the SELECT
statement to create a new table from a SELECT statement.
|
| public final void | setLimitPercent(boolean percent)
Implements org. PERCENT clause to a LIMIT clause.
|
| pack-priv final void | |
| public final void | setWithCheckOption()
Implements org. WITH CHECK OPTION clause to the end of the subquery.
|
| public final void | setWithReadOnly()
Implements org. WITH READ ONLY clause to the end of the subquery.
|
| public final void | setWithTies(boolean withTies)
Implements org. WITH TIES clause to a LIMIT clause.
|
| private static final Collection | |
| private final void | toSQLOrderBy(final Context<?> ctx, final List<Field<?>> originalFields, final List<Field<?>> alternativeFields, final boolean wrapQueryExpressionInDerivedTable, final boolean wrapQueryExpressionBodyInDerivedTable, final boolean isUnionOrderBy, QueryPartListView<SortField<?>> actualOrderBy, Limit actualLimit)
|
| private final void | |
| private final void | |
| private final void | toSQLReferenceLimitWithWindowFunctions(Context<?> ctx)
Emulate the LIMIT / OFFSET clause using window functions, specifically when the WITH TIES clause is specified. |
| private final void | transformInlineDerivedTable0(Table<?> table, TableList result, ConditionProviderImpl where)
Deprecated
as a consequence of
ConditionProviderImpl being deprecated.
|
| private final TableList | transformInlineDerivedTables(TableList tablelist, ConditionProviderImpl where)
Deprecated
as a consequence of
ConditionProviderImpl being deprecated.
|
| private final Table | transformInlineDerivedTables0(Table<?> table, ConditionProviderImpl where, boolean keepDerivedTable)
Deprecated
as a consequence of
ConditionProviderImpl being deprecated.
|
| public final SelectQueryImpl | union(Select<? extends R> other)
Implements org.
Deprecated
as a consequence of
Apply the SelectQueryImpl being deprecated.
UNION set operation.
|
| public final SelectQueryImpl | unionAll(Select<? extends R> other)
Implements org.
Deprecated
as a consequence of
Apply the SelectQueryImpl being deprecated.
UNION ALL set operation.
|
| private final boolean | |
| private final boolean | |
| private final boolean | unionParensRequired(SelectQueryImpl<?> s)
Deprecated
as a consequence of
SelectQueryImpl being deprecated.
|
| private final void | unionParenthesis(Context<?> ctx, char parenthesis, List<Field<?>> fields, boolean derivedTableRequired, boolean parensRequired)
|
| private final boolean |