java.lang.Object
org.jooq.conf.SettingsTools
Convenience methods for jOOQ runtime settings.
- Author:
- Lukas Eder
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic final SettingsClone some settings.static final SettingsRetrieve the configured default settings.static final booleanexecutePreparedStatements(Settings settings) Whether aPreparedStatementshould be executed.static final booleanexecuteStaticStatements(Settings settings) Whether staticStatementshould be executed.static final booleanfetchIntermediateResult(Configuration configuration) ReturnFetchIntermediateResult.static final BackslashEscapinggetBackslashEscaping(Settings settings) Get the value BackslashEscaping value.static final intgetBatchSize(Settings settings) Return the specifiedSettings.getBatchSize().static final ExecuteWithoutWheregetExecuteDeleteWithoutWhere(Settings settings) Lazy access toSettings.getExecuteDeleteWithoutWhere().static final ExecuteWithoutWheregetExecuteUpdateWithoutWhere(Settings settings) Lazy access toSettings.getExecuteUpdateWithoutWhere().static final intgetFetchServerOutputSize(int fetchServerOutputSize, Settings settings) static final intgetFetchSize(int fetchSize, Settings settings) static final longgetLargeMaxRows(long maxRows, Settings settings) static final intgetMaxRows(int maxRows, Settings settings) static final ParamTypegetParamType(Settings settings) Get the parameter type from the settings.static final QueryPoolablegetQueryPoolable(QueryPoolable poolable, Settings settings) static final intgetQueryTimeout(int timeout, Settings settings) static final RenderKeywordCasegetRenderKeywordCase(Settings settings) Backwards compatible access toRenderKeywordCaseand/orRenderKeywordStyle(the latter being deprecated).static final RenderMappinggetRenderMapping(Settings settings) Lazy access toRenderMapping.static final RenderNameCasegetRenderNameCase(Settings settings) Backwards compatible access toRenderNameCaseand/orRenderNameStyle(the latter being deprecated).static final RenderQuotedNamesgetRenderQuotedNames(Settings settings) Backwards compatible access toRenderQuotedNamesand/orRenderNameStyle(the latter being deprecated).static final RenderTablegetRenderTable(Settings settings) Lazy access toRenderTable.static final StatementTypegetStatementType(Settings settings) Get the statement type from the settings.static final TransformUnneededArithmeticExpressionsLazy access toSettings.getTransformUnneededArithmeticExpressions().static final LocaleinterpreterLocale(Settings settings) The interpreter locale that is applicable, or the default locale if no such locale is configured.static final LocaleThe render locale that is applicable, or the default locale if no such locale is configured.static final LocaleparseLocale(Settings settings) The parser locale that is applicable, or the default locale if no such locale is configured.static final booleanparsingConnectionCaching(Settings settings) Whether parsing connection caching is active.static final booleanrecordMapperCaching(Settings settings) Whether record mapper caching is active.static final booleanreflectionCaching(Settings settings) Whether reflection caching is active.static final LocalerenderLocale(Settings settings) The render locale that is applicable, or the default locale if no such locale is configured.static final booleanWhether any non-identity value should be returned on anUpdatableRecordoperation.static final booleanreturnAnyOnUpdatableRecord(Settings settings) Whether any value should be returned on anUpdatableRecordoperation.static final booleanupdatablePrimaryKeys(Settings settings) Whether primary keys should be updatable.
- 
Constructor Details- 
SettingsToolspublic SettingsTools()
 
- 
- 
Method Details- 
getParamTypeGet the parameter type from the settings.The ParamTypecan be overridden by theStatementType. If the latter is set toStatementType.STATIC_STATEMENT, then the former defaults toParamType.INLINED.
- 
getStatementTypeGet the statement type from the settings.
- 
getBackslashEscapingGet the value BackslashEscaping value.
- 
executePreparedStatementsWhether aPreparedStatementshould be executed.
- 
executeStaticStatementsWhether staticStatementshould be executed.
- 
updatablePrimaryKeysWhether primary keys should be updatable.
- 
reflectionCachingWhether reflection caching is active.
- 
recordMapperCachingWhether record mapper caching is active.
- 
parsingConnectionCachingWhether parsing connection caching is active.
- 
localeThe render locale that is applicable, or the default locale if no such locale is configured.
- 
renderLocaleThe render locale that is applicable, or the default locale if no such locale is configured.
- 
parseLocaleThe parser locale that is applicable, or the default locale if no such locale is configured.
- 
interpreterLocaleThe interpreter locale that is applicable, or the default locale if no such locale is configured.
- 
getRenderTableLazy access toRenderTable.
- 
getRenderMappingLazy access toRenderMapping.
- 
getRenderKeywordCaseBackwards compatible access toRenderKeywordCaseand/orRenderKeywordStyle(the latter being deprecated).
- 
getRenderNameCaseBackwards compatible access toRenderNameCaseand/orRenderNameStyle(the latter being deprecated).
- 
getRenderQuotedNamesBackwards compatible access toRenderQuotedNamesand/orRenderNameStyle(the latter being deprecated).
- 
getExecuteUpdateWithoutWhereLazy access toSettings.getExecuteUpdateWithoutWhere().
- 
getExecuteDeleteWithoutWhereLazy access toSettings.getExecuteDeleteWithoutWhere().
- 
getTransformUnneededArithmeticExpressionspublic static final TransformUnneededArithmeticExpressions getTransformUnneededArithmeticExpressions(Settings settings) Lazy access toSettings.getTransformUnneededArithmeticExpressions().
- 
defaultSettingsRetrieve the configured default settings.- If the JVM flag -Dorg.jooq.settingspoints to a valid settings file on the classpath, this will be loaded
- If the JVM flag -Dorg.jooq.settingspoints 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 Settingsobject is created with its defaults
 
- If the JVM flag 
- 
cloneClone some settings.
- 
getQueryTimeout
- 
getQueryPoolable
- 
getMaxRows
- 
getLargeMaxRows
- 
fetchIntermediateResultReturnFetchIntermediateResult.
- 
getFetchSize
- 
getBatchSizeReturn the specifiedSettings.getBatchSize().
- 
getFetchServerOutputSize
- 
returnAnyOnUpdatableRecordWhether any value should be returned on anUpdatableRecordoperation.
- 
returnAnyNonIdentityOnUpdatableRecordWhether any non-identity value should be returned on anUpdatableRecordoperation.
 
-