Top Description Methods
org.jooq

public Interface QueryPartInternal

extends QueryPart
Known Direct Subinterfaces
org.jooq.impl.ResultQueryTrait, org.jooq.impl.AutoAlias, org.jooq.impl.ScopeMappable, org.jooq.impl.ScopeNestable, org.jooq.impl.SimpleCheckQueryPart, org.jooq.impl.SimpleQueryPart
Known Direct Implementers
org.jooq.impl.AbstractQueryPart, org.jooq.impl.ScopeMarker.Marker
Annotations
@Internal
Imports
org.jooq.exception.DataAccessException, org.jetbrains.annotations.ApiStatus.Internal

Base functionality declaration for all query objects

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

Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public void
accept(Context<?> ctx)

Deprecated - Calling accept(Context) directly on a QueryPart is almost always a mistake.
This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.
public Clause[]

Returns:

The Clauses represented by this query part or null or an empty array if this query part does not represent a clause.
clauses
(Context<?> ctx)

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

Check whether this QueryPart is able to declare common table expressions in a WITH clause.

public boolean
declaresFields()

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

public boolean
declaresTables()

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

public boolean
declaresWindows()

Check whether this QueryPart is able to declare windows in a WINDOW clause.

public boolean
generatesCast()

Check whether this QueryPart is able to generate CAST expressions around bind variables.

public boolean
rendersContent(Context<?> ctx)

Deprecated - Calling rendersContent(Context) directly on a QueryPart is almost always a mistake.
Whether a call to accept(Context) would render content.
Inherited from org.jooq.QueryPart:
equalshashCodetoString

Method Detail

acceptback to summary
public void accept(Context<?> ctx)

Deprecated

- Calling accept(Context) directly on a QueryPart is almost always a mistake. Instead, Context#visit(QueryPart) should be called.

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

Annotations
@Deprecated
clausesback to summary
public Clause[] clauses(Context<?> ctx)

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
@SuppressWarnings:javadoc
declaresCTEback to summary
public boolean declaresCTE()

Check whether this QueryPart is able to declare common table expressions in a WITH 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

declaresFieldsback to summary
public boolean 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

declaresTablesback to summary
public boolean 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

declaresWindowsback to summary
public boolean declaresWindows()

Check whether this QueryPart is able to declare windows in a WINDOW 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

generatesCastback to summary
public boolean generatesCast()

Check whether this QueryPart is able to generate CAST expressions around bind variables.

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

rendersContentback to summary
public boolean rendersContent(Context<?> ctx)

Deprecated

- Calling rendersContent(Context) directly on a QueryPart is almost always a mistake.

Whether a call to accept(Context) would render content.

Annotations
@Deprecated