This type implements Scope and thus has a lifecycle defined by the
rendering or binding operation.
The data() map contents are maintained for the entirety of the
rendering or binding operation, and are passed along to child Scope
types, including e.g.
GeneratorContext: When computing client side computed column
valuesBindingSQLContext: When generating the SQL for bind valuesBindContext, RenderContext
| Modifier and Type | Method and Description |
|---|---|
| public @NotNull BindContext | |
| public @NotNull RenderContext. | |
| public C | |
| public C | castMode(RenderContext.
Set the new cast mode for |
| public C | castModeIf(RenderContext.
Set the new cast mode for |
| public C | |
| public boolean | declareAliases()
Whether the current context is rendering a SQL alias declarations in
|
| public C | declareAliases(boolean declareTables)
Whether the current context is rendering a SQL alias declarations in
|
| public C | declareAliases(boolean declareTables, Consumer<? super C> consumer)
Whether the current context is rendering a SQL alias declarations in
|
| public boolean | declareCTE()
Whether the current context is rendering a common table expression (e.g.
a |
| public C | |
| public C | declareCTE(boolean declareCTE, Consumer<? super C> consumer)
Set the new context value for |
| public boolean | declareFields()
Whether the current context is rendering a SQL field declaration (e.g. a
|
| public C | |
| public C | declareFields(boolean declareFields, Consumer<? super C> consumer)
Set the new context value for |
| public boolean | declareTables()
Whether the current context is rendering a SQL table declaration (e.g. a
|
| public C | |
| public C | declareTables(boolean declareTables, Consumer<? super C> consumer)
Set the new context value for |
| public boolean | declareWindows()
Whether the current context is rendering a SQL window declaration (e.g. a
|
| public C | |
| public C | declareWindows(boolean declareWindows, Consumer<? super C> consumer)
Set the new context value for |
| public boolean | |
| public C | derivedTableSubquery(boolean derivedTableSubquery)
Set the new context value for |
| public DecimalFormat | |
| public C | |
| public DecimalFormat | |
| public C | |
| public boolean | |
| public C | formatIndentEnd()
Stop indenting subsequent SQL by one level (two characters), if
|
| public C | formatIndentEnd(int indent)
Stop indenting subsequent SQL by a number of characters, if
|
| public C | formatIndentLockEnd()
Deprecated
for removal since 3.14. - [#10317] - 3.14.0 - Do not reuse this method. It will be
removed without replacement.
Stop indenting subsequent SQL at the same level as the current line, if
Settings#isRenderFormatted() is set to true.
|
| public C | formatIndentLockStart()
Deprecated
for removal since 3.14. - [#10317] - 3.14.0 - Do not reuse this method. It will be
removed without replacement.
Start indenting subsequent SQL at the same level as the current line, if
Settings#isRenderFormatted() is set to true.
|
| public C | formatIndentStart()
Start indenting subsequent SQL by one level (two characters), if
|
| public C | formatIndentStart(int indent)
Start indenting subsequent SQL by a number of characters, if
|
| public C | |
| public C | formatNewLineAfterPrintMargin()
Render a new line character (only if |
| public C | formatPrintMargin(int margin)
Set a print margin that will be applied to formatted SQL, if
|
| public C | formatSeparator()
Render a new line character (only if |
| public C | keyword(String keyword)
Deprecated
for removal since 3.10. - 3.10.0 - [#4990] - Use
Append a SQL keyword to the context's contained DSL#keyword(String) instead.
StringBuilder.
|
| public @NotNull LanguageContext | |
| public C | |
| public C | languageContext(LanguageContext languageContext, Consumer<? super C> consumer)
Set the new language context for |
| public C | languageContext(LanguageContext languageContext, QueryPart topLevelForLanguageContext, Consumer<? super C> consumer)
Set the new language context for |
| public C | languageContextIf(LanguageContext languageContext, boolean condition)
Set the new language context for |
| public C | literal(String literal)
Deprecated
for removal since 3.10. - 3.10.0 - [#4990] - Use any of
Append some literal to the context's contained DSL#name(String),
DSL#quotedName(String) or
DSL#unquotedName(String) instead.
StringBuilder.
|
| public @NotNull String | |
| public int | |
| public @NotNull ParamType | |
| public C | |
| public C | paramType(ParamType paramType, Consumer<? super C> runnable)
Set the new context value for |
| public C | paramTypeIf(ParamType paramType, boolean condition)
Set the new context value for |
| public C | paramTypeIf(ParamType paramType, boolean condition, Consumer<? super C> runnable)
Set the new context value for |
| public @NotNull String | |
| public int | |
| public boolean | predicandSubquery()
Whether the current context is rendering a predicand subquery, i.e. a subquery that is an operand of a predicate. |
| public C | |
| public boolean | |
| public C | |
| public C | |
| public boolean | |
| public C | |
| public C | qualifyCatalog(boolean qualifyCatalog, Consumer<? super C> consumer)
Set the new context value for |
| public boolean | |
| public C | |
| public C | qualifySchema(boolean qualifySchema, Consumer<? super C> consumer)
Set the new context value for |
| public boolean | |
| public C | |
| public C | |
| public @NotNull String | |
| public @NotNull String | |
| public C | |
| public int | |
| public @NotNull QueryPart | |
| public C | |
| public C | |
| public C | scopeRegister(QueryPart part)
Register a "special" query part in the scope, reusing the object from a higher scope, if available. |
| public C | scopeRegister(QueryPart part, boolean forceNew)
Register a "special" query part in the scope, allowing to force registering the object in the new scope, if a higher scope already has the object. |
| public C | scopeRegister(QueryPart part, boolean forceNew, QueryPart mapped)
Register a "special" query part in the scope, allowing to force registering the object in the new scope, if a higher scope already has the object, as well as providing a mapped part to map the original part to. |
| public C | scopeRegisterAndMark(QueryPart part, boolean forceNew)
Combine |
| public C | |
| public C | separatorRequired(boolean separatorRequired)
Specify that a separator will be required before the next
|
| public boolean | |
| public boolean | |
| public C | setOperationSubquery(boolean setOperationSubquery)
Set the new context value for |
| public C | |
| public C | |
| public int | |
| public C | |
| public C | |
| public C | |
| public C | |
| public C | |
| public C | |
| public C | |
| public C | sqlIndentEnd(String sql)
Append some SQL to the context's contained |
| public C | sqlIndentEnd()
Append some SQL to the context's contained |
| public C | sqlIndentEnd(char sql)
Append some SQL to the context's contained |
| public C | sqlIndentStart(String sql)
Append some SQL to the context's contained |
| public C | sqlIndentStart()
Append some SQL to the context's contained |
| public C | sqlIndentStart(char sql)
Append some SQL to the context's contained |
| public C | |
| public @Nullable PreparedStatement | statement()
Retrieve the context's underlying |
| public boolean | |
| public C | |
| public boolean | |
| public C | |
| public int | subqueryLevel()
Which level of subqueries we're currently in, starting with 0 for the top level query. |
| public @Nullable QueryPart | |
| public C | |
| public @Nullable QueryPart | topLevelForLanguageContext()
The top level |
| public C | topLevelForLanguageContext(QueryPart topLevelForLanguageContext)
Set the top level |
| public C | |
| public C | |
| public C | |
| public C | |
| public C | visitSubquery(QueryPart
The component part)QueryPartVisit a |