Package org.jooq
Interface BindContext
-
- 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 aQuery
is 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 BindContext
bind(java.util.Collection<? extends QueryPart> parts)
Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)
insteadBindContext
bind(QueryPart part)
Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)
insteadBindContext
bind(QueryPart[] parts)
Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)
insteadBindContext
bindValue(java.lang.Object value, java.lang.Class<?> type)
Deprecated.- 3.4.0 - [#3114] - UsebindValue(Object, Field)
insteadBindContext
bindValue(java.lang.Object value, Field<?> field)
Bind a value using a specific type.BindContext
bindValues(java.lang.Object... values)
Deprecated.- 3.4.0 - [#3114] - UsebindValue(Object, Field)
insteadjava.sql.PreparedStatement
statement()
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
java.sql.PreparedStatement statement()
Retrieve the context's underlyingPreparedStatement
- Specified by:
statement
in 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(java.util.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(java.lang.Object value, java.lang.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(java.lang.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(java.lang.Object value, Field<?> field) throws DataAccessException
Bind a value using a specific type. This will also increment the internal counter.- Specified by:
bindValue
in interfaceContext<BindContext>
- Throws:
DataAccessException
- If something went wrong while binding a variable
-
-