java.lang.Object
org.jooq.conf.SettingsTools
Convenience methods for jOOQ runtime settings.
- Author:
- Lukas Eder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final Settings
Clone some settings.static final Settings
Retrieve the configured default settings.static final boolean
executePreparedStatements
(Settings settings) Whether aPreparedStatement
should be executed.static final boolean
executeStaticStatements
(Settings settings) Whether staticStatement
should be executed.static final boolean
fetchIntermediateResult
(Configuration configuration) ReturnFetchIntermediateResult
.static final BackslashEscaping
getBackslashEscaping
(Settings settings) Get the value BackslashEscaping value.static final int
getBatchSize
(Settings settings) Return the specifiedSettings.getBatchSize()
.static final ExecuteWithoutWhere
getExecuteDeleteWithoutWhere
(Settings settings) Lazy access toSettings.getExecuteDeleteWithoutWhere()
.static final ExecuteWithoutWhere
getExecuteUpdateWithoutWhere
(Settings settings) Lazy access toSettings.getExecuteUpdateWithoutWhere()
.static final int
getFetchServerOutputSize
(int fetchServerOutputSize, Settings settings) static final int
getFetchSize
(int fetchSize, Settings settings) static final int
getMaxRows
(int maxRows, Settings settings) static final ParamType
getParamType
(Settings settings) Get the parameter type from the settings.static final QueryPoolable
getQueryPoolable
(QueryPoolable poolable, Settings settings) static final int
getQueryTimeout
(int timeout, Settings settings) static final RenderKeywordCase
getRenderKeywordCase
(Settings settings) Backwards compatible access toRenderKeywordCase
and/orRenderKeywordStyle
(the latter being deprecated).static final RenderMapping
getRenderMapping
(Settings settings) Lazy access toRenderMapping
.static final RenderNameCase
getRenderNameCase
(Settings settings) Backwards compatible access toRenderNameCase
and/orRenderNameStyle
(the latter being deprecated).static final RenderQuotedNames
getRenderQuotedNames
(Settings settings) Backwards compatible access toRenderQuotedNames
and/orRenderNameStyle
(the latter being deprecated).static final StatementType
getStatementType
(Settings settings) Get the statement type from the settings.static final TransformUnneededArithmeticExpressions
Lazy access toSettings.getTransformUnneededArithmeticExpressions()
.static final Locale
interpreterLocale
(Settings settings) The interpreter locale that is applicable, or the default locale if no such locale is configured.static final Locale
The render locale that is applicable, or the default locale if no such locale is configured.static final Locale
parseLocale
(Settings settings) The parser locale that is applicable, or the default locale if no such locale is configured.static final boolean
parsingConnectionCaching
(Settings settings) Whether parsing connection caching is active.static final boolean
recordMapperCaching
(Settings settings) Whether record mapper caching is active.static final boolean
reflectionCaching
(Settings settings) Whether reflection caching is active.static final Locale
renderLocale
(Settings settings) The render locale that is applicable, or the default locale if no such locale is configured.static final boolean
updatablePrimaryKeys
(Settings settings) Whether primary keys should be updatable.
-
Constructor Details
-
SettingsTools
public SettingsTools()
-
-
Method Details
-
getParamType
Get the parameter type from the settings.The
ParamType
can be overridden by theStatementType
. If the latter is set toStatementType.STATIC_STATEMENT
, then the former defaults toParamType.INLINED
. -
getStatementType
Get the statement type from the settings. -
getBackslashEscaping
Get the value BackslashEscaping value. -
executePreparedStatements
Whether aPreparedStatement
should be executed. -
executeStaticStatements
Whether staticStatement
should be executed. -
updatablePrimaryKeys
Whether primary keys should be updatable. -
reflectionCaching
Whether reflection caching is active. -
recordMapperCaching
Whether record mapper caching is active. -
parsingConnectionCaching
Whether parsing connection caching is active. -
locale
The render locale that is applicable, or the default locale if no such locale is configured. -
renderLocale
The render locale that is applicable, or the default locale if no such locale is configured. -
parseLocale
The parser locale that is applicable, or the default locale if no such locale is configured. -
interpreterLocale
The interpreter locale that is applicable, or the default locale if no such locale is configured. -
getRenderMapping
Lazy access toRenderMapping
. -
getRenderKeywordCase
Backwards compatible access toRenderKeywordCase
and/orRenderKeywordStyle
(the latter being deprecated). -
getRenderNameCase
Backwards compatible access toRenderNameCase
and/orRenderNameStyle
(the latter being deprecated). -
getRenderQuotedNames
Backwards compatible access toRenderQuotedNames
and/orRenderNameStyle
(the latter being deprecated). -
getExecuteUpdateWithoutWhere
Lazy access toSettings.getExecuteUpdateWithoutWhere()
. -
getExecuteDeleteWithoutWhere
Lazy access toSettings.getExecuteDeleteWithoutWhere()
. -
getTransformUnneededArithmeticExpressions
public static final TransformUnneededArithmeticExpressions getTransformUnneededArithmeticExpressions(Settings settings) Lazy access toSettings.getTransformUnneededArithmeticExpressions()
. -
defaultSettings
Retrieve the configured default settings.- If the JVM flag
-Dorg.jooq.settings
points to a valid settings file on the classpath, this will be loaded - If the JVM flag
-Dorg.jooq.settings
points to a valid settings file on the file system, this will be loaded - If a valid settings file is found on the classpath at
/jooq-settings.xml
, this will be loaded - Otherwise, a new
Settings
object is created with its defaults
- If the JVM flag
-
clone
Clone some settings. -
getQueryTimeout
-
getQueryPoolable
-
getMaxRows
-
fetchIntermediateResult
ReturnFetchIntermediateResult
. -
getFetchSize
-
getBatchSize
Return the specifiedSettings.getBatchSize()
. -
getFetchServerOutputSize
-