org.jooq
Interface BindContext

All Superinterfaces:
Configuration, Context<BindContext>, Serializable

public interface BindContext
extends Context<BindContext>

The bind context is used for binding QueryPart's and their contained values to a PreparedStatement's bind variables. A new bind context is instanciated every time a Query is bound. QueryPart's will then pass the same context to their components

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

Author:
Lukas Eder
See Also:
RenderContext

Method Summary
 BindContext bind(Collection<? extends QueryPart> parts)
          Bind values from several QueryPart's.
 BindContext bind(QueryPart part)
          Bind values from a QueryPart.
 BindContext bind(QueryPart[] parts)
          Bind values from several QueryPart's.
 BindContext bindValue(Object value, Class<?> type)
          Bind a value using a specific type.
 BindContext bindValues(Object... values)
          Bind several values.
 PreparedStatement statement()
          Retrieve the context's underlying PreparedStatement
 
Methods inherited from interface org.jooq.Context
declareFields, declareFields, declareTables, declareTables, nextIndex, peekIndex, subquery, subquery
 
Methods inherited from interface org.jooq.Configuration
getConnection, getData, getData, getDialect, getSchemaMapping, getSettings, setConnection, setData
 

Method Detail

statement

PreparedStatement statement()
Retrieve the context's underlying PreparedStatement


bind

BindContext bind(QueryPart part)
                 throws DataAccessException
Bind values from a QueryPart. This will also increment the internal counter.

Throws:
DataAccessException - If something went wrong while binding a variable

bind

BindContext bind(Collection<? extends QueryPart> parts)
                 throws DataAccessException
Bind values from several QueryPart's. This will also increment the internal counter.

Throws:
DataAccessException - If something went wrong while binding a variable

bind

BindContext bind(QueryPart[] parts)
                 throws DataAccessException
Bind values from several QueryPart's. This will also increment the internal counter.

Throws:
DataAccessException - If something went wrong while binding a variable

bindValue

BindContext bindValue(Object value,
                      Class<?> type)
                      throws DataAccessException
Bind a value using a specific type. This will also increment the internal counter.

Throws:
DataAccessException - If something went wrong while binding a variable

bindValues

BindContext bindValues(Object... values)
                       throws DataAccessException
Bind several values. This will also increment the internal counter.

Throws:
DataAccessException - If something went wrong while binding a variable


Copyright © 2012. All Rights Reserved.