Top Description Inners Fields Constructors Methods
org.jooq.impl

pack-priv final Enum ScopeMarker

extends Enum<ScopeMarker>
Class Inheritance
Static Imports
org.jooq.impl.Keywords.K_DECLARE, .Tools.increment, .Tools.SimpleDataKey.DATA_TOP_LEVEL_CTE, .WithImpl.acceptWithRecursive

A set of markers for use with the ScopeStack.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static interface
pack-priv static interface

Field Summary

Modifier and TypeField and Description
pack-priv final ScopeMarker.Marker
pack-priv final ScopeMarker.Marker
pack-priv final Object
pack-priv final ScopeMarker.ReplacementRenderer
public static final ScopeMarker
pack-priv final boolean

Constructor Summary

AccessConstructor and Description
private
ScopeMarker(boolean topLevelOnly, Object key, ScopeMarker.ReplacementRenderer renderer)

Method Summary

Modifier and TypeMethod and Description
public static ScopeMarker
public static ScopeMarker[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

afterLastback to summary
pack-priv final ScopeMarker.Marker afterLast
beforeFirstback to summary
pack-priv final ScopeMarker.Marker beforeFirst
keyback to summary
pack-priv final Object key
rendererback to summary
pack-priv final ScopeMarker.ReplacementRenderer renderer
TOP_LEVEL_CTEback to summary
public static final ScopeMarker TOP_LEVEL_CTE
topLevelOnlyback to summary
pack-priv final boolean topLevelOnly

Constructor Detail

ScopeMarkerback to summary
private ScopeMarker(boolean topLevelOnly, Object key, ScopeMarker.ReplacementRenderer renderer)

Method Detail

valueOfback to summary
public static ScopeMarker valueOf(String name)
valuesback to summary
public static ScopeMarker[] values()
org.jooq.impl back to summary

pack-priv Class ScopeMarker.Marker

extends Object
implements QueryPartInternal, UTransient
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UTransient, org.jooq.impl.QOM.UEmpty, org.jooq.QueryPart, java.io.Serializable, org.jooq.QueryPartInternal

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
Marker(String marker)

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.
public final Clause[]
clauses(Context<?> ctx)

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
declaresCTE()

Implements org.jooq.QueryPartInternal.declaresCTE.

Check whether this QueryPart is able to declare common table expressions in a WITH clause.
public final boolean
declaresFields()

Implements org.jooq.QueryPartInternal.declaresFields.

Check whether this QueryPart is able to declare fields in a SELECT clause.
public final boolean
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
declaresWindows()

Implements org.jooq.QueryPartInternal.declaresWindows.

Check whether this QueryPart is able to declare windows in a WINDOW clause.
public final boolean
generatesCast()

Implements org.jooq.QueryPartInternal.generatesCast.

Check whether this QueryPart is able to generate CAST expressions around bind variables.
public final boolean
rendersContent(Context<?> ctx)

Implements org.jooq.QueryPartInternal.rendersContent.

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

Overrides java.lang.Object.toString.

Implements org.jooq.QueryPart.toString.

Render a SQL string representation of this QueryPart.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

markerback to summary
private final String marker

Constructor Detail

Markerback to summary
pack-priv Marker(String marker)

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
clausesback to summary
public final Clause[] clauses(Context<?> ctx)

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
declaresCTEback to summary
public final boolean declaresCTE()

Implements org.jooq.QueryPartInternal.declaresCTE.

Doc from org.jooq.QueryPartInternal.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

Annotations
@Override
declaresFieldsback to summary
public final boolean 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()

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
declaresWindowsback to summary
public final boolean declaresWindows()

Implements org.jooq.QueryPartInternal.declaresWindows.

Doc from org.jooq.QueryPartInternal.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

Annotations
@Override
generatesCastback to summary
public final boolean generatesCast()

Implements org.jooq.QueryPartInternal.generatesCast.

Doc from org.jooq.QueryPartInternal.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

Annotations
@Override
rendersContentback to summary
public final boolean rendersContent(Context<?> ctx)

Implements org.jooq.QueryPartInternal.rendersContent.

Doc from org.jooq.QueryPartInternal.rendersContent.

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

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements org.jooq.QueryPart.toString.

Doc from org.jooq.QueryPart.toString.

Render a SQL string representation of this QueryPart.

For improved debugging, this renders a SQL string of this QueryPart with inlined bind variables. If this QueryPart is Attachable, then the attached Configuration may be used for rendering the SQL string, including SQLDialect and Settings. Do note that most QueryPart instances are not attached to a Configuration, and thus there is no guarantee that the SQL string will make sense in the context of a specific database.

Returns:String

A SQL string representation of this QueryPart

Annotations
@Override
org.jooq.impl back to summary

pack-priv Interface ScopeMarker.ReplacementRenderer

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public void

Method Detail

renderback to summary
public void render(DefaultRenderContext ctx, AbstractContext.ScopeStackElement beforeFirst, AbstractContext.ScopeStackElement afterLast, ScopeMarker.ScopeContent content)
org.jooq.impl back to summary

pack-priv Interface ScopeMarker.ScopeContent

Known Direct Implementers
org.jooq.impl.TopLevelCte

Method Summary

Modifier and TypeMethod and Description
public boolean

Method Detail

isEmptyback to summary
public boolean isEmpty()