Package org.jooq
Interface QueryPartInternal
-
- All Superinterfaces:
QueryPart
,java.io.Serializable
- All Known Implementing Classes:
AbstractRoutine
,CatalogImpl
,ConvertDateTime
,CustomCondition
,CustomField
,CustomQueryPart
,CustomTable
,PackageImpl
,SchemaImpl
,SequenceImpl
,TableImpl
,UDTImpl
@Internal public interface QueryPartInternal extends QueryPart
Base functionality declaration for all query objectsThis interface is for JOOQ INTERNAL USE only. Do not reference directly
- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
accept(Context<?> ctx)
Deprecated.- Callingaccept(Context)
directly on aQueryPart
is almost always a mistake.void
bind(BindContext ctx)
Deprecated.- 3.4.0 - [#2694] - Useaccept(Context)
instead.Clause[]
clauses(Context<?> ctx)
TheClause
s that are represented by this query part.boolean
declaresCTE()
Check whether thisQueryPart
is able to declare common table expressions in aWITH
clause.boolean
declaresFields()
Check whether thisQueryPart
is able to declare fields in aSELECT
clause.boolean
declaresTables()
boolean
declaresWindows()
Check whether thisQueryPart
is able to declare windows in aWINDOW
clause.boolean
generatesCast()
Check whether thisQueryPart
is able to generateCAST
expressions around bind variables.void
toSQL(RenderContext ctx)
Deprecated.- 3.4.0 - [#2694] - Useaccept(Context)
instead.
-
-
-
Method Detail
-
accept
@Deprecated void accept(Context<?> ctx)
Deprecated.- Callingaccept(Context)
directly on aQueryPart
is almost always a mistake. Instead,Context.visit(QueryPart)
should be called.
-
toSQL
@Deprecated void toSQL(RenderContext ctx)
Deprecated.- 3.4.0 - [#2694] - Useaccept(Context)
instead.Render thisQueryPart
to a SQL string contained incontext.sql()
. Thecontext
will contain additional information about how to render thisQueryPart
, e.g. whether thisQueryPart
should be rendered as a declaration or reference, whether thisQueryPart
's contained bind variables should be inlined or replaced by'?'
, etc.
-
bind
@Deprecated void bind(BindContext ctx) throws DataAccessException
Deprecated.- 3.4.0 - [#2694] - Useaccept(Context)
instead.Bind all parameters of thisQueryPart
to a PreparedStatementThis method is for JOOQ INTERNAL USE only. Do not reference directly
- Parameters:
ctx
- The context holding the next bind index and other information for variable binding- Throws:
DataAccessException
- If something went wrong while binding a variable
-
clauses
Clause[] clauses(Context<?> ctx)
TheClause
s that are represented by this query part.QueryPart
s can specify severalClause
s for which an event will be emittedbefore
(in forward order) andafter
(in reverse order) visiting the the query part throughContext.visit(QueryPart)
This method is for JOOQ INTERNAL USE only. Do not reference directly
- Returns:
- The
Clause
s represented by this query part ornull
or an empty array if this query part does not represent a clause.
-
declaresFields
boolean declaresFields()
-
declaresTables
boolean declaresTables()
-
declaresWindows
boolean declaresWindows()
-
declaresCTE
boolean declaresCTE()
-
generatesCast
boolean generatesCast()
-
-