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:
QueryPart in other custom
QueryParts, e.g. in CustomCondition, CustomField,
CustomTable, etc.QueryPart in plain SQL methods, such
as DSL#condition(String, QueryPart...) ,
DSL#field(String, QueryPart...) ,
DSL#table(String, QueryPart...) | Modifier and Type | Field and Description |
|---|---|
| private static final Clause[] |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | accept(Context<?> ctx)
Redeclares org. |
| public final Clause[] | clauses(Context<?> ctx)
Overrides org. Implements org.
Deprecated
as a consequence of
The Clause being deprecated.
Clauses that are represented by this query part.
|
| public final boolean | declaresFields()
Overrides org. Implements org. |
| public final boolean | declaresTables()
Overrides org. Implements org. |
| public static final CustomQueryPart |
| CLAUSES | back to summary |
|---|---|
| private static final Clause[] CLAUSES
Deprecated as a consequence of | |
| CustomQueryPart | back to summary |
|---|---|
| protected CustomQueryPart() | |
| accept | back to summary |
|---|---|
| public abstract void accept(Context<?> ctx) Redeclares org. Doc from org. Subclasses must implement this method. This QueryPart can accept a Context object
in order to render a SQL string or to bind its variables.
| |
| clauses | back to summary |
|---|---|
| public final Clause[] clauses(Context<?> ctx) Overrides org. Implements org. Doc from org. Deprecated as a consequence of The
This method is for JOOQ INTERNAL USE only. Do not reference directly | |
| declaresFields | back to summary |
|---|---|
| public final boolean declaresFields() Overrides org. Implements org. Doc from org. Subclasses may override this
| |
| declaresTables | back to summary |
|---|---|
| public final boolean declaresTables() Overrides org. Implements org. Doc from org. Subclasses may override this
| |
| of | back to summary |
|---|---|
| public static final CustomQueryPart of(Consumer<? super Context<?>> consumer) Create a | |