Available in versions: Dev (3.18) | Latest (3.17) | 3.16 | 3.15 | 3.14 | 3.13 | 3.12 | 3.11 | 3.10 | 3.9 | 3.8

QueryParts

Applies to ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

A org.jooq.Query and all its contained objects is a org.jooq.QueryPart. QueryParts essentially provide this functionality:

Both of these methods are contained in jOOQ's internal API's org.jooq.QueryPartInternal, which is internally implemented by every QueryPart.

The following sections explain some more details about SQL rendering and variable binding, as well as other implementation details about QueryParts in general.

Table of contents

4.23.1.
SQL rendering
4.23.2.
Declaration vs reference
4.23.3.
Pretty printing SQL
4.23.4.
Variable binding
4.23.5.
Custom data type bindings
4.23.6.
Custom syntax elements
4.23.7.
Plain SQL QueryParts
4.23.8.
Serializability
4.23.9.
SQL transformation
4.23.9.1.
ANSI JOIN to table lists
4.23.9.2.
Table lists to ANSI JOIN
4.23.9.3.
ROWNUM to LIMIT
4.23.9.4.
QUALIFY to derived table
4.23.9.5.
IN condition subquery with LIMIT to derived table
4.23.9.6.
Unnecessary arithmetic expressions
4.23.9.7.
Pattern based transformation (new)
4.23.9.7.1.
AND to NOT IN (new)
4.23.9.7.2.
Arithmetic expressions (new)
4.23.9.7.3.
COUNT(*) scalar subquery comparison (new)
4.23.9.7.4.
Empty scalar subquery (new)
4.23.9.7.5.
Hyperbolic functions (new)
4.23.9.7.6.
Idempotent function repetition (new)
4.23.9.7.7.
Inverse hyperbolic functions (new)
4.23.9.7.8.
Logarithmic functions (new)
4.23.9.7.9.
Merge AND predicates (new)
4.23.9.7.10.
Merge BIT_NOT with BIT_NAND (new)
4.23.9.7.11.
Merge BIT_NOT with BIT_NOR (new)
4.23.9.7.12.
Merge BIT_NOT with BIT_XNOR (new)
4.23.9.7.13.
Merge IN predicates (new)
4.23.9.7.14.
Merge NOT with comparison predicates (new)
4.23.9.7.15.
Merge NOT with DISTINCT predicate (new)
4.23.9.7.16.
Merge OR predicates (new)
4.23.9.7.17.
Merge range predicates (new)
4.23.9.7.18.
Normalise associative operations (new)
4.23.9.7.19.
Normalise fields compared to values (new)
4.23.9.7.20.
Normalise IN list with single element to comparison (new)
4.23.9.7.21.
OR to IN (new)
4.23.9.7.22.
Repeated bitwise negation (new)
4.23.9.7.23.
Repeated logical negation (new)
4.23.9.7.24.
Repeated NOT (new)
4.23.9.7.25.
Trigonometric functions (new)
4.23.9.7.26.
Trim (new)
4.23.9.7.27.
Trivial case abbreviations (new)
4.23.9.7.28.
Trivial predicates (new)
4.23.10.
Custom SQL transformation with VisitListener
4.23.10.1.
Example: Logging abbreviated bind values

previous : next

Feedback

Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo