public interface QueryPartInternal extends QueryPart
This interface is for JOOQ INTERNAL USE only. Do not reference directly
Modifier and Type | Method and Description |
---|---|
void |
accept(Context<?> ctx)
Deprecated.
- Calling
accept(Context) directly on a
QueryPart is almost always a mistake. Instead,
Context.visit(QueryPart) should be called. |
void |
bind(BindContext ctx)
Deprecated.
- 3.4.0 - [#2694] - Use
accept(Context) instead. |
Clause[] |
clauses(Context<?> ctx)
The
Clause s that are represented by this query part. |
boolean |
declaresCTE()
Check whether this
QueryPart is able to declare common table
expressions in a WITH clause. |
boolean |
declaresFields()
Check whether this
QueryPart is able to declare fields in a
SELECT clause. |
boolean |
declaresTables()
|
boolean |
declaresWindows()
Check whether this
QueryPart is able to declare windows in a
WINDOW clause. |
boolean |
generatesCast()
Check whether this
QueryPart is able to generate
CAST expressions around bind variables. |
void |
toSQL(RenderContext ctx)
Deprecated.
- 3.4.0 - [#2694] - Use
accept(Context) instead. |
@Deprecated void accept(Context<?> ctx)
accept(Context)
directly on a
QueryPart
is almost always a mistake. Instead,
Context.visit(QueryPart)
should be called.@Deprecated void toSQL(RenderContext ctx)
accept(Context)
instead.QueryPart
to a SQL string contained in
context.sql()
. The context
will contain
additional information about how to render this QueryPart
,
e.g. whether this QueryPart
should be rendered as a
declaration or reference, whether this QueryPart
's contained
bind variables should be inlined or replaced by '?'
, etc.@Deprecated void bind(BindContext ctx) throws DataAccessException
accept(Context)
instead.QueryPart
to a PreparedStatement
This method is for JOOQ INTERNAL USE only. Do not reference directly
ctx
- The context holding the next bind index and other information
for variable bindingDataAccessException
- If something went wrong while binding a
variableClause[] clauses(Context<?> ctx)
Clause
s that are represented by this query part.
QueryPart
s can specify several Clause
s 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
Clause
s represented by this query part or
null
or an empty array if this query part does not
represent a clause.boolean declaresFields()
boolean declaresTables()
boolean declaresWindows()
boolean declaresCTE()
boolean generatesCast()
Copyright © 2018. All Rights Reserved.