-
- 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 @NotNull BindContext
bind(Collection<? extends QueryPart> parts)
Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)
instead@NotNull BindContext
bind(QueryPart part)
Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)
instead@NotNull BindContext
bind(QueryPart[] parts)
Deprecated.- 3.2.0 - [#2666] - UseContext.visit(QueryPart)
instead@NotNull BindContext
bindValue(Object value, Class<?> type)
Deprecated.- 3.4.0 - [#3114] - UseContext.bindValue(Object, Field)
instead@NotNull BindContext
bindValues(Object... values)
Deprecated.- 3.4.0 - [#3114] - UseContext.bindValue(Object, Field)
instead-
Methods inherited from interface org.jooq.Context
bindValue, cast, castMode, castMode, castModeIf, 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, paramTypeIf, peekAlias, peekIndex, qualify, qualify, qualifyCatalog, qualifyCatalog, qualifySchema, qualifySchema, quote, quote, render, render, scopeEnd, scopeMarkEnd, scopeMarkStart, scopeRegister, scopeRegister, scopeStart, separatorRequired, separatorRequired, sql, sql, sql, sql, sql, sql, sql, start, statement, stringLiteral, stringLiteral, subquery, subquery, subqueryLevel, visit
-
-
-
-
Method Detail
-
bind
@NotNull @Deprecated @NotNull 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
@NotNull @Deprecated @NotNull 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
@NotNull @Deprecated @NotNull 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
@NotNull @Deprecated @NotNull BindContext bindValue(Object value, Class<?> type) throws DataAccessException
Deprecated.- 3.4.0 - [#3114] - UseContext.bindValue(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
@NotNull @Deprecated @NotNull BindContext bindValues(Object... values) throws DataAccessException
Deprecated.- 3.4.0 - [#3114] - UseContext.bindValue(Object, Field)
insteadBind several values. This will also increment the internal counter.- Throws:
DataAccessException
- If something went wrong while binding a variable
-
-