org.jooq
Interface Context<C extends Context<C>>

All Superinterfaces:
Configuration, Serializable
All Known Subinterfaces:
BindContext, RenderContext

public interface Context<C extends Context<C>>
extends Configuration

A context type that is used for rendering SQL or for binding

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

Author:
Lukas Eder
See Also:
BindContext, RenderContext

Method Summary
 boolean declareFields()
          Whether the current context is rendering a SQL field declaration (e.g. a Field in the SELECT clause of the query).
 C declareFields(boolean declareFields)
          Set the new context value for declareFields()
 boolean declareTables()
          Whether the current context is rendering a SQL table declaration (e.g. a Table in the FROM or JOIN clause of the query).
 C declareTables(boolean declareTables)
          Set the new context value for declareTables()
 int nextIndex()
          Get the next bind index.
 int peekIndex()
          Peek the next bind index.
 boolean subquery()
          Whether the current context is rendering a sub-query (nested query)
 C subquery(boolean subquery)
          Set the new context value for subquery()
 
Methods inherited from interface org.jooq.Configuration
getConnection, getData, getData, getDataSource, getDialect, getSchemaMapping, getSettings, setConnection, setData, setDataSource
 

Method Detail

declareFields

boolean declareFields()
Whether the current context is rendering a SQL field declaration (e.g. a Field in the SELECT clause of the query).


declareFields

C declareFields(boolean declareFields)
Set the new context value for declareFields()


declareTables

boolean declareTables()
Whether the current context is rendering a SQL table declaration (e.g. a Table in the FROM or JOIN clause of the query).


declareTables

C declareTables(boolean declareTables)
Set the new context value for declareTables()


subquery

boolean subquery()
Whether the current context is rendering a sub-query (nested query)


subquery

C subquery(boolean subquery)
Set the new context value for subquery()


nextIndex

int nextIndex()
Get the next bind index. This increments an internal counter. This is relevant for two use-cases:


peekIndex

int peekIndex()
Peek the next bind index. This won't increment the internal counter, unlike nextIndex()



Copyright © 2012. All Rights Reserved.