Top Fields Constructors Methods
org.jooq.impl

pack-priv final Class Val<T>

extends AbstractParam<T>
implements UEmpty
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UEmpty, org.jooq.QueryPart, java.io.Serializable
Static Imports
java.util.stream.Collectors.joining, org.jooq.conf.ParamType.INLINED, .ParamType.NAMED, .ParamType.NAMED_OR_INLINED, org.jooq.impl.AbstractRowAsField.acceptMultisetContent, .AbstractRowAsField.forceMultisetContent, .DSL.sql, .QueryPartListView.wrap, .SQLDataType.OTHER, .SQLDataType.VARCHAR, .Tools.embeddedFields, .Tools.map, .Tools.row0, .Tools.BooleanDataKey.DATA_LIST_ALREADY_INDENTED, org.jooq.tools.StringUtils.defaultIfNull

Deprecated

as a consequence of AbstractParam being deprecated. See corresponding docs for further information.

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
inferredDataType

[#14694] Whether the data type was inferred as opposed to provided explicitly.

private static final ConcurrentHashMap<Class<?>, Object>
private static final JooqLogger
Inherited from org.jooq.impl.AbstractParam:
value

Constructor Summary

AccessConstructor and Description
pack-priv
Val(T value, DataType<T> type, boolean inferredDataType)

pack-priv
Val(T value, DataType<T> type, boolean inferredDataType, String paramName)

Method Summary

Modifier and TypeMethod and Description
public final Param<T>
$inline(boolean inline)

Overrides org.jooq.impl.AbstractParam.$inline.

Implements org.jooq.Param.$inline.

Deprecated as a consequence of Param being deprecated.
Experimental query object model accessor method, see also QOM.
public final Param<T>
$value(T newValue)

Overrides org.jooq.impl.AbstractParam.$value.

Implements org.jooq.Param.$value.

Deprecated as a consequence of Param being deprecated.
Experimental query object model accessor method, see also QOM.
public void
accept(Context<?> ctx)

Overrides org.jooq.impl.AbstractParam.accept.

Implements org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.
private void
pack-priv final <U> Param<U>
convertTo(DataType<U> type)

Deprecated as a consequence of Param being deprecated.
[#10438] Convert this bind value to a new type.
pack-priv final <U> Val<U>
convertTo0(DataType<U> type)

Deprecated as a consequence of Val being deprecated.
pack-priv final Val<T>
copy(Object newValue)

Deprecated as a consequence of Val being deprecated.
pack-priv final @NotNull String
getBindVariable(Context<?> ctx)

Get a bind variable, depending on value of RenderContext#namedParams()

private static final <T> DataType<T>
type(T value, DataType<T> type)

Inherited from org.jooq.impl.AbstractParam:
$inline$valueclausesequalsgeneratesCastgetParamModegetParamNamegetParamTypegetValuehashCodeisInlineisInlineisPossiblyNullablenameparenthesisedsetConverted0setInline0

Field Detail

inferredDataTypeback to summary
pack-priv final boolean inferredDataType

[#14694] Whether the data type was inferred as opposed to provided explicitly.

Numerous features depend on an inferred data type being overriden lazily once the information is available, e.g. when passing around a row(1, 2) to an INSERT statement, the initial type information should be overridden once the row is copied to the statement. It is different from when users provide type information explicitly, such as row(val(1, INTEGER), val(2, INTEGER)).

legacyWarningsback to summary
private static final ConcurrentHashMap<Class<?>, Object> legacyWarnings
logback to summary
private static final JooqLogger log

Hides org.jooq.impl.AbstractParamX.log.

Constructor Detail

Valback to summary
pack-priv Val(T value, DataType<T> type, boolean inferredDataType)
Valback to summary
pack-priv Val(T value, DataType<T> type, boolean inferredDataType, String paramName)

Method Detail

$inlineback to summary
public final Param<T> $inline(boolean inline)

Overrides org.jooq.impl.AbstractParam.$inline.

Implements org.jooq.Param.$inline.

Doc from org.jooq.Param.$inline.

Deprecated

as a consequence of Param being deprecated. See corresponding docs for further information.

Experimental query object model accessor method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.

Annotations
@Override
$valueback to summary
public final Param<T> $value(T newValue)

Overrides org.jooq.impl.AbstractParam.$value.

Implements org.jooq.Param.$value.

Doc from org.jooq.Param.$value.

Deprecated

as a consequence of Param being deprecated. See corresponding docs for further information.

Experimental query object model accessor method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.

Annotations
@Override
acceptback to summary
public void accept(Context<?> ctx)

Overrides org.jooq.impl.AbstractParam.accept.

Implements org.jooq.QueryPartInternal.accept.

Doc from org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.

Annotations
@Override
acceptDefaultEmbeddableback to summary
private void acceptDefaultEmbeddable(Context<?> ctx)
convertToback to summary
pack-priv final <U> Param<U> convertTo(DataType<U> type)

Deprecated

as a consequence of Param being deprecated. See corresponding docs for further information.

[#10438] Convert this bind value to a new type.

Annotations
@SuppressWarnings:rawtypes, unchecked
convertTo0back to summary
pack-priv final <U> Val<U> convertTo0(DataType<U> type)

Deprecated

as a consequence of Val being deprecated. See corresponding docs for further information.

copyback to summary
pack-priv final Val<T> copy(Object newValue)

Deprecated

as a consequence of Val being deprecated. See corresponding docs for further information.

getBindVariableback to summary
pack-priv final @NotNull String getBindVariable(Context<?> ctx)

Get a bind variable, depending on value of RenderContext#namedParams()

Annotations
@NotNull
typeback to summary
private static final <T> DataType<T> type(T value, DataType<T> type)