- All Superinterfaces:
Scope
A context object for
QueryPart
traversal passed to registered
VisitListener
's.- Author:
- Lukas Eder
- See Also:
VisitListener
-
Method Summary
Modifier and TypeMethodDescription@Nullable BindContext
@NotNull Clause
clause()
The most recent clause that was encountered throughContext.start(Clause)
.@NotNull Clause[]
clauses()
A path of clauses going through the visiting tree.int
This is the same as callingclauses()
.length
.@NotNull Context<?>
context()
The underlyingRenderContext
orBindContext
object.@NotNull QueryPart
The most recentQueryPart
that was encountered throughContext.visit(QueryPart)
.void
Replace the most recentQueryPart
that was encountered throughContext.visit(QueryPart)
.@NotNull QueryPart[]
A path ofQueryPart
s going through the visiting tree.int
This is the same as callingqueryParts()
.length
.@Nullable RenderContext
-
Method Details
-
clause
The most recent clause that was encountered throughContext.start(Clause)
. -
clauses
A path of clauses going through the visiting tree.This returns all previous clauses that were encountered through
Context.start(Clause)
and that haven't been removed yet throughContext.end(Clause)
. In other words,VisitContext
contains a stack of clauses. -
clausesLength
int clausesLength()This is the same as callingclauses()
.length
. -
queryPart
The most recentQueryPart
that was encountered throughContext.visit(QueryPart)
. -
queryPart
Replace the most recentQueryPart
that was encountered throughContext.visit(QueryPart)
.This method can be called by
VisitListener
implementation methods, in particular byVisitListener.visitStart(VisitContext)
.- Parameters:
part
- The newQueryPart
.
-
queryParts
A path ofQueryPart
s going through the visiting tree.This returns all previous
QueryParts
that were encountered throughContext.visit(QueryPart)
. In other words,VisitContext
contains a stack ofQueryParts
. -
queryPartsLength
int queryPartsLength()This is the same as callingqueryParts()
.length
. -
context
The underlyingRenderContext
orBindContext
object. -
renderContext
The underlyingRenderContext
ornull
, if the underlying context is aBindContext
.[#2694] [#2695] As of jOOQ 3.2, the
QueryPart
traversal SPI throughVisitListener
is only implemented forRenderContext
. Hence, you may need to inline bind values if applicable. -
bindContext
- Throws:
UnsupportedOperationException
- [#2694] [#2695] As of jOOQ 3.2, this method is not yet implemented asQueryPart
traversal SPI throughVisitListener
is only implemented forRenderContext
-