Top Description Fields Constructors Methods
org.jooq.impl

public abstract non-sealed Class CustomQueryPart

extends AbstractQueryPart
implements UOpaque
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UOpaque, org.jooq.impl.QOM.UEmpty, org.jooq.QueryPart, java.io.Serializable
Static Imports
org.jooq.Clause.CUSTOM

A base class for custom QueryPart implementations in client code.

Client code may provide proper Condition implementations extending this useful base class. All necessary parts of the Condition interface are already implemented. Only this method needs further implementation: accept(Context).

Refer to that methods' Javadoc for further details about their expected behaviour.

Such custom QueryPart implementations can be useful in any of these scenarios:

Author
Lukas Eder

Field Summary

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

Deprecated as a consequence of Clause being deprecated.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public abstract void
accept(Context<?> ctx)

Redeclares org.jooq.QueryPartInternal.accept.

Subclasses must implement this method.
public final Clause[]
clauses(Context<?> ctx)

Overrides org.jooq.impl.AbstractQueryPart.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
public final boolean
public static final CustomQueryPart
of(Consumer<? super Context<?>> consumer)

Create a CustomQueryPart from a lambda expression.

Inherited from org.jooq.impl.AbstractQueryPart:
configurationcreatecreatecreatedeclaresCTEdeclaresWindowsequalsgeneratesCasthashCoderendersContenttoStringtranslate

Field Detail

CLAUSESback to summary
private static final Clause[] CLAUSES

Deprecated

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

Constructor Detail

CustomQueryPartback to summary
protected CustomQueryPart()

Method Detail

acceptback to summary
public abstract void accept(Context<?> ctx)

Redeclares org.jooq.QueryPartInternal.accept.

Doc from org.jooq.QueryPartInternal.accept.

Subclasses must implement this method.


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

Overrides org.jooq.impl.AbstractQueryPart.declaresFields.

Implements org.jooq.QueryPartInternal.declaresFields.

Doc from org.jooq.impl.AbstractQueryPart.declaresFields.

Subclasses may override this

Annotations
@Override
declaresTablesback to summary
public final boolean declaresTables()

Overrides org.jooq.impl.AbstractQueryPart.declaresTables.

Implements org.jooq.QueryPartInternal.declaresTables.

Doc from org.jooq.impl.AbstractQueryPart.declaresTables.

Subclasses may override this

Annotations
@Override
ofback to summary
public static final CustomQueryPart of(Consumer<? super Context<?>> consumer)

Create a CustomQueryPart from a lambda expression.