Top Fields Constructors Methods
org.jooq.impl

pack-priv final Class Alias<Q extends org.jooq.QueryPart>

extends AbstractQueryPart
implements UEmpty, SimpleCheckQueryPart
Class Inheritance
All Implemented Interfaces
org.jooq.impl.SimpleCheckQueryPart, org.jooq.QueryPartInternal, org.jooq.QueryPart, java.io.Serializable, org.jooq.impl.QOM.UEmpty
Static Imports
java.lang.Boolean.TRUE, org.jooq.Clause.FIELD, .Clause.FIELD_ALIAS, .Clause.FIELD_REFERENCE, .Clause.TABLE, .Clause.TABLE_ALIAS, .Clause.TABLE_REFERENCE, .SQLDialect.CUBRID, .SQLDialect.DERBY, .SQLDialect.FIREBIRD, .SQLDialect.H2, .SQLDialect.HSQLDB, .SQLDialect.IGNITE, .SQLDialect.MARIADB, .SQLDialect.MYSQL, .SQLDialect.POSTGRES, .SQLDialect.SQLITE, .SQLDialect.YUGABYTEDB, org.jooq.impl.DSL.asterisk, .DSL.falseCondition, .DSL.field, .DSL.select, .Keywords.K_AS, .NoAutoAlias.noAutoAlias, .QueryPartListView.wrap, .SubqueryCharacteristics.DERIVED_TABLE, .Tools.EMPTY_NAME, .Tools.combine, .Tools.map, .Tools.visitSubquery, .Tools.BooleanDataKey.DATA_AS_REQUIRED, .Tools.BooleanDataKey.DATA_UNALIAS_ALIASED_EXPRESSIONS, .Tools.BooleanDataKey.DATA_WRAP_DERIVED_TABLES_IN_PARENTHESES, .Tools.SimpleDataKey.DATA_SELECT_ALIASES, .Values.NO_SUPPORT_VALUES

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv final Name
private static final Clause[]
CLAUSES_FIELD_ALIAS

Deprecated as a consequence of Clause being deprecated.
private static final Clause[]
CLAUSES_FIELD_REFERENCE

Deprecated as a consequence of Clause being deprecated.
private static final Clause[]
CLAUSES_TABLE_ALIAS

Deprecated as a consequence of Clause being deprecated.
private static final Clause[]
CLAUSES_TABLE_REFERENCE

Deprecated as a consequence of Clause being deprecated.
pack-priv final Name[]
private static final Set<SQLDialect>
private static final Set<SQLDialect>
private static final Set<SQLDialect>
private static final Set<SQLDialect>
pack-priv final Predicate<Context<?>>
pack-priv final Q
pack-priv final Q

Constructor Summary

AccessConstructor and Description
pack-priv
Alias(Q wrapped, Q wrapping, Name alias)

pack-priv
Alias(Q wrapped, Q wrapping, Name alias, Name[] fieldAliases, Predicate<Context<?>> wrapInParentheses)

Method Summary

Modifier and TypeMethod and Description
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.
private final void
private final void
public final Clause[]
clauses(Context<?> ctx)

Overrides org.jooq.impl.AbstractQueryPart.clauses.

Implements org.jooq.QueryPartInternal.clauses.

Deprecated as a consequence of Clause being deprecated.
The Clauses that are represented by this query part.
public final boolean
declaresFields()

Overrides org.jooq.impl.AbstractQueryPart.declaresFields.

Implements org.jooq.QueryPartInternal.declaresFields.

Check whether this QueryPart is able to declare fields in a SELECT clause.
public final boolean
declaresTables()

Overrides org.jooq.impl.AbstractQueryPart.declaresTables.

Implements org.jooq.QueryPartInternal.declaresTables.

Check whether this QueryPart is able to declare tables in a FROM clause or JOIN clause.
public final boolean
isSimple(Context<?> ctx)

Overrides default org.jooq.impl.SimpleCheckQueryPart.isSimple.

Whether the QueryPart really is simple.
pack-priv final void
toSQLAs(Context<?> ctx)

private final void
private final void
private final void
toSQLWrapped(Context<?> ctx, boolean wrap)

pack-priv final Q
Inherited from org.jooq.impl.AbstractQueryPart:
configurationcreatecreatecreatedeclaresCTEdeclaresWindowsequalsgeneratesCasthashCoderendersContenttoStringtranslate

Field Detail

aliasback to summary
pack-priv final Name alias
CLAUSES_FIELD_ALIASback to summary
private static final Clause[] CLAUSES_FIELD_ALIAS

Deprecated

as a consequence of Clause being deprecated. See corresponding docs for further information.

CLAUSES_FIELD_REFERENCEback to summary
private static final Clause[] CLAUSES_FIELD_REFERENCE

Deprecated

as a consequence of Clause being deprecated. See corresponding docs for further information.

CLAUSES_TABLE_ALIASback to summary
private static final Clause[] CLAUSES_TABLE_ALIAS

Deprecated

as a consequence of Clause being deprecated. See corresponding docs for further information.

CLAUSES_TABLE_REFERENCEback to summary
private static final Clause[] CLAUSES_TABLE_REFERENCE

Deprecated

as a consequence of Clause being deprecated. See corresponding docs for further information.

fieldAliasesback to summary
pack-priv final Name[] fieldAliases
NO_SUPPORT_ALIASED_JOIN_TABLESback to summary
private static final Set<SQLDialect> NO_SUPPORT_ALIASED_JOIN_TABLES
SUPPORT_AS_REQUIREDback to summary
private static final Set<SQLDialect> SUPPORT_AS_REQUIRED
SUPPORT_DERIVED_COLUMN_NAMES_SPECIAL1back to summary
private static final Set<SQLDialect> SUPPORT_DERIVED_COLUMN_NAMES_SPECIAL1
SUPPORT_DERIVED_COLUMN_NAMES_SPECIAL2back to summary
private static final Set<SQLDialect> SUPPORT_DERIVED_COLUMN_NAMES_SPECIAL2
wrapInParenthesesback to summary
pack-priv final Predicate<Context<?>> wrapInParentheses
wrappedback to summary
pack-priv final Q wrapped
wrappingback to summary
pack-priv final Q wrapping

Constructor Detail

Aliasback to summary
pack-priv Alias(Q wrapped, Q wrapping, Name alias)
Aliasback to summary
pack-priv Alias(Q wrapped, Q wrapping, Name alias, Name[] fieldAliases, Predicate<Context<?>> wrapInParentheses)

Method Detail

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
acceptDeclareAliasStandardback to summary
private final void acceptDeclareAliasStandard(Context<?> context)
acceptDeclareAliasTSQLback to summary
private final void acceptDeclareAliasTSQL(Context<?> ctx)
clausesback to summary
public final Clause[] clauses(Context<?> ctx)

Overrides org.jooq.impl.AbstractQueryPart.clauses.

Implements org.jooq.QueryPartInternal.clauses.

Doc from org.jooq.QueryPartInternal.clauses.

Deprecated

as a consequence of Clause being deprecated. See corresponding docs for further information.

The Clauses that are represented by this query part.

QueryParts can specify several Clauses for which an event will be emitted before (in forward order) and after (in reverse order) visiting the the query part through Context#visit(QueryPart)

This method is for JOOQ INTERNAL USE only. Do not reference directly

Returns:Clause[]

The Clauses represented by this query part or null or an empty array if this query part does not represent a clause.

Annotations
@Override
declaresFieldsback to summary
public final boolean declaresFields()

Overrides org.jooq.impl.AbstractQueryPart.declaresFields.

Implements org.jooq.QueryPartInternal.declaresFields.

Doc from org.jooq.QueryPartInternal.declaresFields.

Check whether this QueryPart is able to declare fields in a SELECT clause.

This method can be used by any Context to check how a certain SQL clause should be rendered.

This method is for JOOQ INTERNAL USE only. Do not reference directly

Annotations
@Override
declaresTablesback to summary
public final boolean declaresTables()

Overrides org.jooq.impl.AbstractQueryPart.declaresTables.

Implements org.jooq.QueryPartInternal.declaresTables.

Doc from org.jooq.QueryPartInternal.declaresTables.

Check whether this QueryPart is able to declare tables in a FROM clause or JOIN clause.

This method can be used by any Context to check how a certain SQL clause should be rendered.

This method is for JOOQ INTERNAL USE only. Do not reference directly

Annotations
@Override
isSimpleback to summary
public final boolean isSimple(Context<?> ctx)

Overrides default org.jooq.impl.SimpleCheckQueryPart.isSimple.

Doc from org.jooq.impl.SimpleCheckQueryPart.isSimple.

Whether the QueryPart really is simple.

e.g. an OrderField can be simple if its contents are also simple.

Annotations
@Override
toSQLAsback to summary
pack-priv final void toSQLAs(Context<?> ctx)
toSQLDerivedColumnListback to summary
private final void toSQLDerivedColumnList(Context<?> ctx)
toSQLWrappedback to summary
private final void toSQLWrapped(Context<?> ctx)
toSQLWrappedback to summary
private final void toSQLWrapped(Context<?> ctx, boolean wrap)
wrappedback to summary
pack-priv final Q wrapped()