The jOOQ User Manual : SQL building : The DSLContext API : Custom Settings : Keyword style | previous : next |
New versions: Dev (3.15) | Latest (3.14) | 3.13 | 3.12 | 3.11 | 3.10 | 3.9 | 3.8 | Old versions: 3.7 | 3.6 | 3.5 | 3.4 | 3.3
Keyword style
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
In all SQL dialects, keywords are case insensitive, and this is also the default in jOOQ, which mostly generates lower-case keywords.
Users may wish to adapt this and they have these options for the renderKeywordStyle
setting:
-
LOWER
(the default): Generate keywords in lower case. -
UPPER
: Generate keywords in upper case.
Programmatic configuration
Settings settings = new Settings() .withRenderKeywordStyle(RenderKeywordStyle.UPPER); // Defaults to LOWER
XML configuration
<settings xmlns="http://www.jooq.org/xsd/jooq-runtime-3.3.0.xsd"> <renderKeywordStyle>UPPER</renderKeywordStyle> </settings>
Feedback
Do you have any feedback about this page? We'd love to hear it!