Select query that re-aliases its projection, or produces a derived
table if re-aliasing is not possible (e.g. in the presence of
ORDER BY).
| Modifier and Type | Field and Description |
|---|---|
| private final Name[] | |
| private final boolean | |
| private final boolean | |
| private final Select | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | AliasedSelect(Select<R> query, boolean subquery, boolean ignoreOrderBy, boolean forceLimit, Name... aliases)
|
| Modifier and Type | Method and Description |
|---|---|
| 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.
|
| private final void | |
| public final Table | as(Name
The alias name alias)Overrides org. Implements org. |
| public final Table | as(Name
The alias name alias, Name... The field aliases. Excess aliases are ignored,
missing aliases will be substituted by this table's field
names. fieldAliases)Overrides org. Implements org. |
| pack-priv static final boolean | |
| 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.
|
| pack-priv final FieldsImpl | fields0()
Implements abstract org. |
| public final Class | getRecordType()
Implements org. UDT or Table.
|
| pack-priv final Select |
| aliases | back to summary |
|---|---|
| private final Name[] aliases | |
| forceLimit | back to summary |
|---|---|
| private final boolean forceLimit | |
| ignoreOrderBy | back to summary |
|---|---|
| private final boolean ignoreOrderBy | |
| query | back to summary |
|---|---|
| private final Select<R> query | |
| subquery | back to summary |
|---|---|
| private final boolean subquery | |
| AliasedSelect | back to summary |
|---|---|
| pack-priv AliasedSelect(Select<R> query, boolean subquery, boolean ignoreOrderBy, boolean forceLimit) | |
| AliasedSelect | back to summary |
|---|---|
| pack-priv AliasedSelect(Select<R> query, boolean subquery, boolean ignoreOrderBy, boolean forceLimit, Name... aliases) | |
| accept | back to summary |
|---|---|
| public final void accept(Context<?> ctx) Implements org. Doc from org. This
| |
| accept0 | back to summary |
|---|---|
| private final void accept0(Context<?> ctx) | |
| as | back to summary |
|---|---|
| public final Table Overrides org. Implements org. Doc from org. Create an alias for this table.
Note that the case-sensitivity of the returned table depends on
If the argument
This method works both to alias the table as well as alias the table in
its | |
| as | back to summary |
|---|---|
| public final Table Overrides org. Implements org. Doc from org. Create an alias for this table and its fields.
Note that the case-sensitivity of the returned table depends on
If the argument
Derived column lists for table referencesNote, not all databases support derived column lists for their table aliases. On the other hand, some databases do support derived column lists, but only for derived tables. jOOQ will try to turn table references into derived tables to make this syntax work. In other words, the following statements are equivalent:
Derived column lists for derived tablesOther databases may not support derived column lists at all, but they do support common table expressions. The following statements are equivalent:
| |
| avoidAliasPushdown | back to summary |
|---|---|
| pack-priv static final boolean avoidAliasPushdown(Context<?> ctx, Select<?> query) | |
| clauses | back to summary |
|---|---|
| public final Clause[] clauses(Context<?> ctx) Overrides org. Implements org. Doc from org. Deprecated as a consequence of The
This method is for JOOQ INTERNAL USE only. Do not reference directly | |
| fields0 | back to summary |
|---|---|
| pack-priv final FieldsImpl Implements abstract org. Doc from org. Subclasses should override this method to provide the set of fields
contained in the concrete table implementation. For example, a
| |
| getRecordType | back to summary |
|---|---|
| public final Class Implements org. Doc from org. The record type produced by this
| |
| query | back to summary |
|---|---|
| pack-priv final Select | |