Uses of Class
org.jooq.conf.Settings
Package
Description
This package contains jOOQ's public API.
This package contains jOOQ's implementation classes.
JDBC tooling.
-
Uses of Settings in org.jooq
Modifier and TypeMethodDescription@NotNull Settings
Configuration.settings()
Retrieve the runtime configuration settings.@NotNull Settings
DAO.settings()
The settings wrapped by this context.@NotNull Settings
Scope.settings()
The settings wrapped by this context.Modifier and TypeMethodDescription@NotNull Configuration
Create a derived configuration from this one, with new settings.@NotNull Configuration
Change this configuration to hold a new settings.Modifier and TypeMethodDescription@NotNull Configuration
Configuration.deriveSettings
(Function<? super Settings, ? extends Settings> newSettings) Create a derived configuration from this one, with new settings constructed from a clone of the current settings.@NotNull Configuration
Configuration.deriveSettings
(Function<? super Settings, ? extends Settings> newSettings) Create a derived configuration from this one, with new settings constructed from a clone of the current settings. -
Uses of Settings in org.jooq.conf
Modifier and TypeMethodDescriptionstatic final Settings
Clone some settings.ObjectFactory.createSettings()
Create an instance ofSettings
static final Settings
SettingsTools.defaultSettings()
Retrieve the configured default settings.Settings.withApplyWorkaroundFor7962
(Boolean value) [#7963] Apply workaround for ORA-04043 when inserting into Oracle tables with qualified, quoted identifiers, and fetching generated keysSettings.withAttachRecords
(Boolean value) Whether fetched records should be attached to the fetching configuration.Settings.withBackslashEscaping
(BackslashEscaping value) Whether string literals should be escaped with backslash.Settings.withBatchSize
(Integer value) A property specifying a batch size that should be applied to all automatically createdBatchedConnection
instances.Settings.withBindOffsetDateTimeType
(Boolean value) Whether thejava.time
(JSR 310) typeOffsetDateTime
should be bound natively to JDBC.Settings.withBindOffsetTimeType
(Boolean value) Whether thejava.time
(JSR 310) typeOffsetTime
should be bound natively to JDBC.Settings.withCacheParsingConnection
(Boolean value) Whether parsing connection translations should be cached in the configuration.Settings.withCacheParsingConnectionLRUCacheSize
(Integer value) The default value of the ParsingConnection cache's LRU cache size.Settings.withCachePreparedStatementInLoader
(Boolean value) Whether JDBCPreparedStatement
instances should be cached in loader API.Settings.withCacheRecordMappers
(Boolean value) Whether record mappers should be cached in the configuration.Settings.withCacheRecordMappersLRUCacheSize
(Integer value) The default value of the RecordMapper cache's LRU cache size.Settings.withComputedOnClientStored
(Boolean value) WhetherSTORED
client side computed columns should be applied to queries (including audit columns).Settings.withComputedOnClientVirtual
(Boolean value) WhetherVIRTUAL
client side computed columns should be applied to queries.Settings.withDebugInfoOnStackTrace
(Boolean value) [#5570] Whether exception stack traces should be enhanced with additional debug information.Settings.withDelimiter
(String value) [#5826] The delimiter character to be used to delimit statements in batches.Settings.withDiagnosticsConcatenationInPredicate
(Boolean value) Whether to run theDiagnosticsListener.concatenationInPredicate(org.jooq.DiagnosticsContext)
diagnostic.Settings.withDiagnosticsConnection
(DiagnosticsConnection value) Whether to activate the DiagnosticsConnection, explicit byDEFAULT
, implicit ifON
, or turnedOFF
entirely.Settings.withDiagnosticsConsecutiveAggregation
(Boolean value) Whether to run theDiagnosticsListener.consecutiveAggregation(org.jooq.DiagnosticsContext)
diagnostic.Settings.withDiagnosticsDuplicateStatements
(Boolean value) Whether to run theDiagnosticsListener.duplicateStatements(org.jooq.DiagnosticsContext)
diagnostic.Settings.withDiagnosticsDuplicateStatementsUsingTransformPatterns
(Boolean value) Whether to run theDiagnosticsListener.duplicateStatements(org.jooq.DiagnosticsContext)
diagnostic with thetransformPatterns
feature activated.Settings.withDiagnosticsLogging
(Boolean value) When set to true, this will add jOOQ's default logging DiagnosticsListeners.Settings.withDiagnosticsMissingWasNullCall
(Boolean value) Whether to run theDiagnosticsListener.missingWasNullCall(org.jooq.DiagnosticsContext)
diagnostic.Settings.withDiagnosticsNullCondition
(Boolean value) Whether to run theinvalid reference
org.jooq.DiagnosticsListener#nullConditoin(org.jooq.DiagnosticsContext)
Settings.withDiagnosticsPatterns
(Boolean value) Whether to run the various pattern transformation diagnostics.Settings.withDiagnosticsPossiblyWrongExpression
(Boolean value) Whether to run theDiagnosticsListener.possiblyWrongExpression(org.jooq.DiagnosticsContext)
diagnostic.Settings.withDiagnosticsRepeatedStatements
(Boolean value) Whether to run theDiagnosticsListener.repeatedStatements(org.jooq.DiagnosticsContext)
diagnostic.Settings.withDiagnosticsTooManyColumnsFetched
(Boolean value) Whether to run theDiagnosticsListener.tooManyColumnsFetched(org.jooq.DiagnosticsContext)
diagnostic.Settings.withDiagnosticsTooManyRowsFetched
(Boolean value) Whether to run theDiagnosticsListener.tooManyRowsFetched(org.jooq.DiagnosticsContext)
diagnostic.Settings.withDiagnosticsTrivialCondition
(Boolean value) Whether to run theDiagnosticsListener.trivialCondition(org.jooq.DiagnosticsContext)
diagnostic.Settings.withDiagnosticsUnnecessaryWasNullCall
(Boolean value) Whether to run theDiagnosticsListener.unnecessaryWasNullCall(org.jooq.DiagnosticsContext)
diagnostic.Settings.withEmulateComputedColumns
(Boolean value) [#13418] Whether computed columns should be emulated in the client.Settings.withEmulateMultiset
(NestedCollectionEmulation value) [#3884] HowMULTISET
support should be emulated.Settings.withEmulateOnDuplicateKeyUpdateOnPrimaryKeyOnly
(Boolean value) [#6462] Use only the primary key to emulate MySQL's INSERT ..Settings.withExecuteDeleteWithoutWhere
(ExecuteWithoutWhere value) [#6771] Specifies whether DELETE statements are allowed to be executed lacking a WHERE clause.Settings.withExecuteListenerEndInvocationOrder
(InvocationOrder value) The order of invocation for [action]end() methods registeredExecuteListener
s.Settings.withExecuteListenerStartInvocationOrder
(InvocationOrder value) The order of invocation for [action]start() methods registeredExecuteListener
s.Settings.withExecuteLogging
(Boolean value) When set to true, this will add jOOQ's defaultLoggerListener
for debug logging.Settings.withExecuteLoggingSQLExceptions
(Boolean value) [#14420] Whether constraint violations and otherSQLException
should produce additional log information about the column name and data causing the problem.Settings.withExecuteUpdateWithoutWhere
(ExecuteWithoutWhere value) [#6771] Specifies whether UPDATE statements are allowed to be executed lacking a WHERE clause.Settings.withExecuteWithOptimisticLocking
(Boolean value) Whether store() and delete() methods should be executed with optimistic locking.Settings.withExecuteWithOptimisticLockingExcludeUnversioned
(Boolean value) Whether store() and delete() methods should be executed with optimistic locking also on "unversioned" tables, i.e.Settings.withFetchIntermediateResult
(FetchIntermediateResult value) Whether to fetch data into intermediateResult
instances.Settings.withFetchServerOutputSize
(Integer value) Whether server output should be fetched after each query execution.Settings.withFetchSize
(Integer value) The default JDBC fetchSize property that should be applied to all jOOQ queries, for which no specific fetchSize value was specified.Settings.withFetchTriggerValuesAfterReturning
(FetchTriggerValuesAfterReturning value) Fetch trigger values after aRETURNING
clause in dialects that don't have native support for this.Settings.withFetchTriggerValuesAfterSQLServerOutput
(Boolean value) Deprecated.Settings.withFetchTrimmedCharValues
(Boolean value) Whether right trim fetchedCHAR
typed strings from JDBCResultSet
.Settings.withFetchWarnings
(Boolean value) Whether warnings should be fetched after each query execution.Settings.withForceIntegerTypesOnZeroScaleDecimals
(Boolean value) Historically, zero-scale decimal types are generated as their most appropriate, corresponding integer type (e.g.Settings.withInlineThreshold
(Integer value) The maximum number of allowed bind variables before inlining all values where0
uses the dialect defaults:SQLDialect.ACCESS
: 768SQLDialect.ASE
: 2000SQLDialect.INGRES
: 1024SQLDialect.ORACLE
: 32767SQLDialect.POSTGRES
: 32767SQLDialect.SQLITE
: 999SQLDialect.SQLSERVER
: 2100SQLDialect.TERADATA
: 2536Settings.withInListPadBase
(Integer value) [#7095] The base to use to calculate the powers of when applying in list padding.Settings.withInListPadding
(Boolean value) [#5600] Whether IN lists in IN predicates should be padded to powers of inListPadBase (default 2).Settings.withInsertUnchangedRecords
(Boolean value) WhetherTableRecord.insert()
calls should be executed if the record is unchanged.Settings.withInterpreterDelayForeignKeyDeclarations
(Boolean value) Using this flag, the interpreter will be able to delay the addition of foreign key declarations until the end of the interpretation run.Settings.withInterpreterDialect
(SQLDialect value) [#7337] The dialect that should be used to interpret SQL DDL statements.Settings.withInterpreterLocale
(Locale value) The Locale to be used with any interpreter locale dependent logic, defaulting togetLocale()
.[#9633] The case sensitivity of identifiers used when interpreting SQL DDL statements.Settings.withInterpreterSearchPath
(Collection<InterpreterSearchSchema> values) Settings.withInterpreterSearchPath
(List<InterpreterSearchSchema> interpreterSearchPath) Settings.withInterpreterSearchPath
(InterpreterSearchSchema... values) Settings.withLocale
(Locale value) The Locale to be used with any locale dependent logic if there is not a more specific locale available.Settings.withMapConstructorParameterNames
(Boolean value) Whether constructor parameter names obtained via reflection in Java 8+ should be considered by the DefaultRecordMapper.Settings.withMapConstructorParameterNamesInKotlin
(Boolean value) Whether constructor parameter names obtained via reflection in Kotlin should be considered by the DefaultRecordMapper.Settings.withMapConstructorPropertiesParameterNames
(Boolean value) Whether constructor parameter names obtained from theConstructorPropertiesProvider
SPI (default implementation in thejOOQ-beans-extensions
module) should be considered by the DefaultRecordMapper.Settings.withMapJPAAnnotations
(Boolean value) Whether JPA annotations should be considered by theDefaultRecordMapper
, assuming thejOOQ-jpa-extensions
is on the classpath.Settings.withMapRecordComponentParameterNames
(Boolean value) Whether constructor parameter names obtained from theRecord
component names should be considered by the DefaultRecordMapper.Settings.withMaxRows
(Integer value) The default JDBC maxRows property that should be applied to all jOOQ queries, for which no specific maxRows value was specified.Settings.withMetaIncludeSystemIndexes
(Boolean value) TheMeta
implementation that is backed byDatabaseMetaData
does not produce system generated indexes on constraints, by default.Settings.withMetaIncludeSystemSequences
(Boolean value) TheMeta
implementation that is backed byDatabaseMetaData
does not produce system generated sequences, by default.Settings.withMigrationAllowsUndo
(Boolean value) Whether migrations are allowed to be executed in inverse order.Settings.withMigrationAutoBaseline
(Boolean value) Whether to automatically existing schemas that are not yet managed by jOOQ Migrations.Settings.withMigrationAutoVerification
(Boolean value) Whether a migration automatically runs a verification first.Settings.withMigrationDefaultSchema
(MigrationSchema value) The default schema whose unqualified objects that are included in the migration.Settings.withMigrationHistorySchema
(MigrationSchema value) The database schema where the migration history is located.Settings.withMigrationHistorySchemaCreateSchemaIfNotExists
(Boolean value) WhethergetMigrationHistorySchema()
should be created if it doesn't exist.Settings.withMigrationIgnoreDefaultTimestampPrecisionDiffs
(Boolean value) VariousmigrateTo()
methods (e.g.Settings.withMigrationListenerEndInvocationOrder
(InvocationOrder value) The order of invocation for [action]end() methods registeredMigrationListener
s.Settings.withMigrationListenerStartInvocationOrder
(InvocationOrder value) The order of invocation for [action]start() methods registeredMigrationListener
s.Settings.withMigrationRevertUntracked
(Boolean value) Whether migrations revert any untracked changes in the schemas that are being migrated.Settings.withMigrationSchemata
(Collection<MigrationSchema> values) Settings.withMigrationSchemata
(List<MigrationSchema> migrationSchemata) Settings.withMigrationSchemata
(MigrationSchema... values) Settings.withMigrationSchemataCreateSchemaIfNotExists
(Boolean value) WhethergetMigrationSchemata()
should be created if they don't exist.Settings.withNamePathSeparator
(String value) The character(s) to be used as a separator in paths encoded in ainvalid reference
Name
Settings.withParamCastMode
(ParamCastMode value) Whether rendered bind values should be cast to their respective type.Settings.withParamType
(ParamType value) Specify how bind variables are to be rendered.Settings.withParseAppendMissingTableReferences
(Transformation value) Transform the parsed SQL to append missing table references to the query'sFROM
orUSING
clause, if applicable.Settings.withParseDateFormat
(String value) The date format to use when parsing functions whose behaviour depends on some session date format, such as NLS_DATE_FORMAT in OracleSettings.withParseDialect
(SQLDialect value) [#7337] The input dialect that should be chosen to disambiguate ambiguous SQL syntax.Settings.withParseIgnoreComments
(Boolean value) [#8325] Whether the parser should ignore content between ignore comment tokens.Settings.withParseIgnoreCommentStart
(String value) [#8325] The ignore comment start tokenSettings.withParseIgnoreCommentStop
(String value) [#8325] The ignore comment stop tokenSettings.withParseIgnoreCommercialOnlyFeatures
(Boolean value) [#13109] Whether the parser of the jOOQ Open Source Edition should ignore commercial only features, rather than failing.Settings.withParseLocale
(Locale value) The Locale to be used with any parser locale dependent logic, defaulting togetLocale()
.Settings.withParseMetaDefaultExpressions
(Boolean value) [#8469] Whether to parse default expressions retrieved fromDatabaseMetaData
.Settings.withParseMetaViewSources
(Boolean value) [#8469] Whether to parse view sources retrieved fromDatabaseMetaData
.Settings.withParseNameCase
(ParseNameCase value) [#7337] The default name case for parsed identifiers.Settings.withParseNamedParamPrefix
(String value) The prefix to use for named parameters in parsed SQL.Settings.withParseRetainCommentsBetweenQueries
(Boolean value) [#12538] Whether the parser should retain comments and whitespace between queries when parsing multiple queries throughParser.parse(String)
.Settings.withParseSearchPath
(Collection<ParseSearchSchema> values) Settings.withParseSearchPath
(List<ParseSearchSchema> parseSearchPath) Settings.withParseSearchPath
(ParseSearchSchema... values) Settings.withParseSetCommands
(Boolean value) [#9780] Whether commands of the typeSET key = value
should be parsed rather than ignored.Settings.withParseTimestampFormat
(String value) The timestamp format to use when parsing functions whose behaviour depends on some session date format, such as NLS_TIMESTAMP_FORMAT in OracleSettings.withParseUnknownFunctions
(ParseUnknownFunctions value) [#7344] Whether the parser should accept unknown functions.Settings.withParseUnsupportedSyntax
(ParseUnsupportedSyntax value) [#5917] Whether the parser should accept unsupported (but known) syntax.Settings.withParseWithMetaLookups
(ParseWithMetaLookups value) [#7163] Whether the parser should perform meta lookups in the Configuration's MetaProvider.Settings.withQueryPoolable
(QueryPoolable value) The default JDBC poolable property that should be applied to all jOOQ queries, for which no specific poolable flag was specified.Settings.withQueryTimeout
(Integer value) The default JDBC queryTimeout property that should be applied to all jOOQ queries, for which no specific queryTimeout was specified.Settings.withReadonlyInsert
(WriteIfReadonly value) Settings.withReadonlyTableRecordInsert
(WriteIfReadonly value) [#9864] The behaviour when trying to insert into readonly columns usingTableRecord.insert()
.Settings.withReadonlyUpdatableRecordUpdate
(WriteIfReadonly value) [#9864] The behaviour when trying to update a readonly column usingUpdatableRecord.update()
.Settings.withReadonlyUpdate
(WriteIfReadonly value) Settings.withRecordDirtyTracking
(RecordDirtyTracking value) WhetherUpdatableRecord.store()
and related calls should be based onRecord.touched()
orRecord.modified()
semantics.Settings.withRecordListenerEndInvocationOrder
(InvocationOrder value) The order of invocation for [action]end() methods registeredRecordListener
s.Settings.withRecordListenerStartInvocationOrder
(InvocationOrder value) The order of invocation for [action]start() methods registeredRecordListener
s.Settings.withReflectionCacheLRUCacheSize
(Integer value) The default value of the reflection cache's LRU cache size.Settings.withReflectionCaching
(Boolean value) Whether reflection information should be cached in the configuration.Settings.withRenderAutoAliasedDerivedTableExpressions
(AutoAliasExpressions value) Whether to auto-alias expressions in derived tables.Settings.withRenderCatalog
(Boolean value) Whether any catalog name should be rendered at all.Settings.withRenderCoalesceToEmptyStringInConcat
(Boolean value) Whether string concatenation operands should be coalesced to empty strings.Settings.withRenderDefaultNullability
(RenderDefaultNullability value) Whether theNullability.DEFAULT
nullablity should be rendered in generated DDL, and how it should be rendered.Settings.withRenderDollarQuotedStringToken
(String value) The token to place between the$$
signs of a PostgreSQL dollar quoted string generated by jOOQ.Settings.withRenderFormatted
(Boolean value) Whether rendered SQL should be pretty-printed.Settings.withRenderFormatting
(RenderFormatting value) All sorts of formatting flags / settings.Settings.withRenderGroupConcatMaxLenSessionVariable
(Boolean value) Whether the jOOQGROUP_CONCAT
function should be overflow-protected by setting the@@group_concat_max_len
session variable in MySQL style database systems.Settings.withRenderImplicitJoinToManyType
(RenderImplicitJoinType value) The join type to be generated by implicit joins for to-many paths inSelect
queries.Settings.withRenderImplicitJoinType
(RenderImplicitJoinType value) The join type to be generated by implicit joins for to-one paths inSelect
queries.Settings.withRenderImplicitWindowRange
(RenderImplicitWindowRange value) Whether to render an explicit windowRANGE
clause when an implicit clause is applied.Settings.withRenderKeywordCase
(RenderKeywordCase value) Whether the case ofKeyword
references should be modified in any way.Settings.withRenderKeywordStyle
(RenderKeywordStyle value) Deprecated.- 3.12.0 - [#5909] - UseRenderKeywordCase
instead.Settings.withRenderLocale
(Locale value) The Locale to be used with any render locale dependent logic (as e.g.Settings.withRenderMapping
(RenderMapping value) Configure render mapping for runtime schema / table rewriting in generated SQL.Settings.withRenderNameCase
(RenderNameCase value) Whether the case ofName
references should be modified in any way.Settings.withRenderNamedParamPrefix
(String value) The prefix to use for named parameters in generated SQL.Settings.withRenderNameStyle
(RenderNameStyle value) Deprecated.- 3.12.0 - [#5909] - UseRenderQuotedNames
andRenderNameCase
instead.Settings.withRenderNullifEmptyStringForBindValues
(Boolean value) Whether to wrap String typed bind values with NULLIF(?, '') for Oracle compatibility.Settings.withRenderOptionalAsKeywordForFieldAliases
(RenderOptionalKeyword value) Whether to render the optionalAS
keyword in table aliases, if it is optional in the output dialect.Settings.withRenderOptionalAsKeywordForTableAliases
(RenderOptionalKeyword value) Whether to render the optionalAS
keyword in table aliases, if it is optional in the output dialect.Settings.withRenderOptionalAssociativityParentheses
(RenderOptionalKeyword value) Whether to render optional parentheses to make associativity explicit, e.g.Settings.withRenderOptionalInnerKeyword
(RenderOptionalKeyword value) Whether to render the optionalINNER
keyword inINNER JOIN
, if it is optional in the output dialect.Settings.withRenderOptionalOuterKeyword
(RenderOptionalKeyword value) Whether to render the optionalOUTER
keyword inOUTER JOIN
, if it is optional in the output dialect.Settings.withRenderOrderByRownumberForEmulatedPagination
(Boolean value) Whether an additionalORDER BY rn
clause should be rendered on emulated paginated queries.Settings.withRenderOutputForSQLServerReturningClause
(Boolean value) Whether the jOOQRETURNING
clause should map to SQL Server'sOUTPUT
clause.Settings.withRenderParenthesisAroundSetOperationQueries
(Boolean value) Whether queries combined with set operators (e.g.Settings.withRenderPlainSQLTemplatesAsRaw
(Boolean value) Whether plain SQL templates (SQL
) are rendered as raw string content.Settings.withRenderQuotedNames
(RenderQuotedNames value) Whether rendered schema, table, column names, etc should be quoted.Settings.withRenderRedundantConditionForSeekClause
(Boolean value) Whether a redundant(a invalid input: '<'= :a)
predicate should be rendered for a(a, b) invalid input: '<' (:a, :b)
predicate for theSEEK
clause.Settings.withRenderRowConditionForSeekClause
(Boolean value) Whether a(a, b) invalid input: '<' (:a, :b)
row predicate should be rendered for theSEEK
clause.Settings.withRenderScalarSubqueriesForStoredFunctions
(Boolean value) Whether stored function calls should be wrapped in scalar subqueries.Settings.withRenderSchema
(Boolean value) Whether any schema name should be rendered at all.Settings.withRenderTable
(RenderTable value) Whether any table name qualification should be rendered at all on columns.Settings.withRenderVariablesInDerivedTablesForEmulations
(Boolean value) Whether emulations that require repeating expressions should render variables for those expressions in derived tables.Settings.withReturnAllOnUpdatableRecord
(Boolean value) Whether calls to store(), insert() and update() should return all columns, not just identity columns.Settings.withReturnComputedOnUpdatableRecord
(Boolean value) Whether calls to store(), insert() and update() should return values for columns that areDataType.computed()
.Settings.withReturnDefaultOnUpdatableRecord
(Boolean value) Whether calls to store(), insert() and update() should return values for columns that areDataType.defaulted()
.Settings.withReturnIdentityOnUpdatableRecord
(Boolean value) Whether calls to store(), insert() and update() should return the identity column.Settings.withReturnRecordToPojo
(Boolean value) Whether calls to store(), insert(), update(), and delete() that are called on an UpdatableRecord that is created from a POJO (e.g.Settings.withStatementType
(StatementType value) The type of statement that is to be executed.Settings.withThrowExceptions
(ThrowExceptions value) A strategy defining how exceptions from the database / JDBC driver should be propagatedSettings.withTransactionListenerEndInvocationOrder
(InvocationOrder value) The order of invocation for [action]end() methods registeredTransactionListener
s.Settings.withTransactionListenerStartInvocationOrder
(InvocationOrder value) The order of invocation for [action]start() methods registeredTransactionListener
s.Settings.withTransformAnsiJoinToTableLists
(Boolean value) Transform ANSI join to table lists if possible.Settings.withTransformGroupByColumnIndex
(Transformation value) TransformGROUP BY [column index]
clauses by substituting the column index.Deprecated.- 3.18.0 - [#14634] - The configuration of this transformation is deprecated.Settings.withTransformInlineBindValuesForFieldComparisons
(Boolean value) TransformQOM.CompareCondition
and a few other types of condition to inline their bind values, in case they matchSettings.withTransformInlineCTE
(Transformation value) Transform Common Table Expressions (CTE) by inlining theirWITH
clause definition to wherever they're referenced.Settings.withTransformPatterns
(Boolean value) Transform various syntax patterns to better versions, if possible.Settings.withTransformPatternsAndNeToNotIn
(Boolean value) Transformx != c1 AND x != c2
tox NOT IN (c1, c2)
.Settings.withTransformPatternsArithmeticComparisons
(Boolean value) Transforma + 1 = 2
toa = 2 - 1
, and other transformations.Settings.withTransformPatternsArithmeticExpressions
(Boolean value) Transform1 / y * x
tox / y
, and other transformations.Settings.withTransformPatternsBitGet
(Boolean value) Transform bitwise operations to an equivalentBIT_GET(a, b)
expression.Settings.withTransformPatternsBitNotBitNand
(Boolean value) Transform~(bitnand(x, y))
tobitand(x, y)
and~(bitand(x, y)
tobitnand(x, y)
.Settings.withTransformPatternsBitNotBitNor
(Boolean value) Transform~(bitnor(x, y))
tobitor(x, y)
and~(bitor(x, y)
tobitnor(x, y)
.Settings.withTransformPatternsBitNotBitNot
(Boolean value) Transform~(~(x))
tox
.Settings.withTransformPatternsBitNotBitXNor
(Boolean value) Transform~(bitxnor(x, y))
tobitxor(x, y)
and~(bitxor(x, y)
tobitxnor(x, y)
.Settings.withTransformPatternsBitSet
(Boolean value) Transform bitwise operations to an equivalentBIT_SET(a, b)
orBIT_SET(a, b, c)
expression.Settings.withTransformPatternsCaseDistinctToDecode
(Boolean value) TransformCASE WHEN a IS NOT DISTINCT FROM b …
to an equivalentDECODE
function.Settings.withTransformPatternsCaseElseNull
(Boolean value) TransformCASE … ELSE NULL
removing theELSE
clause.Settings.withTransformPatternsCaseMergeWhenElse
(Boolean value) TransformCASE WHEN a THEN x WHEN b THEN y ELSE y END
toCASE WHEN a THEN x ELSE y END
.Settings.withTransformPatternsCaseMergeWhenWhen
(Boolean value) TransformCASE WHEN a THEN x WHEN b THEN x END
toCASE WHEN a OR b THEN x END
.Settings.withTransformPatternsCaseSearchedToCaseSimple
(Boolean value) Transform a searchedCASE WHEN x = ..
Settings.withTransformPatternsCaseToCaseAbbreviation
(Boolean value) TransformCASE
expressions to their respective abbreviations.Settings.withTransformPatternsCountConstant
(Boolean value) TransformCOUNT(1)
or any otherCOUNT(const)
toCOUNT(*)
.Settings.withTransformPatternsDistinctFromNull
(Boolean value) Transforma IS [ NOT ] DISTINCT FROM NULL
toa IS [ NOT ] NULL
.Settings.withTransformPatternsEmptyScalarSubquery
(Boolean value) Transform empty scalar subqueries like(SELECT 1 WHERE FALSE)
toNULL
.Settings.withTransformPatternsFlattenCase
(Boolean value) TransformCASE … ELSE CASE …
by flattening the nestedCASE
.Settings.withTransformPatternsFlattenCaseAbbreviation
(Boolean value) Flatten nestedCASE
abbreviations such asNVL
orCASE
.Settings.withTransformPatternsFlattenDecode
(Boolean value) Flatten nestedDECODE
functions.Settings.withTransformPatternsHyperbolicFunctions
(Boolean value) Transform(EXP(x) - EXP(-x)) / 2
toSINH(x)
, and other transformations.Settings.withTransformPatternsIdempotentFunctionRepetition
(Boolean value) Transform all repetitions of idempotent functions, such asUPPER(UPPER(s))
toUPPER(s)
.Settings.withTransformPatternsInverseHyperbolicFunctions
(Boolean value) TransformLN(x + SQRT(SQUARE(x) + 1))
toASINH(x)
, and other transformations.Settings.withTransformPatternsLogarithmicFunctions
(Boolean value) TransformLN(value) / LN(base)
toLOG(base, value)
, and other transformations.Settings.withTransformPatternsLogging
(Boolean value) Activate debug logging of thetransformPatterns
feature.Settings.withTransformPatternsMergeAndComparison
(Boolean value) Transformx >= a AND x invalid input: '<'= a
tox = a
.Settings.withTransformPatternsMergeBetweenSymmetricPredicates
(Boolean value) Transformx BETWEEN a AND b OR x BETWEEN b AND a
tox BETWEEN SYMMETRIC a AND b
.Settings.withTransformPatternsMergeInLists
(Boolean value) Transformx IN (a, b, c) AND x IN (b, c, d)
tox IN (b, c)
.Settings.withTransformPatternsMergeOrComparison
(Boolean value) Transformx = a OR x > a
tox >= a
.Settings.withTransformPatternsMergeRangePredicates
(Boolean value) Transformx >= a AND x invalid input: '<'= b
tox BETWEEN a AND b
.Settings.withTransformPatternsNegNeg
(Boolean value) Transform-(-(x))
tox
Settings.withTransformPatternsNormaliseAssociativeOps
(Boolean value) Transform(a + b) + (c + d)
to((a + b) + c) + d
.Settings.withTransformPatternsNormaliseCoalesceToNvl
(Boolean value) Transform 2 argumentCOALESCE(a, b)
toNVL(a, b)
.Settings.withTransformPatternsNormaliseFieldCompareValue
(Boolean value) Transform1 = a
toa = 1
.Settings.withTransformPatternsNormaliseInListSingleElementToComparison
(Boolean value) Transformx IN (a)
tox = a
andx NOT IN (a)
tox != a
.Settings.withTransformPatternsNotAnd
(Boolean value) TransformNOT(p AND q)
toNOT(p) OR NOT(q)
.Settings.withTransformPatternsNotComparison
(Boolean value) TransformNOT (a != b)
toa = b
, and similar comparisons.Settings.withTransformPatternsNotNot
(Boolean value) TransformNOT(NOT(x))
tox
.Settings.withTransformPatternsNotNotDistinct
(Boolean value) TransformNOT (a IS NOT DISTINCT FROM b)
toa IS DISTINCT FROM b
.Settings.withTransformPatternsNotOr
(Boolean value) TransformNOT(p OR q)
toNOT(p) AND NOT(q)
.Settings.withTransformPatternsNullOnNullInput
(Boolean value) Any {org.jooq.impl.QOM.UReturnsNullOnNullInput} function or expression withNULL
arguments can be replaced byNULL
.Settings.withTransformPatternsOrEqToIn
(Boolean value) Transformx = c1 OR x = c2
tox IN (c1, c2)
.Settings.withTransformPatternsScalarSubqueryCountAsteriskGtZero
(Boolean value) Transform predicates comparing scalar subqueries with a count(SELECT COUNT(*) …) > 0
to equivalentEXISTS (SELECT 1 …)
.Settings.withTransformPatternsScalarSubqueryCountExpressionGtZero
(Boolean value) Transform predicates comparing scalar subqueries with a count(SELECT COUNT(expr) …) > 0
to equivalentEXISTS (SELECT 1 … WHERE expr IS NOT NULL)
.Settings.withTransformPatternsSimplifyCaseAbbreviation
(Boolean value) Transform complex predicates into simplerCASE
abbreviations.Settings.withTransformPatternsTrigonometricFunctions
(Boolean value) TransformSIN(x) / COS(x)
toTAN(x)
, and other transformations.Settings.withTransformPatternsTrim
(Boolean value) TransformLTRIM(RTRIM(x))
orRTRIM(LTRIM(x))
toTRIM(x)
.Settings.withTransformPatternsTrivialBitwiseOperations
(Boolean value) Transform trivial bitwise comparisons likeBIT_OR(a, 0)
toa
.Settings.withTransformPatternsTrivialCaseAbbreviation
(Boolean value) Transform trivial case abbreviations likeNVL(NULL, a)
toa
.Settings.withTransformPatternsTrivialPredicates
(Boolean value) Transform trivial predicates like1 = 1
toTRUE
.Settings.withTransformPatternsUnnecessaryDistinct
(Boolean value) TransformSELECT DISTINCT a, b FROM t GROUP BY a, b
toSELECT a, b FROM t GROUP BY a, b
.Settings.withTransformPatternsUnnecessaryExistsSubqueryClauses
(Boolean value) Transform[ NOT ] EXISTS (SELECT DISTINCT a, b FROM t ORDER BY c LIMIT d)
to[ NOT ] EXISTS (SELECT 1 FROM t)
.Settings.withTransformPatternsUnnecessaryGroupByExpressions
(Boolean value) TransformSELECT a, b FROM t GROUP BY a, a, b
toSELECT a, b FROM t GROUP BY a, b
.Settings.withTransformPatternsUnnecessaryInnerJoin
(Boolean value) TransformSELECT * FROM t INNER JOIN u ON TRUE
toSELECT * FROM t CROSS JOIN u
.Settings.withTransformPatternsUnnecessaryOrderByExpressions
(Boolean value) TransformSELECT a, b FROM t ORDER BY a, a, b
toSELECT a, b FROM t ORDER BY a, b
.Settings.withTransformPatternsUnnecessaryScalarSubquery
(Boolean value) TransformSELECT (SELECT 1)
toSELECT 1
.Settings.withTransformPatternsUnreachableCaseClauses
(Boolean value) TransformCASE
by removing unreachable clauses.Settings.withTransformPatternsUnreachableDecodeClauses
(Boolean value) TransformDECODE
by removing unreachable clauses.Settings.withTransformQualify
(Transformation value) Transform theQUALIFY
clause to an equivalent derived table to filter on window functions.Settings.withTransformRownum
(Transformation value) TransformROWNUM
expressions to correspondingLIMIT
clauses orROW_NUMBER()
expressions.Settings.withTransformTableListsToAnsiJoin
(Boolean value) Transform table lists to ANSI join if possible.Transform arithmetic expressions on literals and bind variables.Settings.withUpdatablePrimaryKeys
(Boolean value) Whether primary key values are deemed to be "updatable" in jOOQ.Settings.withUpdateRecordTimestamp
(Boolean value) Whether store(), insert(), and update() methods should update the record timestamp prior to the operation, for use withexecuteWithOptimisticLocking
.Settings.withUpdateRecordVersion
(Boolean value) Whether store(), insert(), and update() methods should update the record version prior to the operation, for use withexecuteWithOptimisticLocking
.Settings.withUpdateUnchangedRecords
(UpdateUnchangedRecords value) WhetherUpdatableRecord.update()
calls should be executed if the record is unchanged.Settings.withVisitListenerEndInvocationOrder
(InvocationOrder value) The order of invocation for [action]end() methods registeredVisitListener
s.Settings.withVisitListenerStartInvocationOrder
(InvocationOrder value) The order of invocation for [action]start() methods registeredVisitListener
s.Settings.withWarnOnStaticTypeRegistryAccess
(Warning value) [#15286] The warning level when the deprecated static type registry was accessed by legacy code.Modifier and TypeMethodDescriptionjakarta.xml.bind.JAXBElement
<Settings> ObjectFactory.createSettings
(Settings value) Modifier and TypeMethodDescriptionstatic final Settings
Clone some settings.jakarta.xml.bind.JAXBElement
<Settings> ObjectFactory.createSettings
(Settings value) static final boolean
SettingsTools.executePreparedStatements
(Settings settings) Whether aPreparedStatement
should be executed.static final boolean
SettingsTools.executeStaticStatements
(Settings settings) Whether staticStatement
should be executed.static final BackslashEscaping
SettingsTools.getBackslashEscaping
(Settings settings) Get the value BackslashEscaping value.static final int
SettingsTools.getBatchSize
(Settings settings) Return the specifiedgetBatchSize()
.static final ExecuteWithoutWhere
SettingsTools.getExecuteDeleteWithoutWhere
(Settings settings) Lazy access togetExecuteDeleteWithoutWhere()
.static final ExecuteWithoutWhere
SettingsTools.getExecuteUpdateWithoutWhere
(Settings settings) Lazy access togetExecuteUpdateWithoutWhere()
.static final int
SettingsTools.getFetchServerOutputSize
(int fetchServerOutputSize, Settings settings) static final int
SettingsTools.getFetchSize
(int fetchSize, Settings settings) static final int
SettingsTools.getMaxRows
(int maxRows, Settings settings) static final ParamType
SettingsTools.getParamType
(Settings settings) Get the parameter type from the settings.static final QueryPoolable
SettingsTools.getQueryPoolable
(QueryPoolable poolable, Settings settings) static final int
SettingsTools.getQueryTimeout
(int timeout, Settings settings) static final RenderKeywordCase
SettingsTools.getRenderKeywordCase
(Settings settings) Backwards compatible access toRenderKeywordCase
and/orRenderKeywordStyle
(the latter being deprecated).static final RenderMapping
SettingsTools.getRenderMapping
(Settings settings) Lazy access toRenderMapping
.static final RenderNameCase
SettingsTools.getRenderNameCase
(Settings settings) Backwards compatible access toRenderNameCase
and/orRenderNameStyle
(the latter being deprecated).static final RenderQuotedNames
SettingsTools.getRenderQuotedNames
(Settings settings) Backwards compatible access toRenderQuotedNames
and/orRenderNameStyle
(the latter being deprecated).static final RenderTable
SettingsTools.getRenderTable
(Settings settings) Lazy access toRenderTable
.static final StatementType
SettingsTools.getStatementType
(Settings settings) Get the statement type from the settings.static final TransformUnneededArithmeticExpressions
SettingsTools.getTransformUnneededArithmeticExpressions
(Settings settings) Lazy access togetTransformUnneededArithmeticExpressions()
.static final Locale
SettingsTools.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
SettingsTools.parseLocale
(Settings settings) The parser locale that is applicable, or the default locale if no such locale is configured.static final boolean
SettingsTools.parsingConnectionCaching
(Settings settings) Whether parsing connection caching is active.static final boolean
SettingsTools.recordMapperCaching
(Settings settings) Whether record mapper caching is active.static final boolean
SettingsTools.reflectionCaching
(Settings settings) Whether reflection caching is active.static final Locale
SettingsTools.renderLocale
(Settings settings) The render locale that is applicable, or the default locale if no such locale is configured.static final boolean
SettingsTools.returnAnyNonIdentityOnUpdatableRecord
(Settings settings) Whether any non-identity value should be returned on anUpdatableRecord
operation.static final boolean
SettingsTools.returnAnyOnUpdatableRecord
(Settings settings) Whether any value should be returned on anUpdatableRecord
operation.static final boolean
SettingsTools.updatablePrimaryKeys
(Settings settings) Whether primary keys should be updatable. -
Uses of Settings in org.jooq.impl
Modifier and TypeMethodDescriptionDAOImpl.settings()
final Settings
DefaultConfiguration.settings()
Modifier and TypeMethodDescriptionfinal Configuration
final Configuration
final void
DefaultConfiguration.setSettings
(Settings newSettings) static @NotNull DSLContext
DSL.using
(io.r2dbc.spi.ConnectionFactory connectionFactory, SQLDialect dialect, Settings settings) Create an executor with a custom R2DBC connection factory, a dialect and settings configured.static @NotNull DSLContext
DSL.using
(io.r2dbc.spi.Connection connection, SQLDialect dialect, Settings settings) Create an executor with a custom R2DBC connection, a dialect and settings configured.static @NotNull DSLContext
DSL.using
(Connection connection, Settings settings) Create an executor with a connection, a dialect and settings configured.static @NotNull DSLContext
DSL.using
(Connection connection, SQLDialect dialect, Settings settings) Create an executor with a connection, a dialect and settings configured.static @NotNull DSLContext
DSL.using
(DataSource datasource, SQLDialect dialect, Settings settings) Create an executor with a data source, a dialect and settings configured.static @NotNull DSLContext
DSL.using
(ConnectionProvider connectionProvider, SQLDialect dialect, Settings settings) Create an executor with a custom connection provider, a dialect and settings configured.static @NotNull DSLContext
DSL.using
(SQLDialect dialect, Settings settings) Create an executor with a dialect and settings configured.Modifier and TypeMethodDescriptionfinal Configuration
DefaultConfiguration.deriveSettings
(Function<? super Settings, ? extends Settings> newSettings) final Configuration
DefaultConfiguration.deriveSettings
(Function<? super Settings, ? extends Settings> newSettings) ModifierConstructorDescriptionDefaultCloseableDSLContext
(io.r2dbc.spi.ConnectionFactory connectionFactory, SQLDialect dialect, Settings settings) DefaultCloseableDSLContext
(ConnectionProvider connectionProvider, SQLDialect dialect, Settings settings) DefaultDSLContext
(io.r2dbc.spi.ConnectionFactory connectionFactory, SQLDialect dialect, Settings settings) DefaultDSLContext
(Connection connection, SQLDialect dialect, Settings settings) DefaultDSLContext
(DataSource datasource, SQLDialect dialect, Settings settings) DefaultDSLContext
(ConnectionProvider connectionProvider, SQLDialect dialect, Settings settings) DefaultDSLContext
(SQLDialect dialect, Settings settings) -
Uses of Settings in org.jooq.tools.jdbc
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionMockConfiguration.deriveSettings
(Function<? super Settings, ? extends Settings> newSettings) MockConfiguration.deriveSettings
(Function<? super Settings, ? extends Settings> newSettings)
fetchTriggerValuesAfterReturning
instead.