-
- All Superinterfaces:
QueryPart,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 voidaccept(Context<?> ctx)Deprecated.- Callingaccept(Context)directly on aQueryPartis almost always a mistake.voidbind(BindContext ctx)Deprecated.- 3.4.0 - [#2694] - Useaccept(Context)instead.Clause[]clauses(Context<?> ctx)TheClauses that are represented by this query part.booleandeclaresCTE()Check whether thisQueryPartis able to declare common table expressions in aWITHclause.booleandeclaresFields()Check whether thisQueryPartis able to declare fields in aSELECTclause.booleandeclaresTables()booleandeclaresWindows()Check whether thisQueryPartis able to declare windows in aWINDOWclause.booleangeneratesCast()Check whether thisQueryPartis able to generateCASTexpressions around bind variables.voidtoSQL(RenderContext ctx)Deprecated.- 3.4.0 - [#2694] - Useaccept(Context)instead.
-
-
-
Method Detail
-
accept
@Deprecated void accept(Context<?> ctx)
Deprecated.- Callingaccept(Context)directly on aQueryPartis 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 thisQueryPartto a SQL string contained incontext.sql(). Thecontextwill contain additional information about how to render thisQueryPart, e.g. whether thisQueryPartshould 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 thisQueryPartto 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)
TheClauses that are represented by this query part.QueryParts can specify severalClauses 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
Clauses represented by this query part ornullor 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()
-
-