[#7153] Allow for configuring a locale to be used for upper/lower casing inside of jOOQ

This commit is contained in:
Lukas Eder 2018-08-20 12:19:32 +02:00
parent d4da4946f8
commit bc8beceb9a

View File

@ -3563,6 +3563,9 @@ SELECT [TABLE].[COLUMN] FROM [TABLE] -- SQL Server style]]></sql><html>
<renderNameStyle>AS_IS</renderNameStyle>
</settings>]]></xml><html>
<p>
The behaviour of this setting is influenced by the <reference id="settings-locale" title="renderLocale setting"/>.
</p>
</html></content>
</section>
@ -3600,6 +3603,31 @@ SELECT [TABLE].[COLUMN] FROM [TABLE] -- SQL Server style]]></sql><html>
</html></content>
</section>
<section id="settings-locale">
<title>Render Locale</title>
<content><html>
<p>
When doing locale sensitive operations, such as upper casing or lower casing a name (see <reference id="settings-name-style" title="Name styles"/>), then it may be important in some areas to be able to specify the <reference class="java.util.Locale" title="java.util.Locale"/> for the operation.
</p>
<p>
<strong>Programmatic configuration</strong>
</p>
</html><java><![CDATA[Settings settings = new Settings()
.withRenderLocale(Locale.forLanguageTag("en-US")); // Defaults to Locale.getDefault()]]></java><html>
<p>
<strong>XML configuration</strong>
</p>
</html><xml><![CDATA[<settings xmlns="http://www.jooq.org/xsd/jooq-runtime-{runtime-xsd-version}.xsd">
<renderLocale>en-US</renderLocale>
</settings>]]></xml><html>
</html></content>
</section>
<section id="settings-parameter-type">
<title>Parameter types</title>
<content><html>