|previous : next|
Available in versions: Dev (3.19)
This is experimental functionality, and as such subject to change. Use at your own risk!
This documentation is for the unreleased development version of jOOQ. Click on the above version links to get this documentation for a supported version of jOOQ.
Pattern transformation Replacer
Applies to ❌ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
jOOQ offers a lot of out-of-the-box pattern based replacements like the above examples from the previous section. Please look at the sections about pattern based transformation for more details about individual patterns.
In order to apply pattern transformation explicitly to a
org.jooq.QueryPart, just call:
Condition input = BOOK.ID.eq(1).or(BOOK.ID.eq(2)); Condition output = (Condition) input.$replace(Replacers.transformPatterns(configuration));
By default, this will apply the OR to IN transformation, and produce the following output:
BOOK.ID IN (1, 2)