org.jooq
Interface QueryPartInternal

All Superinterfaces:
Adapter, Attachable, QueryPart, Serializable
All Known Implementing Classes:
AbstractRoutine, CustomCondition, CustomField, CustomTable, PackageImpl, SchemaImpl, TableImpl, UDTImpl, UpdatableTableImpl

public interface QueryPartInternal
extends QueryPart

Base functionality declaration for all query objects

This interface is for JOOQ INTERNAL USE only. Do not reference directly

Author:
Lukas Eder

Method Summary
 void bind(BindContext context)
          Bind all parameters of this QueryPart to a PreparedStatement This method is for JOOQ INTERNAL USE only.
 boolean declaresFields()
          Check whether this QueryPart is able to declare fields in a SELECT clause.
 boolean declaresTables()
          Check whether this QueryPart is able to declare tables in a FROM clause or JOIN clause.
 List<Object> getBindValues()
          Retrieve the bind values that will be bound by this QueryPart This method is exposed publicly in Query.getBindValues()
 SQLDialect getDialect()
          Deprecated. - 2.0.2 - The attached SQL dialect of a QueryPart should no longer be referenced, as query parts become more and more Configuration - independent
 Param<?> getParam(String name)
          Retrieve a named parameter that will be bound by this QueryPart This method is exposed publicly in Query.getParam(String)
 Map<String,Param<?>> getParams()
          Retrieve the named parameters that will be bound by this QueryPart This method is exposed publicly in Query.getParams()
 String getSQL()
          Deprecated. - 2.5.0 [#1544] - This method will be removed from the internal API. Do not reuse it, except through Query.getSQL()
 String getSQL(boolean inline)
          Deprecated. - 2.5.0 [#1544] - This method will be removed from the internal API. Do not reuse it, except through Query.getSQL(boolean)
 void toSQL(RenderContext context)
          Render this QueryPart to a SQL string contained in context.sql().
 
Methods inherited from interface org.jooq.QueryPart
attach
 
Methods inherited from interface org.jooq.Adapter
internalAPI
 

Method Detail

toSQL

void toSQL(RenderContext context)
Render this 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.


getSQL

@Deprecated
String getSQL()
Deprecated. - 2.5.0 [#1544] - This method will be removed from the internal API. Do not reuse it, except through Query.getSQL()

Retrieve the SQL that will be rendered by this QueryPart

This method is exposed publicly in Query.getSQL()


getSQL

@Deprecated
String getSQL(boolean inline)
Deprecated. - 2.5.0 [#1544] - This method will be removed from the internal API. Do not reuse it, except through Query.getSQL(boolean)

Retrieve the SQL that will be rendered by this QueryPart

This method is exposed publicly in Query.getSQL(boolean)


getBindValues

List<Object> getBindValues()
Retrieve the bind values that will be bound by this QueryPart

This method is exposed publicly in Query.getBindValues()


getParams

Map<String,Param<?>> getParams()
Retrieve the named parameters that will be bound by this QueryPart

This method is exposed publicly in Query.getParams()


getParam

Param<?> getParam(String name)
Retrieve a named parameter that will be bound by this QueryPart

This method is exposed publicly in Query.getParam(String)


bind

void bind(BindContext context)
          throws DataAccessException
Bind all parameters of this QueryPart to a PreparedStatement

This method is for JOOQ INTERNAL USE only. Do not reference directly

Parameters:
context - The context holding the next bind index and other information for variable binding
Throws:
DataAccessException - If something went wrong while binding a variable

getDialect

@Deprecated
SQLDialect getDialect()
Deprecated. - 2.0.2 - The attached SQL dialect of a QueryPart should no longer be referenced, as query parts become more and more Configuration - independent

Reproduce the SQL dialect this QueryPart was created with

This method is for JOOQ INTERNAL USE only. Do not reference directly

Returns:
The SQL dialect

declaresFields

boolean declaresFields()
Check whether this QueryPart is able to declare fields in a SELECT clause.

This method can be used by any Context to check how a certain SQL clause should be rendered.

This method is for JOOQ INTERNAL USE only. Do not reference directly


declaresTables

boolean declaresTables()
Check whether this QueryPart is able to declare tables in a FROM clause or JOIN clause.

This method can be used by any Context to check how a certain SQL clause should be rendered.

This method is for JOOQ INTERNAL USE only. Do not reference directly



Copyright © 2012. All Rights Reserved.