Top Fields Constructors Methods
org.jooq.impl

pack-priv final Class Coerce<T>

extends AbstractField<T>
implements AutoAlias<Field<T>>, QOM.Coerce<T>
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.Coerce, org.jooq.Field, org.jooq.TableElement, org.jooq.Named, org.jooq.QueryPart, java.io.Serializable, org.jooq.FieldOrConstraint, org.jooq.FieldOrRowOrSelect, org.jooq.FieldOrRow, org.jooq.OrderField, org.jooq.GroupField, org.jooq.SelectField, org.jooq.Typed, org.jooq.SelectFieldOrAsterisk, org.jooq.impl.AutoAlias, org.jooq.QueryPartInternal
Imports
org.jooq.Clause, .Context, .DataType, .Field, .Name, .QueryPart, org.jooq.tools.StringUtils, org.jetbrains.annotations.NotNull, .Nullable

Deprecated

as a consequence of AbstractField and QOM.Coerce being deprecated. See corresponding docs for further information.

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv final AbstractField<?>
field

Deprecated as a consequence of AbstractField being deprecated.

Constructor Summary

AccessConstructor and Description
public
Coerce(Field<?> field, DataType<T> type)

Deprecated as a consequence of Field being deprecated.

Method Summary

Modifier and TypeMethod and Description
public final Name
public final Field<?>
$aliased()

Overrides org.jooq.impl.AbstractField.$aliased.

Implements org.jooq.impl.QOM.Aliasable.$aliased.

Deprecated as a consequence of Field being deprecated.
The aliased part (a Field or a Table).
public final Field<?>
$field()

Implements org.jooq.impl.QOM.Coerce.$field.

Deprecated as a consequence of Field being deprecated.
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 final Field<T>
as(Name
The alias name
alias
)

Overrides org.jooq.impl.AbstractField.as.

Implements org.jooq.Field.as.

Deprecated as a consequence of Field being deprecated.
Create an alias for this field.
public final Field<T>
autoAlias(Context<?> ctx, Field<T> f)

Implements org.jooq.impl.AutoAlias.autoAlias.

Deprecated as a consequence of Field being deprecated.
Create the aliased table expression or null if no auto-alias is required.
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 final boolean
declaresCTE()

Overrides org.jooq.impl.AbstractQueryPart.declaresCTE.

Implements org.jooq.QueryPartInternal.declaresCTE.

Check whether this QueryPart is able to declare common table expressions in a WITH clause.
public final boolean
declaresFields()

Overrides org.jooq.impl.AbstractQueryPart.declaresFields.

Implements org.jooq.QueryPartInternal.declaresFields.

Check whether this QueryPart is able to declare fields in a SELECT clause.
public final boolean
declaresTables()

Overrides org.jooq.impl.AbstractQueryPart.declaresTables.

Implements org.jooq.QueryPartInternal.declaresTables.

Check whether this QueryPart is able to declare tables in a FROM clause or JOIN clause.
public final boolean
declaresWindows()

Overrides org.jooq.impl.AbstractQueryPart.declaresWindows.

Implements org.jooq.QueryPartInternal.declaresWindows.

Check whether this QueryPart is able to declare windows in a WINDOW clause.
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.
pack-priv boolean
public final boolean
Inherited from org.jooq.impl.AbstractField:
absacosaddaddasasasascasciiasinatanatan2atan2avgavgOverbetweenbetweenbetweenbetweenbetweenSymmetricbetweenSymmetricbetweenSymmetricbetweenSymmetricbitAndbitAndbitLengthbitNandbitNandbitNorbitNorbitNotbitOrbitOrbitXNorbitXNorbitXorbitXorcastcastcastceilchangedcharLengthcoalescecoalescecoercecoercecoercecollatecollatecollatecommentcommentcomparecomparecomparecompareconcatconcatconcatcontainscontainscontainsIgnoreCasecontainsIgnoreCaseconvertconvertconvertconvertFromconvertFromconvertToconvertTocoscoshcotcothcountcountDistinctcountOverdecodedecodedecodedecodedegdescdivdivdividedivideendsWithendsWithendsWithIgnoreCaseendsWithIgnoreCaseeqeqeqeqequalequalequalequalequalIgnoreCaseequalIgnoreCaseexpextractfieldfirstValuefloorfromgegegegegetgetValuegreaterOrEqualgreaterOrEqualgreaterOrEqualgreaterOrEqualgreaterThangreaterThangreaterThangreaterThangreatestgreatestgtgtgtgtinininininisDistinctFromisDistinctFromisDistinctFromisDocumentisFalseisJsonisNotDistinctFromisNotDistinctFromisNotDistinctFromisNotDocumentisNotJsonisNotNullisNullisNullableisTruelaglaglaglaglastValueleleleleleadleadleadleadleastleastlengthlessOrEquallessOrEquallessOrEquallessOrEquallessThanlessThanlessThanlessThanlikelikelikelikelikelikeIgnoreCaselikeIgnoreCaselikeIgnoreCaselikeIgnoreCaselikeRegexlikeRegexlnloglowerlpadlpadlpadlpadltltltltltrimmaxmaxOvermedianminminOverminusminusmodmodmodulomodulomulmulmultiplymultiplynenenenenegnotBetweennotBetweennotBetweennotBetweennotBetweenSymmetricnotBetweenSymmetricnotBetweenSymmetricnotBetweenSymmetricnotContainsnotContainsnotContainsIgnoreCasenotContainsIgnoreCasenotEqualnotEqualnotEqualnotEqualnotEqualIgnoreCasenotEqualIgnoreCasenotInnotInnotInnotInnotInnotLikenotLikenotLikenotLikenotLikenotLikeIgnoreCasenotLikeIgnoreCasenotLikeIgnoreCasenotLikeIgnoreCasenotLikeRegexnotLikeRegexnotSimilarTonotSimilarTonotSimilarTonotSimilarTonotSimilarTonullifnullifnullsFirstnullsLastnvlnvlnvl2nvl2octetLengthoriginalparenthesisedpluspluspositionpositionpowpowpowerpowerprojectionSizeradremremrepeatrepeatreplacereplacereplacereplaceresetroundroundrpadrpadrpadrpadrtrimshlshlshrshrsignsimilarTosimilarTosimilarTosimilarTosimilarTosinsinhsortsortsortAscsortAscsortDefaultsortDescsortDescsqrtstartsWithstartsWithstartsWithIgnoreCasestartsWithIgnoreCasestddevPopstddevPopOverstddevSampstddevSampOversubsubsubstringsubstringsubstringsubstringsubtractsubtractsumsumOvertantanhtimestimestrimunaryMinusunaryPlusuppervarPopvarPopOvervarSampvarSampOver

Field Detail

fieldback to summary
pack-priv final AbstractField<?> field

Deprecated

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

Constructor Detail

Coerceback to summary
public Coerce(Field<?> field, DataType<T> type)

Deprecated

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

Method Detail

$aliasback to summary
public final Name $alias()

Overrides org.jooq.impl.AbstractField.$alias.

Implements org.jooq.impl.QOM.Aliasable.$alias.

Doc from org.jooq.impl.QOM.Aliasable.$alias.

The alias if any.

Annotations
@Override
$aliasedback to summary
public final Field<?> $aliased()

Overrides org.jooq.impl.AbstractField.$aliased.

Implements org.jooq.impl.QOM.Aliasable.$aliased.

Doc from org.jooq.impl.QOM.Aliasable.$aliased.

Deprecated

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

The aliased part (a Field or a Table).

Annotations
@Override
$fieldback to summary
public final Field<?> $field()

Implements org.jooq.impl.QOM.Coerce.$field.

Deprecated

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

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
asback to summary
public final Field<T> as(Name alias)

Overrides org.jooq.impl.AbstractField.as.

Implements org.jooq.Field.as.

Doc from org.jooq.SelectField.as.

Deprecated

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

Create an alias for this field.

Note that the case-sensitivity of the returned field depends on Settings#getRenderQuotedNames() and the Name. By default, field aliases are quoted, and thus case-sensitive in many SQL dialects - use DSL#unquotedName(String...) for case-insensitive aliases.

If the argument Name#getName() is qualified, then the Name#last() part will be used.

Parameters
alias:Name

The alias name

Returns:Field<T>

The field alias

Annotations
@Override
autoAliasback to summary
public final Field<T> autoAlias(Context<?> ctx, Field<T> f)

Implements org.jooq.impl.AutoAlias.autoAlias.

Doc from org.jooq.impl.AutoAlias.autoAlias.

Deprecated

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

Create the aliased table expression or null if no auto-alias is required.

Annotations
@SuppressWarnings:unchecked
@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
declaresCTEback to summary
public final boolean declaresCTE()

Overrides org.jooq.impl.AbstractQueryPart.declaresCTE.

Implements org.jooq.QueryPartInternal.declaresCTE.

Doc from org.jooq.QueryPartInternal.declaresCTE.

Check whether this QueryPart is able to declare common table expressions in a WITH clause.

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
declaresFieldsback to summary
public final boolean declaresFields()

Overrides org.jooq.impl.AbstractQueryPart.declaresFields.

Implements org.jooq.QueryPartInternal.declaresFields.

Doc from org.jooq.QueryPartInternal.declaresFields.

Check whether this QueryPart is able to declare fields in a SELECT clause.

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
declaresTablesback to summary
public final boolean declaresTables()

Overrides org.jooq.impl.AbstractQueryPart.declaresTables.

Implements org.jooq.QueryPartInternal.declaresTables.

Doc from org.jooq.QueryPartInternal.declaresTables.

Check whether this QueryPart is able to declare tables in a FROM clause or JOIN clause.

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
declaresWindowsback to summary
public final boolean declaresWindows()

Overrides org.jooq.impl.AbstractQueryPart.declaresWindows.

Implements org.jooq.QueryPartInternal.declaresWindows.

Doc from org.jooq.QueryPartInternal.declaresWindows.

Check whether this QueryPart is able to declare windows in a WINDOW clause.

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
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
isPossiblyNullableback to summary
pack-priv boolean isPossiblyNullable()

Overrides org.jooq.impl.AbstractField.isPossiblyNullable.

Annotations
@Override
rendersContentback to summary
public final boolean rendersContent(Context<?> ctx)

Overrides org.jooq.impl.AbstractQueryPart.rendersContent.

Implements org.jooq.QueryPartInternal.rendersContent.

Doc from org.jooq.QueryPartInternal.rendersContent.

Whether a call to accept(Context) would render content.

Annotations
@Override