Top Description Fields Constructors Methods
org.jooq.impl

pack-priv abstract Class AbstractParam<T>

extends AbstractParamX<T>
implements SimpleQueryPart
Class Inheritance
All Implemented Interfaces
org.jooq.impl.SimpleQueryPart, org.jooq.QueryPartInternal, org.jooq.QueryPart, java.io.Serializable
Known Direct Subclasses
org.jooq.impl.QualifiedRecordConstant, org.jooq.impl.Val
Static Imports
org.jooq.Clause.FIELD, .Clause.FIELD_VALUE, org.jooq.conf.ParamType.INDEXED, .ParamType.INLINED, .ParamType.NAMED, .ParamType.NAMED_OR_INLINED

Deprecated

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

A base implementation for Param
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private static final Clause[]
CLAUSES

Hides org.jooq.impl.AbstractField.CLAUSES.

Deprecated as a consequence of Clause being deprecated.
private boolean
private final String
pack-priv T

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractParam(T value, DataType<T> type)

pack-priv
AbstractParam(T value, DataType<T> type, String paramName)

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 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 Param<T>
$value(T newValue)

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)

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 final Clause[]
clauses(Context<?> ctx)

Overrides org.jooq.impl.AbstractField.clauses.

Implements org.jooq.QueryPartInternal.clauses.

Deprecated as a consequence of Clause being deprecated.
The Clauses that are represented by this query part.
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 boolean
generatesCast()

Overrides org.jooq.impl.AbstractQueryPart.generatesCast.

Implements org.jooq.QueryPartInternal.generatesCast.

Check whether this QueryPart is able to generate CAST expressions around bind variables.
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
pack-priv final boolean
isInline(Context<?> ctx)

pack-priv final boolean
pack-priv static final Name
name(Object value, String paramName)

A utility method that generates a field name.

private static final String
name(Object value)

pack-priv final boolean
parenthesised(Context<?> ctx)

Overrides org.jooq.impl.AbstractField.parenthesised.

[#7362] Subclasses may override this method to indicate that the condition is already parenthesised, or produces syntax that render parentheses around this condition unnecessary.
private static boolean
pack-priv final void
pack-priv final void
setInline0(boolean inline)

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

Inherited from org.jooq.impl.AbstractParamX:
setConvertedsetInlinesetValuesetValue0

Field Detail

CLAUSESback to summary
private static final Clause[] CLAUSES

Hides org.jooq.impl.AbstractField.CLAUSES.

Deprecated

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

inlineback to summary
private boolean inline
paramNameback to summary
private final String paramName
valueback to summary
pack-priv T value

Constructor Detail

AbstractParamback to summary
pack-priv AbstractParam(T value, DataType<T> type)
AbstractParamback to summary
pack-priv AbstractParam(T value, DataType<T> type, String paramName)

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 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 Param<T> $value(T newValue)

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)

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
clausesback to summary
public final Clause[] clauses(Context<?> ctx)

Overrides org.jooq.impl.AbstractField.clauses.

Implements org.jooq.QueryPartInternal.clauses.

Doc from org.jooq.QueryPartInternal.clauses.

Deprecated

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

The Clauses that are represented by this query part.

QueryParts can specify several Clauses for which an event will be emitted before (in forward order) and after (in reverse order) visiting the the query part through Context#visit(QueryPart)

This method is for JOOQ INTERNAL USE only. Do not reference directly

Returns:Clause[]

The Clauses represented by this query part or null or an empty array if this query part does not represent a clause.

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
generatesCastback to summary
public final boolean generatesCast()

Overrides org.jooq.impl.AbstractQueryPart.generatesCast.

Implements org.jooq.QueryPartInternal.generatesCast.

Doc from org.jooq.QueryPartInternal.generatesCast.

Check whether this QueryPart is able to generate CAST expressions around bind variables.

This method can be used by any Context to check how a certain SQL clause should be rendered.

This method is for JOOQ INTERNAL USE only. Do not reference directly

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
isInlineback to summary
pack-priv final boolean isInline(Context<?> ctx)
isPossiblyNullableback to summary
pack-priv final boolean isPossiblyNullable()

Overrides org.jooq.impl.AbstractField.isPossiblyNullable.

Annotations
@Override
nameback to summary
pack-priv static final Name name(Object value, String paramName)

A utility method that generates a field name.

  • If paramName != null, take paramName
  • Otherwise, take the string value of value
nameback to summary
private static final String name(Object value)
parenthesisedback to summary
pack-priv final boolean parenthesised(Context<?> ctx)

Overrides org.jooq.impl.AbstractField.parenthesised.

Doc from org.jooq.impl.AbstractField.parenthesised.

[#7362] Subclasses may override this method to indicate that the condition is already parenthesised, or produces syntax that render parentheses around this condition unnecessary.

This can help prevent excess parentheses, e.g. when this condition is wrapped in QOM.Not, QOM.BitNot, or QOM.Neg

Annotations
@Override
positiveback to summary
private static boolean positive(Object value)
setConverted0back to summary
pack-priv final void setConverted0(Object value)

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

Annotations
@Override
setInline0back to summary
pack-priv final void setInline0(boolean inline)

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

Annotations
@Override