Top Description Fields Constructors Methods
org.jooq.impl

pack-priv final Class FieldProxy<T>

extends AbstractField<T>
implements TableField<Record, T>, QOM.UProxy<Field<T>>, ScopeMappable
Class Inheritance
All Implemented Interfaces
org.jooq.impl.ScopeMappable, org.jooq.QueryPartInternal, org.jooq.QueryPart, java.io.Serializable, org.jooq.impl.QOM.UProxy, org.jooq.TableField, org.jooq.Field, org.jooq.TableElement, org.jooq.Named, org.jooq.FieldOrConstraint, org.jooq.FieldOrRowOrSelect, org.jooq.FieldOrRow, org.jooq.OrderField, org.jooq.GroupField, org.jooq.SelectField, org.jooq.Typed, org.jooq.SelectFieldOrAsterisk
Annotations
@SuppressWarnings:unchecked
Imports
org.jooq.Clause, .Context, .Field, .Name, .Query, .Record, .Table, .TableField, org.jooq.impl.QOM.UProxy

Deprecated

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

A Field that acts as another field, allowing for the proxied field to be replaced.
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private AbstractField<T>
delegate

The resolved field after a successful meta lookup.

private final int
position

The position in the parsed SQL string where this field proxy was encountered.

pack-priv boolean
resolved

Whether this FieldProxy could be resolved at some scope level.

pack-priv Query
scopeOwner

The scope owner that produced this field proxy.

Constructor Summary

AccessConstructor and Description
pack-priv
FieldProxy(AbstractField<T> delegate, int position)

Deprecated as a consequence of AbstractField being deprecated.

Method Summary

Modifier and TypeMethod and Description
public final Field<T>
$delegate()

Implements org.jooq.impl.QOM.UProxy.$delegate.

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 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.
pack-priv final void
delegate(AbstractField<T> newDelegate)

Deprecated as a consequence of AbstractField being deprecated.
public final boolean
equals(Object
The other QueryPart
that
)

Overrides org.jooq.impl.AbstractNamed.equals.

Implements org.jooq.Field.equals, org.jooq.QueryPart.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 Name
getQualifiedName()

Overrides org.jooq.impl.AbstractNamed.getQualifiedName.

Implements org.jooq.Named.getQualifiedName.

The qualified name of this object.
public final Table<Record>
public final int
hashCode()

Overrides org.jooq.impl.AbstractNamed.hashCode.

Implements org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.
pack-priv final int
public final boolean
pack-priv final FieldProxy<T>
resolve()

Deprecated as a consequence of FieldProxy being deprecated.
pack-priv final void
public final 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.AbstractField:
$alias$aliasedabsacosaddaddasasasasascasciiasinatanatan2atan2avgavgOverbetweenbetweenbetweenbetweenbetweenSymmetricbetweenSymmetricbetweenSymmetricbetweenSymmetricbitAndbitAndbitLengthbitNandbitNandbitNorbitNorbitNotbitOrbitOrbitXNorbitXNorbitXorbitXorcastcastcastceilchangedcharLengthcoalescecoalescecoercecoercecoercecollatecollatecollatecommentcommentcomparecomparecomparecompareconcatconcatconcatcontainscontainscontainsIgnoreCasecontainsIgnoreCaseconvertconvertconvertconvertFromconvertFromconvertToconvertTocoscoshcotcothcountcountDistinctcountOverdecodedecodedecodedecodedegdescdivdivdividedivideendsWithendsWithendsWithIgnoreCaseendsWithIgnoreCaseeqeqeqeqequalequalequalequalequalIgnoreCaseequalIgnoreCaseexpextractfieldfirstValuefloorfromgegegegegetgetValuegreaterOrEqualgreaterOrEqualgreaterOrEqualgreaterOrEqualgreaterThangreaterThangreaterThangreaterThangreatestgreatestgtgtgtgtinininininisDistinctFromisDistinctFromisDistinctFromisDocumentisFalseisJsonisNotDistinctFromisNotDistinctFromisNotDistinctFromisNotDocumentisNotJsonisNotNullisNullisNullableisPossiblyNullableisTruelaglaglaglaglastValueleleleleleadleadleadleadleastleastlengthlessOrEquallessOrEquallessOrEquallessOrEquallessThanlessThanlessThanlessThanlikelikelikelikelikelikeIgnoreCaselikeIgnoreCaselikeIgnoreCaselikeIgnoreCaselikeRegexlikeRegexlnloglowerlpadlpadlpadlpadltltltltltrimmaxmaxOvermedianminminOverminusminusmodmodmodulomodulomulmulmultiplymultiplynenenenenegnotBetweennotBetweennotBetweennotBetweennotBetweenSymmetricnotBetweenSymmetricnotBetweenSymmetricnotBetweenSymmetricnotContainsnotContainsnotContainsIgnoreCasenotContainsIgnoreCasenotEqualnotEqualnotEqualnotEqualnotEqualIgnoreCasenotEqualIgnoreCasenotInnotInnotInnotInnotInnotLikenotLikenotLikenotLikenotLikenotLikeIgnoreCasenotLikeIgnoreCasenotLikeIgnoreCasenotLikeIgnoreCasenotLikeRegexnotLikeRegexnotSimilarTonotSimilarTonotSimilarTonotSimilarTonotSimilarTonullifnullifnullsFirstnullsLastnvlnvlnvl2nvl2octetLengthoriginalparenthesisedpluspluspositionpositionpowpowpowerpowerprojectionSizeradremremrepeatrepeatreplacereplacereplacereplaceresetroundroundrpadrpadrpadrpadrtrimshlshlshrshrsignsimilarTosimilarTosimilarTosimilarTosimilarTosinsinhsortsortsortAscsortAscsortDefaultsortDescsortDescsqrtstartsWithstartsWithstartsWithIgnoreCasestartsWithIgnoreCasestddevPopstddevPopOverstddevSampstddevSampOversubsubsubstringsubstringsubstringsubstringsubtractsubtractsumsumOvertantanhtimestimestrimunaryMinusunaryPlusuppervarPopvarPopOvervarSampvarSampOver

Field Detail

delegateback to summary
private AbstractField<T> delegate

Deprecated

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

The resolved field after a successful meta lookup.

positionback to summary
private final int position

The position in the parsed SQL string where this field proxy was encountered.

resolvedback to summary
pack-priv boolean resolved

Whether this FieldProxy could be resolved at some scope level.

scopeOwnerback to summary
pack-priv Query scopeOwner

The scope owner that produced this field proxy.

Constructor Detail

FieldProxyback to summary
pack-priv FieldProxy(AbstractField<T> delegate, int position)

Deprecated

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

Method Detail

$delegateback to summary
public final Field<T> $delegate()

Implements org.jooq.impl.QOM.UProxy.$delegate.

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
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
delegateback to summary
pack-priv final void delegate(AbstractField<T> newDelegate)

Deprecated

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

equalsback to summary
public final boolean equals(Object that)

Overrides org.jooq.impl.AbstractNamed.equals.

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

Doc from org.jooq.Field.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.

Watch out! This is Object#equals(Object), not a jOOQ DSL feature!

Parameters
that:Object

Doc from org.jooq.QueryPart.equals.

The other QueryPart

Returns:boolean

Doc from org.jooq.QueryPart.equals.

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
getQualifiedNameback to summary
public final Name getQualifiedName()

Overrides org.jooq.impl.AbstractNamed.getQualifiedName.

Implements org.jooq.Named.getQualifiedName.

Doc from org.jooq.Named.getQualifiedName.

The qualified name of this object.

Annotations
@Override
getTableback to summary
public final Table<Record> getTable()

Implements org.jooq.TableField.getTable.

Returns:Table<Record>

Doc from org.jooq.TableField.getTable.

The table this field is contained in.

Annotations
@Override
hashCodeback to summary
public final 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
positionback to summary
pack-priv final int position()
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
resolveback to summary
pack-priv final FieldProxy<T> resolve()

Deprecated

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

scopeOwnerback to summary
pack-priv final void scopeOwner(Query query)
toStringback to summary
public final 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