public interface BindContext extends Context<BindContext>
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
RenderContext
Modifier and Type | Method and Description |
---|---|
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 |
declareFields, declareFields, declareTables, declareTables, nextIndex, peekIndex, subquery, subquery
getConnection, getData, getData, getDataSource, getDialect, getSchemaMapping, getSettings, setConnection, setData, setDataSource
PreparedStatement statement()
PreparedStatement
BindContext bind(QueryPart part) throws DataAccessException
QueryPart
. This will also increment the
internal counter.DataAccessException
- If something went wrong while binding a
variableBindContext bind(Collection<? extends QueryPart> parts) throws DataAccessException
QueryPart
's. This will also increment
the internal counter.DataAccessException
- If something went wrong while binding a
variableBindContext bind(QueryPart[] parts) throws DataAccessException
QueryPart
's. This will also increment
the internal counter.DataAccessException
- If something went wrong while binding a
variableBindContext bindValue(Object value, Class<?> type) throws DataAccessException
DataAccessException
- If something went wrong while binding a
variableBindContext bindValues(Object... values) throws DataAccessException
DataAccessException
- If something went wrong while binding a
variableCopyright © 2013. All Rights Reserved.