-
- All Superinterfaces:
Context<BindContext>,Scope
@Internal public interface BindContext extends Context<BindContext>
The bind context is used for bindingQueryPart's and their contained values to aPreparedStatement's bind variables. A new bind context is instantiated every time aQueryis bound.QueryPart's will then pass the same context to their componentsThis interface is for JOOQ INTERNAL USE only. Do not reference directly
- Author:
- Lukas Eder
- See Also:
RenderContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BindContextbind(Collection<? extends QueryPart> parts)Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)insteadBindContextbind(QueryPart part)Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)insteadBindContextbind(QueryPart[] parts)Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)insteadBindContextbindValue(Object value, Class<?> type)Deprecated.- 3.4.0 - [#3114] - UsebindValue(Object, Field)insteadBindContextbindValue(Object value, Field<?> field)Bind a value using a specific type.BindContextbindValues(Object... values)Deprecated.- 3.4.0 - [#3114] - UsebindValue(Object, Field)insteadPreparedStatementstatement()Retrieve the context's underlyingPreparedStatement-
Methods inherited from interface org.jooq.Context
cast, castMode, castMode, castModeSome, declareAliases, declareAliases, declareCTE, declareCTE, declareFields, declareFields, declareTables, declareTables, declareWindows, declareWindows, end, format, format, formatIndentEnd, formatIndentEnd, formatIndentLockEnd, formatIndentLockStart, formatIndentStart, formatIndentStart, formatNewLine, formatNewLineAfterPrintMargin, formatPrintMargin, formatSeparator, keyword, literal, nextAlias, nextIndex, paramType, paramType, peekAlias, peekIndex, qualify, qualify, qualifyCatalog, qualifyCatalog, qualifySchema, qualifySchema, quote, quote, render, render, scopeEnd, scopeMarkEnd, scopeMarkStart, scopeRegister, scopeStart, sql, sql, sql, sql, sql, sql, sql, start, stringLiteral, stringLiteral, subquery, subquery, subqueryLevel, visit
-
-
-
-
Method Detail
-
statement
PreparedStatement statement()
Retrieve the context's underlyingPreparedStatement- Specified by:
statementin interfaceContext<BindContext>
-
bind
@Deprecated BindContext bind(QueryPart part) throws DataAccessException
Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)insteadBind values from aQueryPart. This will also increment the internal counter.- Throws:
DataAccessException- If something went wrong while binding a variable
-
bind
@Deprecated BindContext bind(Collection<? extends QueryPart> parts) throws DataAccessException
Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)insteadBind values from severalQueryPart's. This will also increment the internal counter.- Throws:
DataAccessException- If something went wrong while binding a variable
-
bind
@Deprecated BindContext bind(QueryPart[] parts) throws DataAccessException
Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)insteadBind values from severalQueryPart's. This will also increment the internal counter.- Throws:
DataAccessException- If something went wrong while binding a variable
-
bindValue
@Deprecated BindContext bindValue(Object value, Class<?> type) throws DataAccessException
Deprecated.- 3.4.0 - [#3114] - UsebindValue(Object, Field)insteadBind a value using a specific type. This will also increment the internal counter.- Throws:
DataAccessException- If something went wrong while binding a variable
-
bindValues
@Deprecated BindContext bindValues(Object... values) throws DataAccessException
Deprecated.- 3.4.0 - [#3114] - UsebindValue(Object, Field)insteadBind several values. This will also increment the internal counter.- Throws:
DataAccessException- If something went wrong while binding a variable
-
bindValue
BindContext bindValue(Object value, Field<?> field) throws DataAccessException
Bind a value using a specific type. This will also increment the internal counter.- Specified by:
bindValuein interfaceContext<BindContext>- Throws:
DataAccessException- If something went wrong while binding a variable
-
-