Top Description Fields Constructors Methods
org.jooq.impl

pack-priv final Class ConvertedVal<T>

extends AbstractParamX<T>
implements UNotYetImplemented
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UNotYetImplemented, org.jooq.impl.QOM.UEmpty, org.jooq.QueryPart, java.io.Serializable
Annotations
@Deprecated
Imports
org.jooq.Context, .DataType, .Param, .ParamMode, org.jooq.conf.ParamType, org.jooq.impl.QOM.NotYetImplementedException, .QOM.UNotYetImplemented

Deprecated

- [#11061] - 3.15.0 - This type has been introduced only because we have mutable Param types. Avoid reusing this type when not needed.

A Param wrapper object that allows for lazily initialising the value and its potentially required calls to custom converters.

See [#7742] for details.

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv final AbstractParamX<?>
delegate

Deprecated as a consequence of AbstractParamX being deprecated.

Constructor Summary

AccessConstructor and Description
pack-priv
ConvertedVal(AbstractParamX<?> delegate, DataType<T> type)

Deprecated as a consequence of AbstractParamX being deprecated.

Method Summary

Modifier and TypeMethod and Description
public final boolean
$inline()

Implements org.jooq.Param.$inline.

Experimental query object model accessor method, see also QOM.
public final Param<T>
$inline(boolean 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 T
$value()

Implements org.jooq.Param.$value.

Experimental query object model accessor method, see also QOM.
public final Param<T>
$value(T value)

Implements org.jooq.Param.$value.

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

Implements abstract org.jooq.impl.AbstractField.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.
public boolean
equals(Object
The other QueryPart
that
)

Overrides org.jooq.impl.AbstractNamed.equals.

Implements org.jooq.QueryPart.equals, org.jooq.Field.equals.

Check whether this QueryPart can be considered equal to another QueryPart.
public final ParamMode
getParamMode()

Implements org.jooq.Param.getParamMode.

The parameter mode.
public final String
getParamName()

Implements org.jooq.Param.getParamName.

The parameter name.
public final ParamType
getParamType()

Implements org.jooq.Param.getParamType.

The parameter type.
public final T
getValue()

Implements org.jooq.Param.getValue.

Get the parameter's underlying value.
public int
hashCode()

Overrides org.jooq.impl.AbstractNamed.hashCode.

Implements org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.
public final boolean
isInline()

Implements org.jooq.Param.isInline.

A flag on the bind value to force it to be inlined in rendered SQL
public final void
public final void
setInline0(boolean inline)

Implements abstract org.jooq.impl.AbstractParamX.setInline0.

public String
toString()

Overrides org.jooq.impl.AbstractQueryPart.toString.

Implements org.jooq.QueryPart.toString.

Render a SQL string representation of this QueryPart.
Inherited from org.jooq.impl.AbstractParamX:
setConvertedsetInlinesetValuesetValue0

Field Detail

delegateback to summary
pack-priv final AbstractParamX<?> delegate

Deprecated

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

Constructor Detail

ConvertedValback to summary
pack-priv ConvertedVal(AbstractParamX<?> delegate, DataType<T> type)

Deprecated

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

Method Detail

$inlineback to summary
public final boolean $inline()

Implements org.jooq.Param.$inline.

Doc from org.jooq.Param.$inline.

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

Annotations
@Override
$inlineback to summary
public final Param<T> $inline(boolean 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 T $value()

Implements org.jooq.Param.$value.

Doc from org.jooq.Param.$value.

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 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 final void accept(Context<?> ctx)

Implements abstract org.jooq.impl.AbstractField.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
equalsback to summary
public boolean equals(Object that)

Overrides org.jooq.impl.AbstractNamed.equals.

Implements org.jooq.QueryPart.equals, org.jooq.Field.equals.

Doc from org.jooq.QueryPart.equals.

Check whether this QueryPart can be considered equal to another QueryPart.

In general, QueryPart equality is defined in terms of toString() equality. In other words, two query parts are considered equal if their rendered SQL (with inlined bind variables) is equal. This means that the two query parts do not necessarily have to be of the same type.

Some QueryPart implementations may choose to override this behaviour for improved performance, as toString() is an expensive operation, if called many times.

Parameters
that:Object

The other QueryPart

Returns:boolean

Whether the two query parts are equal

Annotations
@Override
getParamModeback to summary
public final ParamMode getParamMode()

Implements org.jooq.Param.getParamMode.

Doc from org.jooq.Param.getParamMode.

The parameter mode.

Annotations
@Override
getParamNameback to summary
public final String getParamName()

Implements org.jooq.Param.getParamName.

Doc from org.jooq.Param.getParamName.

The parameter name. This name is useful for two things:

Annotations
@Override
getParamTypeback to summary
public final ParamType getParamType()

Implements org.jooq.Param.getParamType.

Doc from org.jooq.Param.getParamType.

The parameter type.

Annotations
@Override
getValueback to summary
public final T getValue()

Implements org.jooq.Param.getValue.

Doc from org.jooq.Param.getValue.

Get the parameter's underlying value. This returns null if no value has been set yet.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides org.jooq.impl.AbstractNamed.hashCode.

Implements org.jooq.QueryPart.hashCode.

Doc from org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.

In general, QueryPart hash codes are the same as the hash codes generated from toString(). This guarantees consistent behaviour with equals(Object)

Some QueryPart implementations may choose to override this behaviour for improved performance, as toString() is an expensive operation, if called many times.

Returns:int

The QueryPart hash code

Annotations
@Override
isInlineback to summary
public final boolean isInline()

Implements org.jooq.Param.isInline.

Doc from org.jooq.Param.isInline.

A flag on the bind value to force it to be inlined in rendered SQL

Annotations
@Override
setConverted0back to summary
public final void setConverted0(Object value)

Implements abstract org.jooq.impl.AbstractParamX.setConverted0.

Annotations
@Override
setInline0back to summary
public final void setInline0(boolean inline)

Implements abstract org.jooq.impl.AbstractParamX.setInline0.

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.jooq.impl.AbstractQueryPart.toString.

Implements org.jooq.QueryPart.toString.

Doc from org.jooq.QueryPart.toString.

Render a SQL string representation of this QueryPart.

For improved debugging, this renders a SQL string of this QueryPart with inlined bind variables. If this QueryPart is Attachable, then the attached Configuration may be used for rendering the SQL string, including SQLDialect and Settings. Do note that most QueryPart instances are not attached to a Configuration, and thus there is no guarantee that the SQL string will make sense in the context of a specific database.

Returns:String

A SQL string representation of this QueryPart

Annotations
@Override