- java.lang.Object
-
- org.jooq.conf.Settings
-
- All Implemented Interfaces:
Serializable,Cloneable,XMLAppendable
public class Settings extends Object implements Serializable, Cloneable, XMLAppendable
Settings that influence the way jOOQ renders SQL code.- See Also:
- Serialized Form
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Settings()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidappendTo(XMLBuilder builder)Objectclone()booleanequals(Object that)BackslashEscapinggetBackslashEscaping()Whether string literals should be escaped with backslash.IntegergetBatchSize()A property specifying a batch size that should be applied to all automatically createdBatchedConnectioninstances.StringgetDelimiter()[#5826] The delimiter character to be used to delimit statements in batches.ExecuteWithoutWheregetExecuteDeleteWithoutWhere()[#6771] Specifies whether DELETE statements are allowed to be executed lacking a WHERE clause.InvocationOrdergetExecuteListenerEndInvocationOrder()The order of invocation for [action]end() methods registeredExecuteListeners.InvocationOrdergetExecuteListenerStartInvocationOrder()The order of invocation for [action]start() methods registeredExecuteListeners.ExecuteWithoutWheregetExecuteUpdateWithoutWhere()[#6771] Specifies whether UPDATE statements are allowed to be executed lacking a WHERE clause.IntegergetFetchServerOutputSize()Whether server output should be fetched after each query execution.IntegergetFetchSize()The default JDBC fetchSize property that should be applied to all jOOQ queries, for which no specific fetchSize value was specified.IntegergetInlineThreshold()The maximum number of allowed bind variables before inlining all values where0uses the dialect defaults:SQLDialect.ACCESS: 768SQLDialect.ASE: 2000SQLDialect.INGRES: 1024SQLDialect.ORACLE: 32767SQLDialect.POSTGRES: 32767SQLDialect.SQLITE: 999SQLDialect.SQLSERVER: 2100IntegergetInListPadBase()[#7095] The base to use to calculate the powers of when applying in list padding.SQLDialectgetInterpreterDialect()[#7337] The dialect that should be used to interpret SQL DDL statements.LocalegetInterpreterLocale()The Locale to be used with any interpreter locale dependent logic, defaulting togetLocale().InterpreterNameLookupCaseSensitivitygetInterpreterNameLookupCaseSensitivity()[#9633] The case sensitivity of identifiers used when interpreting SQL DDL statements.List<InterpreterSearchSchema>getInterpreterSearchPath()LocalegetLocale()The Locale to be used with any locale dependent logic if there is not a more specific locale available.IntegergetMaxRows()The default JDBC maxRows property that should be applied to all jOOQ queries, for which no specific maxRows value was specified.InvocationOrdergetMigrationListenerEndInvocationOrder()The order of invocation for [action]end() methods registeredMigrationListeners.InvocationOrdergetMigrationListenerStartInvocationOrder()The order of invocation for [action]start() methods registeredMigrationListeners.ParamCastModegetParamCastMode()Whether rendered bind values should be cast to their respective type.ParamTypegetParamType()Specify how bind variables are to be rendered.SQLDialectgetParseDialect()[#7337] The input dialect that should be chosen to disambiguate ambiguous SQL syntax.StringgetParseIgnoreCommentStart()[#8325] The ignore comment start tokenStringgetParseIgnoreCommentStop()[#8325] The ignore comment stop tokenLocalegetParseLocale()The Locale to be used with any parser locale dependent logic, defaulting togetLocale().ParseNameCasegetParseNameCase()[#7337] The default name case for parsed identifiers.List<ParseSearchSchema>getParseSearchPath()ParseUnknownFunctionsgetParseUnknownFunctions()[#7344] Whether the parser should accept unknown functions.ParseUnsupportedSyntaxgetParseUnsupportedSyntax()[#5917] Whether the parser should accept unsupported (but known) syntax.ParseWithMetaLookupsgetParseWithMetaLookups()[#7163] Whether the parser should perform meta lookups in the Configuration's MetaProvider.QueryPoolablegetQueryPoolable()The default JDBC poolable property that should be applied to all jOOQ queries, for which no specific poolable flag was specified.IntegergetQueryTimeout()The default JDBC queryTimeout property that should be applied to all jOOQ queries, for which no specific queryTimeout was specified.InvocationOrdergetRecordListenerEndInvocationOrder()The order of invocation for [action]end() methods registeredRecordListeners.InvocationOrdergetRecordListenerStartInvocationOrder()The order of invocation for [action]start() methods registeredRecordListeners.RenderFormattinggetRenderFormatting()All sorts of formatting flags / settings.RenderImplicitJoinTypegetRenderImplicitJoinType()The join type to be generated by implicit joins.RenderKeywordCasegetRenderKeywordCase()Whether the case ofKeywordreferences should be modified in any way.RenderKeywordStylegetRenderKeywordStyle()Deprecated.- 3.12.0 - [#5909] - UseRenderKeywordCaseinstead.LocalegetRenderLocale()The Locale to be used with any render locale dependent logic (as e.g.RenderMappinggetRenderMapping()Configure render mapping for runtime schema / table rewriting in generated SQL.RenderNameCasegetRenderNameCase()Whether the case ofNamereferences should be modified in any way.StringgetRenderNamedParamPrefix()The prefix to use for named parameters.RenderNameStylegetRenderNameStyle()Deprecated.- 3.12.0 - [#5909] - UseRenderQuotedNamesandRenderNameCaseinstead.RenderOptionalKeywordgetRenderOptionalAsKeywordForFieldAliases()Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect.RenderOptionalKeywordgetRenderOptionalAsKeywordForTableAliases()Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect.RenderOptionalKeywordgetRenderOptionalInnerKeyword()Whether to render the optionalINNERkeyword inINNER JOIN, if it is optional in the output dialect.RenderOptionalKeywordgetRenderOptionalOuterKeyword()Whether to render the optionalOUTERkeyword inOUTER JOIN, if it is optional in the output dialect.RenderQuotedNamesgetRenderQuotedNames()Whether rendered schema, table, column names, etc should be quoted.StatementTypegetStatementType()The type of statement that is to be executed.ThrowExceptionsgetThrowExceptions()A strategy defining how exceptions from the database / JDBC driver should be propagatedInvocationOrdergetTransactionListenerEndInvocationOrder()The order of invocation for [action]end() methods registeredTransactionListeners.InvocationOrdergetTransactionListenerStartInvocationOrder()The order of invocation for [action]start() methods registeredTransactionListeners.TransformUnneededArithmeticExpressionsgetTransformUnneededArithmeticExpressions()Transform arithmetic expressions on literals and bind variables.UpdateUnchangedRecordsgetUpdateUnchangedRecords()WhetherUpdatableRecord.update()calls should be executed if the record is unchanged.InvocationOrdergetVisitListenerEndInvocationOrder()The order of invocation for [action]end() methods registeredVisitListeners.InvocationOrdergetVisitListenerStartInvocationOrder()The order of invocation for [action]start() methods registeredVisitListeners.inthashCode()BooleanisApplyWorkaroundFor7962()[#7963] Apply workaround for ORA-04043 when inserting into Oracle tables with qualified, quoted identifiers, and fetching generated keysBooleanisAttachRecords()Whether fetched records should be attached to the fetching configuration.BooleanisBindOffsetDateTimeType()Whether thejava.time(JSR 310) typeOffsetDateTimeshould be bound natively to JDBC.BooleanisBindOffsetTimeType()Whether thejava.time(JSR 310) typeOffsetTimeshould be bound natively to JDBC.BooleanisCachePreparedStatementInLoader()Whether JDBCPreparedStatementinstances should be cached in loader API.BooleanisCacheRecordMappers()Whether record mappers should be cached in the configuration.BooleanisDebugInfoOnStackTrace()[#5570] Whether exception stack traces should be enhanced with additional debug information.BooleanisEmulateOnDuplicateKeyUpdateOnPrimaryKeyOnly()[#6462] Use only the primary key to emulate MySQL's INSERT ..BooleanisExecuteLogging()When set to true, this will add jOOQ's default logging ExecuteListeners.BooleanisExecuteWithOptimisticLocking()Whether store() and delete() methods should be executed with optimistic locking.BooleanisExecuteWithOptimisticLockingExcludeUnversioned()Whether store() and delete() methods should be executed with optimistic locking also on "unversioned" tables, i.e.BooleanisFetchTriggerValuesAfterSQLServerOutput()Fetch trigger values after SQL ServerOUTPUTclause.BooleanisFetchWarnings()Whether warnings should be fetched after each query execution.BooleanisForceIntegerTypesOnZeroScaleDecimals()Historically, zero-scale decimal types are generated as their most appropriate, corresponding integer type (e.g.BooleanisInListPadding()[#5600] Whether IN lists in IN predicates should be padded to powers of inListPadBase (default 2).BooleanisInsertUnchangedRecords()WhetherTableRecord.insert()calls should be executed if the record is unchanged.BooleanisInterpreterDelayForeignKeyDeclarations()Using this flag, the interpreter will be able to delay the addition of foreign key declarations until the end of the interpretation run.BooleanisMapConstructorParameterNames()Whether constructor parameter names obtained via reflection in Java 8+ should be considered by the DefaultRecordMapper.BooleanisMapConstructorParameterNamesInKotlin()Whether constructor parameter names obtained via reflection in Kotlin should be considered by the DefaultRecordMapper.BooleanisMapJPAAnnotations()Whether JPA annotations should be considered by the DefaultRecordMapper.BooleanisMigrationAllowsUndo()Whether migrations are allowed to be executed in inverse order.BooleanisMigrationAutoValidation()Whether a migration automatically runs a validation first.BooleanisMigrationRevertUntracked()Whether migrations revert any untracked changes in the schemas that are being migrated.BooleanisParseIgnoreComments()[#8325] Whether the parser should ignore content between ignore comment tokens.BooleanisParseSetCommands()[#9780] Whether commands of the typeSET key = valueshould be parsed rather than ignored.BooleanisReflectionCaching()Whether reflection information should be cached in the configuration.BooleanisRenderCatalog()Whether any catalog name should be rendered at all.BooleanisRenderFormatted()Whether rendered SQL should be pretty-printed.BooleanisRenderOrderByRownumberForEmulatedPagination()Whether an additionalORDER BY rnclause should be rendered on emulated paginated queries.BooleanisRenderOutputForSQLServerReturningClause()Whether the jOOQRETURNINGclause should map to SQL Server'sOUTPUTclause.BooleanisRenderParenthesisAroundSetOperationQueries()Whether queries combined with set operators (e.g.BooleanisRenderScalarSubqueriesForStoredFunctions()Whether stored function calls should be wrapped in scalar subqueries.BooleanisRenderSchema()Whether any schema name should be rendered at all.BooleanisReturnAllOnUpdatableRecord()Whether calls to store(), insert() and update() should return all columns, not just identity columns.BooleanisReturnIdentityOnUpdatableRecord()Whether calls to store(), insert() and update() should return the identity column.BooleanisReturnRecordToPojo()Whether calls to store(), insert(), update(), and delete() that are called on an UpdatableRecord that is created from a POJO (e.g.BooleanisTransformAnsiJoinToTableLists()Transform ANSI join to table lists if possible.BooleanisTransformRownum()TransformROWNUMexpressions to correspondingLIMITclauses orROW_NUMBER()expressions.BooleanisTransformTableListsToAnsiJoin()Transform table lists to ANSI join if possible.BooleanisUpdatablePrimaryKeys()Whether primary key values are deemed to be "updatable" in jOOQ.BooleanisUpdateRecordTimestamp()Whether store(), insert(), and update() methods should update the record timestamp prior to the operation, for use withexecuteWithOptimisticLocking.BooleanisUpdateRecordVersion()Whether store(), insert(), and update() methods should update the record version prior to the operation, for use withexecuteWithOptimisticLocking.voidsetApplyWorkaroundFor7962(Boolean value)Sets the value of the applyWorkaroundFor7962 property.voidsetAttachRecords(Boolean value)Sets the value of the attachRecords property.voidsetBackslashEscaping(BackslashEscaping value)Whether string literals should be escaped with backslash.voidsetBatchSize(Integer value)A property specifying a batch size that should be applied to all automatically createdBatchedConnectioninstances.voidsetBindOffsetDateTimeType(Boolean value)Sets the value of the bindOffsetDateTimeType property.voidsetBindOffsetTimeType(Boolean value)Sets the value of the bindOffsetTimeType property.voidsetCachePreparedStatementInLoader(Boolean value)Sets the value of the cachePreparedStatementInLoader property.voidsetCacheRecordMappers(Boolean value)Sets the value of the cacheRecordMappers property.voidsetDebugInfoOnStackTrace(Boolean value)Sets the value of the debugInfoOnStackTrace property.voidsetDelimiter(String value)[#5826] The delimiter character to be used to delimit statements in batches.voidsetEmulateOnDuplicateKeyUpdateOnPrimaryKeyOnly(Boolean value)Sets the value of the emulateOnDuplicateKeyUpdateOnPrimaryKeyOnly property.voidsetExecuteDeleteWithoutWhere(ExecuteWithoutWhere value)[#6771] Specifies whether DELETE statements are allowed to be executed lacking a WHERE clause.voidsetExecuteListenerEndInvocationOrder(InvocationOrder value)The order of invocation for [action]end() methods registeredExecuteListeners.voidsetExecuteListenerStartInvocationOrder(InvocationOrder value)The order of invocation for [action]start() methods registeredExecuteListeners.voidsetExecuteLogging(Boolean value)Sets the value of the executeLogging property.voidsetExecuteUpdateWithoutWhere(ExecuteWithoutWhere value)[#6771] Specifies whether UPDATE statements are allowed to be executed lacking a WHERE clause.voidsetExecuteWithOptimisticLocking(Boolean value)Sets the value of the executeWithOptimisticLocking property.voidsetExecuteWithOptimisticLockingExcludeUnversioned(Boolean value)Sets the value of the executeWithOptimisticLockingExcludeUnversioned property.voidsetFetchServerOutputSize(Integer value)Whether server output should be fetched after each query execution.voidsetFetchSize(Integer value)The default JDBC fetchSize property that should be applied to all jOOQ queries, for which no specific fetchSize value was specified.voidsetFetchTriggerValuesAfterSQLServerOutput(Boolean value)Sets the value of the fetchTriggerValuesAfterSQLServerOutput property.voidsetFetchWarnings(Boolean value)Sets the value of the fetchWarnings property.voidsetForceIntegerTypesOnZeroScaleDecimals(Boolean value)Sets the value of the forceIntegerTypesOnZeroScaleDecimals property.voidsetInlineThreshold(Integer value)The maximum number of allowed bind variables before inlining all values where0uses the dialect defaults:SQLDialect.ACCESS: 768SQLDialect.ASE: 2000SQLDialect.INGRES: 1024SQLDialect.ORACLE: 32767SQLDialect.POSTGRES: 32767SQLDialect.SQLITE: 999SQLDialect.SQLSERVER: 2100voidsetInListPadBase(Integer value)[#7095] The base to use to calculate the powers of when applying in list padding.voidsetInListPadding(Boolean value)Sets the value of the inListPadding property.voidsetInsertUnchangedRecords(Boolean value)Sets the value of the insertUnchangedRecords property.voidsetInterpreterDelayForeignKeyDeclarations(Boolean value)Sets the value of the interpreterDelayForeignKeyDeclarations property.voidsetInterpreterDialect(SQLDialect value)[#7337] The dialect that should be used to interpret SQL DDL statements.voidsetInterpreterLocale(Locale value)The Locale to be used with any interpreter locale dependent logic, defaulting togetLocale().voidsetInterpreterNameLookupCaseSensitivity(InterpreterNameLookupCaseSensitivity value)[#9633] The case sensitivity of identifiers used when interpreting SQL DDL statements.voidsetInterpreterSearchPath(List<InterpreterSearchSchema> interpreterSearchPath)voidsetLocale(Locale value)The Locale to be used with any locale dependent logic if there is not a more specific locale available.voidsetMapConstructorParameterNames(Boolean value)Sets the value of the mapConstructorParameterNames property.voidsetMapConstructorParameterNamesInKotlin(Boolean value)Sets the value of the mapConstructorParameterNamesInKotlin property.voidsetMapJPAAnnotations(Boolean value)Sets the value of the mapJPAAnnotations property.voidsetMaxRows(Integer value)The default JDBC maxRows property that should be applied to all jOOQ queries, for which no specific maxRows value was specified.voidsetMigrationAllowsUndo(Boolean value)Sets the value of the migrationAllowsUndo property.voidsetMigrationAutoValidation(Boolean value)Sets the value of the migrationAutoValidation property.voidsetMigrationListenerEndInvocationOrder(InvocationOrder value)The order of invocation for [action]end() methods registeredMigrationListeners.voidsetMigrationListenerStartInvocationOrder(InvocationOrder value)The order of invocation for [action]start() methods registeredMigrationListeners.voidsetMigrationRevertUntracked(Boolean value)Sets the value of the migrationRevertUntracked property.voidsetParamCastMode(ParamCastMode value)Whether rendered bind values should be cast to their respective type.voidsetParamType(ParamType value)Specify how bind variables are to be rendered.voidsetParseDialect(SQLDialect value)[#7337] The input dialect that should be chosen to disambiguate ambiguous SQL syntax.voidsetParseIgnoreComments(Boolean value)Sets the value of the parseIgnoreComments property.voidsetParseIgnoreCommentStart(String value)[#8325] The ignore comment start tokenvoidsetParseIgnoreCommentStop(String value)[#8325] The ignore comment stop tokenvoidsetParseLocale(Locale value)The Locale to be used with any parser locale dependent logic, defaulting togetLocale().voidsetParseNameCase(ParseNameCase value)[#7337] The default name case for parsed identifiers.voidsetParseSearchPath(List<ParseSearchSchema> parseSearchPath)voidsetParseSetCommands(Boolean value)Sets the value of the parseSetCommands property.voidsetParseUnknownFunctions(ParseUnknownFunctions value)[#7344] Whether the parser should accept unknown functions.voidsetParseUnsupportedSyntax(ParseUnsupportedSyntax value)[#5917] Whether the parser should accept unsupported (but known) syntax.voidsetParseWithMetaLookups(ParseWithMetaLookups value)[#7163] Whether the parser should perform meta lookups in the Configuration's MetaProvider.voidsetQueryPoolable(QueryPoolable value)The default JDBC poolable property that should be applied to all jOOQ queries, for which no specific poolable flag was specified.voidsetQueryTimeout(Integer value)The default JDBC queryTimeout property that should be applied to all jOOQ queries, for which no specific queryTimeout was specified.voidsetRecordListenerEndInvocationOrder(InvocationOrder value)The order of invocation for [action]end() methods registeredRecordListeners.voidsetRecordListenerStartInvocationOrder(InvocationOrder value)The order of invocation for [action]start() methods registeredRecordListeners.voidsetReflectionCaching(Boolean value)Sets the value of the reflectionCaching property.voidsetRenderCatalog(Boolean value)Sets the value of the renderCatalog property.voidsetRenderFormatted(Boolean value)Sets the value of the renderFormatted property.voidsetRenderFormatting(RenderFormatting value)All sorts of formatting flags / settings.voidsetRenderImplicitJoinType(RenderImplicitJoinType value)The join type to be generated by implicit joins.voidsetRenderKeywordCase(RenderKeywordCase value)Whether the case ofKeywordreferences should be modified in any way.voidsetRenderKeywordStyle(RenderKeywordStyle value)Deprecated.- 3.12.0 - [#5909] - UseRenderKeywordCaseinstead.voidsetRenderLocale(Locale value)The Locale to be used with any render locale dependent logic (as e.g.voidsetRenderMapping(RenderMapping value)Configure render mapping for runtime schema / table rewriting in generated SQL.voidsetRenderNameCase(RenderNameCase value)Whether the case ofNamereferences should be modified in any way.voidsetRenderNamedParamPrefix(String value)The prefix to use for named parameters.voidsetRenderNameStyle(RenderNameStyle value)Deprecated.- 3.12.0 - [#5909] - UseRenderQuotedNamesandRenderNameCaseinstead.voidsetRenderOptionalAsKeywordForFieldAliases(RenderOptionalKeyword value)Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect.voidsetRenderOptionalAsKeywordForTableAliases(RenderOptionalKeyword value)Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect.voidsetRenderOptionalInnerKeyword(RenderOptionalKeyword value)Whether to render the optionalINNERkeyword inINNER JOIN, if it is optional in the output dialect.voidsetRenderOptionalOuterKeyword(RenderOptionalKeyword value)Whether to render the optionalOUTERkeyword inOUTER JOIN, if it is optional in the output dialect.voidsetRenderOrderByRownumberForEmulatedPagination(Boolean value)Sets the value of the renderOrderByRownumberForEmulatedPagination property.voidsetRenderOutputForSQLServerReturningClause(Boolean value)Sets the value of the renderOutputForSQLServerReturningClause property.voidsetRenderParenthesisAroundSetOperationQueries(Boolean value)Sets the value of the renderParenthesisAroundSetOperationQueries property.voidsetRenderQuotedNames(RenderQuotedNames value)Whether rendered schema, table, column names, etc should be quoted.voidsetRenderScalarSubqueriesForStoredFunctions(Boolean value)Sets the value of the renderScalarSubqueriesForStoredFunctions property.voidsetRenderSchema(Boolean value)Sets the value of the renderSchema property.voidsetReturnAllOnUpdatableRecord(Boolean value)Sets the value of the returnAllOnUpdatableRecord property.voidsetReturnIdentityOnUpdatableRecord(Boolean value)Sets the value of the returnIdentityOnUpdatableRecord property.voidsetReturnRecordToPojo(Boolean value)Sets the value of the returnRecordToPojo property.voidsetStatementType(StatementType value)The type of statement that is to be executed.voidsetThrowExceptions(ThrowExceptions value)A strategy defining how exceptions from the database / JDBC driver should be propagatedvoidsetTransactionListenerEndInvocationOrder(InvocationOrder value)The order of invocation for [action]end() methods registeredTransactionListeners.voidsetTransactionListenerStartInvocationOrder(InvocationOrder value)The order of invocation for [action]start() methods registeredTransactionListeners.voidsetTransformAnsiJoinToTableLists(Boolean value)Sets the value of the transformAnsiJoinToTableLists property.voidsetTransformRownum(Boolean value)Sets the value of the transformRownum property.voidsetTransformTableListsToAnsiJoin(Boolean value)Sets the value of the transformTableListsToAnsiJoin property.voidsetTransformUnneededArithmeticExpressions(TransformUnneededArithmeticExpressions value)Transform arithmetic expressions on literals and bind variables.voidsetUpdatablePrimaryKeys(Boolean value)Sets the value of the updatablePrimaryKeys property.voidsetUpdateRecordTimestamp(Boolean value)Sets the value of the updateRecordTimestamp property.voidsetUpdateRecordVersion(Boolean value)Sets the value of the updateRecordVersion property.voidsetUpdateUnchangedRecords(UpdateUnchangedRecords value)WhetherUpdatableRecord.update()calls should be executed if the record is unchanged.voidsetVisitListenerEndInvocationOrder(InvocationOrder value)The order of invocation for [action]end() methods registeredVisitListeners.voidsetVisitListenerStartInvocationOrder(InvocationOrder value)The order of invocation for [action]start() methods registeredVisitListeners.StringtoString()SettingswithApplyWorkaroundFor7962(Boolean value)SettingswithAttachRecords(Boolean value)SettingswithBackslashEscaping(BackslashEscaping value)Whether string literals should be escaped with backslash.SettingswithBatchSize(Integer value)A property specifying a batch size that should be applied to all automatically createdBatchedConnectioninstances.SettingswithBindOffsetDateTimeType(Boolean value)SettingswithBindOffsetTimeType(Boolean value)SettingswithCachePreparedStatementInLoader(Boolean value)SettingswithCacheRecordMappers(Boolean value)SettingswithDebugInfoOnStackTrace(Boolean value)SettingswithDelimiter(String value)[#5826] The delimiter character to be used to delimit statements in batches.SettingswithEmulateOnDuplicateKeyUpdateOnPrimaryKeyOnly(Boolean value)SettingswithExecuteDeleteWithoutWhere(ExecuteWithoutWhere value)[#6771] Specifies whether DELETE statements are allowed to be executed lacking a WHERE clause.SettingswithExecuteListenerEndInvocationOrder(InvocationOrder value)The order of invocation for [action]end() methods registeredExecuteListeners.SettingswithExecuteListenerStartInvocationOrder(InvocationOrder value)The order of invocation for [action]start() methods registeredExecuteListeners.SettingswithExecuteLogging(Boolean value)SettingswithExecuteUpdateWithoutWhere(ExecuteWithoutWhere value)[#6771] Specifies whether UPDATE statements are allowed to be executed lacking a WHERE clause.SettingswithExecuteWithOptimisticLocking(Boolean value)SettingswithExecuteWithOptimisticLockingExcludeUnversioned(Boolean value)SettingswithFetchServerOutputSize(Integer value)Whether server output should be fetched after each query execution.SettingswithFetchSize(Integer value)The default JDBC fetchSize property that should be applied to all jOOQ queries, for which no specific fetchSize value was specified.SettingswithFetchTriggerValuesAfterSQLServerOutput(Boolean value)SettingswithFetchWarnings(Boolean value)SettingswithForceIntegerTypesOnZeroScaleDecimals(Boolean value)SettingswithInlineThreshold(Integer value)The maximum number of allowed bind variables before inlining all values where0uses the dialect defaults:SQLDialect.ACCESS: 768SQLDialect.ASE: 2000SQLDialect.INGRES: 1024SQLDialect.ORACLE: 32767SQLDialect.POSTGRES: 32767SQLDialect.SQLITE: 999SQLDialect.SQLSERVER: 2100SettingswithInListPadBase(Integer value)[#7095] The base to use to calculate the powers of when applying in list padding.SettingswithInListPadding(Boolean value)SettingswithInsertUnchangedRecords(Boolean value)SettingswithInterpreterDelayForeignKeyDeclarations(Boolean value)SettingswithInterpreterDialect(SQLDialect value)[#7337] The dialect that should be used to interpret SQL DDL statements.SettingswithInterpreterLocale(Locale value)The Locale to be used with any interpreter locale dependent logic, defaulting togetLocale().SettingswithInterpreterNameLookupCaseSensitivity(InterpreterNameLookupCaseSensitivity value)[#9633] The case sensitivity of identifiers used when interpreting SQL DDL statements.SettingswithInterpreterSearchPath(Collection<InterpreterSearchSchema> values)SettingswithInterpreterSearchPath(List<InterpreterSearchSchema> interpreterSearchPath)SettingswithInterpreterSearchPath(InterpreterSearchSchema... values)SettingswithLocale(Locale value)The Locale to be used with any locale dependent logic if there is not a more specific locale available.SettingswithMapConstructorParameterNames(Boolean value)SettingswithMapConstructorParameterNamesInKotlin(Boolean value)SettingswithMapJPAAnnotations(Boolean value)SettingswithMaxRows(Integer value)The default JDBC maxRows property that should be applied to all jOOQ queries, for which no specific maxRows value was specified.SettingswithMigrationAllowsUndo(Boolean value)SettingswithMigrationAutoValidation(Boolean value)SettingswithMigrationListenerEndInvocationOrder(InvocationOrder value)The order of invocation for [action]end() methods registeredMigrationListeners.SettingswithMigrationListenerStartInvocationOrder(InvocationOrder value)The order of invocation for [action]start() methods registeredMigrationListeners.SettingswithMigrationRevertUntracked(Boolean value)SettingswithParamCastMode(ParamCastMode value)Whether rendered bind values should be cast to their respective type.SettingswithParamType(ParamType value)Specify how bind variables are to be rendered.SettingswithParseDialect(SQLDialect value)[#7337] The input dialect that should be chosen to disambiguate ambiguous SQL syntax.SettingswithParseIgnoreComments(Boolean value)SettingswithParseIgnoreCommentStart(String value)[#8325] The ignore comment start tokenSettingswithParseIgnoreCommentStop(String value)[#8325] The ignore comment stop tokenSettingswithParseLocale(Locale value)The Locale to be used with any parser locale dependent logic, defaulting togetLocale().SettingswithParseNameCase(ParseNameCase value)[#7337] The default name case for parsed identifiers.SettingswithParseSearchPath(Collection<ParseSearchSchema> values)SettingswithParseSearchPath(List<ParseSearchSchema> parseSearchPath)SettingswithParseSearchPath(ParseSearchSchema... values)SettingswithParseSetCommands(Boolean value)SettingswithParseUnknownFunctions(ParseUnknownFunctions value)[#7344] Whether the parser should accept unknown functions.SettingswithParseUnsupportedSyntax(ParseUnsupportedSyntax value)[#5917] Whether the parser should accept unsupported (but known) syntax.SettingswithParseWithMetaLookups(ParseWithMetaLookups value)[#7163] Whether the parser should perform meta lookups in the Configuration's MetaProvider.SettingswithQueryPoolable(QueryPoolable value)The default JDBC poolable property that should be applied to all jOOQ queries, for which no specific poolable flag was specified.SettingswithQueryTimeout(Integer value)The default JDBC queryTimeout property that should be applied to all jOOQ queries, for which no specific queryTimeout was specified.SettingswithRecordListenerEndInvocationOrder(InvocationOrder value)The order of invocation for [action]end() methods registeredRecordListeners.SettingswithRecordListenerStartInvocationOrder(InvocationOrder value)The order of invocation for [action]start() methods registeredRecordListeners.SettingswithReflectionCaching(Boolean value)SettingswithRenderCatalog(Boolean value)SettingswithRenderFormatted(Boolean value)SettingswithRenderFormatting(RenderFormatting value)All sorts of formatting flags / settings.SettingswithRenderImplicitJoinType(RenderImplicitJoinType value)The join type to be generated by implicit joins.SettingswithRenderKeywordCase(RenderKeywordCase value)Whether the case ofKeywordreferences should be modified in any way.SettingswithRenderKeywordStyle(RenderKeywordStyle value)Deprecated.- 3.12.0 - [#5909] - UseRenderKeywordCaseinstead.SettingswithRenderLocale(Locale value)The Locale to be used with any render locale dependent logic (as e.g.SettingswithRenderMapping(RenderMapping value)Configure render mapping for runtime schema / table rewriting in generated SQL.SettingswithRenderNameCase(RenderNameCase value)Whether the case ofNamereferences should be modified in any way.SettingswithRenderNamedParamPrefix(String value)The prefix to use for named parameters.SettingswithRenderNameStyle(RenderNameStyle value)Deprecated.- 3.12.0 - [#5909] - UseRenderQuotedNamesandRenderNameCaseinstead.SettingswithRenderOptionalAsKeywordForFieldAliases(RenderOptionalKeyword value)Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect.SettingswithRenderOptionalAsKeywordForTableAliases(RenderOptionalKeyword value)Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect.SettingswithRenderOptionalInnerKeyword(RenderOptionalKeyword value)Whether to render the optionalINNERkeyword inINNER JOIN, if it is optional in the output dialect.SettingswithRenderOptionalOuterKeyword(RenderOptionalKeyword value)Whether to render the optionalOUTERkeyword inOUTER JOIN, if it is optional in the output dialect.SettingswithRenderOrderByRownumberForEmulatedPagination(Boolean value)SettingswithRenderOutputForSQLServerReturningClause(Boolean value)SettingswithRenderParenthesisAroundSetOperationQueries(Boolean value)SettingswithRenderQuotedNames(RenderQuotedNames value)Whether rendered schema, table, column names, etc should be quoted.SettingswithRenderScalarSubqueriesForStoredFunctions(Boolean value)SettingswithRenderSchema(Boolean value)SettingswithReturnAllOnUpdatableRecord(Boolean value)SettingswithReturnIdentityOnUpdatableRecord(Boolean value)SettingswithReturnRecordToPojo(Boolean value)SettingswithStatementType(StatementType value)The type of statement that is to be executed.SettingswithThrowExceptions(ThrowExceptions value)A strategy defining how exceptions from the database / JDBC driver should be propagatedSettingswithTransactionListenerEndInvocationOrder(InvocationOrder value)The order of invocation for [action]end() methods registeredTransactionListeners.SettingswithTransactionListenerStartInvocationOrder(InvocationOrder value)The order of invocation for [action]start() methods registeredTransactionListeners.SettingswithTransformAnsiJoinToTableLists(Boolean value)SettingswithTransformRownum(Boolean value)SettingswithTransformTableListsToAnsiJoin(Boolean value)SettingswithTransformUnneededArithmeticExpressions(TransformUnneededArithmeticExpressions value)Transform arithmetic expressions on literals and bind variables.SettingswithUpdatablePrimaryKeys(Boolean value)SettingswithUpdateRecordTimestamp(Boolean value)SettingswithUpdateRecordVersion(Boolean value)SettingswithUpdateUnchangedRecords(UpdateUnchangedRecords value)WhetherUpdatableRecord.update()calls should be executed if the record is unchanged.SettingswithVisitListenerEndInvocationOrder(InvocationOrder value)The order of invocation for [action]end() methods registeredVisitListeners.SettingswithVisitListenerStartInvocationOrder(InvocationOrder value)The order of invocation for [action]start() methods registeredVisitListeners.
-
-
-
Field Detail
-
forceIntegerTypesOnZeroScaleDecimals
protected Boolean forceIntegerTypesOnZeroScaleDecimals
-
renderCatalog
protected Boolean renderCatalog
-
renderSchema
protected Boolean renderSchema
-
renderMapping
protected RenderMapping renderMapping
-
renderQuotedNames
protected RenderQuotedNames renderQuotedNames
-
renderNameCase
protected RenderNameCase renderNameCase
-
renderNameStyle
protected RenderNameStyle renderNameStyle
-
renderNamedParamPrefix
protected String renderNamedParamPrefix
-
renderKeywordCase
protected RenderKeywordCase renderKeywordCase
-
renderKeywordStyle
protected RenderKeywordStyle renderKeywordStyle
-
renderLocale
protected Locale renderLocale
-
renderFormatted
protected Boolean renderFormatted
-
renderFormatting
protected RenderFormatting renderFormatting
-
renderOptionalAsKeywordForTableAliases
protected RenderOptionalKeyword renderOptionalAsKeywordForTableAliases
-
renderOptionalAsKeywordForFieldAliases
protected RenderOptionalKeyword renderOptionalAsKeywordForFieldAliases
-
renderOptionalInnerKeyword
protected RenderOptionalKeyword renderOptionalInnerKeyword
-
renderOptionalOuterKeyword
protected RenderOptionalKeyword renderOptionalOuterKeyword
-
renderScalarSubqueriesForStoredFunctions
protected Boolean renderScalarSubqueriesForStoredFunctions
-
renderImplicitJoinType
protected RenderImplicitJoinType renderImplicitJoinType
-
renderOrderByRownumberForEmulatedPagination
protected Boolean renderOrderByRownumberForEmulatedPagination
-
renderOutputForSQLServerReturningClause
protected Boolean renderOutputForSQLServerReturningClause
-
renderParenthesisAroundSetOperationQueries
protected Boolean renderParenthesisAroundSetOperationQueries
-
bindOffsetDateTimeType
protected Boolean bindOffsetDateTimeType
-
bindOffsetTimeType
protected Boolean bindOffsetTimeType
-
fetchTriggerValuesAfterSQLServerOutput
protected Boolean fetchTriggerValuesAfterSQLServerOutput
-
transformAnsiJoinToTableLists
protected Boolean transformAnsiJoinToTableLists
-
transformTableListsToAnsiJoin
protected Boolean transformTableListsToAnsiJoin
-
transformRownum
protected Boolean transformRownum
-
transformUnneededArithmeticExpressions
protected TransformUnneededArithmeticExpressions transformUnneededArithmeticExpressions
-
backslashEscaping
protected BackslashEscaping backslashEscaping
-
paramType
protected ParamType paramType
-
paramCastMode
protected ParamCastMode paramCastMode
-
statementType
protected StatementType statementType
-
inlineThreshold
protected Integer inlineThreshold
-
transactionListenerStartInvocationOrder
protected InvocationOrder transactionListenerStartInvocationOrder
-
transactionListenerEndInvocationOrder
protected InvocationOrder transactionListenerEndInvocationOrder
-
migrationListenerStartInvocationOrder
protected InvocationOrder migrationListenerStartInvocationOrder
-
migrationListenerEndInvocationOrder
protected InvocationOrder migrationListenerEndInvocationOrder
-
visitListenerStartInvocationOrder
protected InvocationOrder visitListenerStartInvocationOrder
-
visitListenerEndInvocationOrder
protected InvocationOrder visitListenerEndInvocationOrder
-
recordListenerStartInvocationOrder
protected InvocationOrder recordListenerStartInvocationOrder
-
recordListenerEndInvocationOrder
protected InvocationOrder recordListenerEndInvocationOrder
-
executeListenerStartInvocationOrder
protected InvocationOrder executeListenerStartInvocationOrder
-
executeListenerEndInvocationOrder
protected InvocationOrder executeListenerEndInvocationOrder
-
executeLogging
protected Boolean executeLogging
-
updateRecordVersion
protected Boolean updateRecordVersion
-
updateRecordTimestamp
protected Boolean updateRecordTimestamp
-
executeWithOptimisticLocking
protected Boolean executeWithOptimisticLocking
-
executeWithOptimisticLockingExcludeUnversioned
protected Boolean executeWithOptimisticLockingExcludeUnversioned
-
attachRecords
protected Boolean attachRecords
-
insertUnchangedRecords
protected Boolean insertUnchangedRecords
-
updateUnchangedRecords
protected UpdateUnchangedRecords updateUnchangedRecords
-
updatablePrimaryKeys
protected Boolean updatablePrimaryKeys
-
reflectionCaching
protected Boolean reflectionCaching
-
cacheRecordMappers
protected Boolean cacheRecordMappers
-
cachePreparedStatementInLoader
protected Boolean cachePreparedStatementInLoader
-
throwExceptions
protected ThrowExceptions throwExceptions
-
fetchWarnings
protected Boolean fetchWarnings
-
fetchServerOutputSize
protected Integer fetchServerOutputSize
-
returnIdentityOnUpdatableRecord
protected Boolean returnIdentityOnUpdatableRecord
-
returnAllOnUpdatableRecord
protected Boolean returnAllOnUpdatableRecord
-
returnRecordToPojo
protected Boolean returnRecordToPojo
-
mapJPAAnnotations
protected Boolean mapJPAAnnotations
-
mapConstructorParameterNames
protected Boolean mapConstructorParameterNames
-
mapConstructorParameterNamesInKotlin
protected Boolean mapConstructorParameterNamesInKotlin
-
queryPoolable
protected QueryPoolable queryPoolable
-
queryTimeout
protected Integer queryTimeout
-
maxRows
protected Integer maxRows
-
fetchSize
protected Integer fetchSize
-
batchSize
protected Integer batchSize
-
debugInfoOnStackTrace
protected Boolean debugInfoOnStackTrace
-
inListPadding
protected Boolean inListPadding
-
inListPadBase
protected Integer inListPadBase
-
delimiter
protected String delimiter
-
emulateOnDuplicateKeyUpdateOnPrimaryKeyOnly
protected Boolean emulateOnDuplicateKeyUpdateOnPrimaryKeyOnly
-
executeUpdateWithoutWhere
protected ExecuteWithoutWhere executeUpdateWithoutWhere
-
executeDeleteWithoutWhere
protected ExecuteWithoutWhere executeDeleteWithoutWhere
-
interpreterDialect
protected SQLDialect interpreterDialect
-
interpreterNameLookupCaseSensitivity
protected InterpreterNameLookupCaseSensitivity interpreterNameLookupCaseSensitivity
-
interpreterLocale
protected Locale interpreterLocale
-
interpreterDelayForeignKeyDeclarations
protected Boolean interpreterDelayForeignKeyDeclarations
-
migrationAllowsUndo
protected Boolean migrationAllowsUndo
-
migrationRevertUntracked
protected Boolean migrationRevertUntracked
-
migrationAutoValidation
protected Boolean migrationAutoValidation
-
locale
protected Locale locale
-
parseDialect
protected SQLDialect parseDialect
-
parseLocale
protected Locale parseLocale
-
parseNameCase
protected ParseNameCase parseNameCase
-
parseWithMetaLookups
protected ParseWithMetaLookups parseWithMetaLookups
-
parseSetCommands
protected Boolean parseSetCommands
-
parseUnsupportedSyntax
protected ParseUnsupportedSyntax parseUnsupportedSyntax
-
parseUnknownFunctions
protected ParseUnknownFunctions parseUnknownFunctions
-
parseIgnoreComments
protected Boolean parseIgnoreComments
-
parseIgnoreCommentStart
protected String parseIgnoreCommentStart
-
parseIgnoreCommentStop
protected String parseIgnoreCommentStop
-
applyWorkaroundFor7962
protected Boolean applyWorkaroundFor7962
-
interpreterSearchPath
protected List<InterpreterSearchSchema> interpreterSearchPath
-
parseSearchPath
protected List<ParseSearchSchema> parseSearchPath
-
-
Method Detail
-
isForceIntegerTypesOnZeroScaleDecimals
public Boolean isForceIntegerTypesOnZeroScaleDecimals()
Historically, zero-scale decimal types are generated as their most appropriate, corresponding integer type (e.g. NUMBER(2, 0) and less: Byte). The same behaviour is replicated in theMetaAPI. This flag allows for turning off this feature.- Returns:
- possible object is
Boolean
-
setForceIntegerTypesOnZeroScaleDecimals
public void setForceIntegerTypesOnZeroScaleDecimals(Boolean value)
Sets the value of the forceIntegerTypesOnZeroScaleDecimals property.- Parameters:
value- allowed object isBoolean
-
isRenderCatalog
public Boolean isRenderCatalog()
Whether any catalog name should be rendered at all.Use this for single-catalog environments, or when all objects are made available using synonyms
- Returns:
- possible object is
Boolean
-
setRenderCatalog
public void setRenderCatalog(Boolean value)
Sets the value of the renderCatalog property.- Parameters:
value- allowed object isBoolean
-
isRenderSchema
public Boolean isRenderSchema()
Whether any schema name should be rendered at all.Setting this to false also implicitly sets "renderCatalog" to false.
Use this for single-schema environments, or when all objects are made available using synonyms
- Returns:
- possible object is
Boolean
-
setRenderSchema
public void setRenderSchema(Boolean value)
Sets the value of the renderSchema property.- Parameters:
value- allowed object isBoolean
-
getRenderMapping
public RenderMapping getRenderMapping()
Configure render mapping for runtime schema / table rewriting in generated SQL.
-
setRenderMapping
public void setRenderMapping(RenderMapping value)
Configure render mapping for runtime schema / table rewriting in generated SQL.
-
getRenderQuotedNames
public RenderQuotedNames getRenderQuotedNames()
Whether rendered schema, table, column names, etc should be quoted.This only affects names created through
DSL.name(String)methods (including those that are implicitly created through this method), notDSL.quotedName(String)orDSL.unquotedName(String), whose behaviour cannot be overridden.This setting does not affect any plain SQL usage.
-
setRenderQuotedNames
public void setRenderQuotedNames(RenderQuotedNames value)
Whether rendered schema, table, column names, etc should be quoted.This only affects names created through
DSL.name(String)methods (including those that are implicitly created through this method), notDSL.quotedName(String)orDSL.unquotedName(String), whose behaviour cannot be overridden.This setting does not affect any plain SQL usage.
-
getRenderNameCase
public RenderNameCase getRenderNameCase()
Whether the case ofNamereferences should be modified in any way.Names are modified irrespective of the
getRenderQuotedNames()setting.This setting does not affect any plain SQL usage.
-
setRenderNameCase
public void setRenderNameCase(RenderNameCase value)
Whether the case ofNamereferences should be modified in any way.Names are modified irrespective of the
getRenderQuotedNames()setting.This setting does not affect any plain SQL usage.
-
getRenderNameStyle
@Deprecated public RenderNameStyle getRenderNameStyle()
Deprecated.- 3.12.0 - [#5909] - UseRenderQuotedNamesandRenderNameCaseinstead.Whether rendered schema, table, column names, etc should be quoted in rendered SQL, or transformed in any other way.This is set to "QUOTED" by default for backwards-compatibility.
-
setRenderNameStyle
@Deprecated public void setRenderNameStyle(RenderNameStyle value)
Deprecated.- 3.12.0 - [#5909] - UseRenderQuotedNamesandRenderNameCaseinstead.Whether rendered schema, table, column names, etc should be quoted in rendered SQL, or transformed in any other way.This is set to "QUOTED" by default for backwards-compatibility.
-
getRenderNamedParamPrefix
public String getRenderNamedParamPrefix()
The prefix to use for named parameters.Named parameter syntax defaults to
:name(such as supported by Oracle, JPA, Spring), but vendor specific parameters may look differently. This flag can be used to determine the prefix to be used by named parameters, such as@for SQL Server's@nameor$for PostgreSQL's$name."Named indexed" parameters can be obtained in the same way by specifingy
ParamType#NAMEDand not providing a name to parameters, resulting in:1or@1or$1, etc.
-
setRenderNamedParamPrefix
public void setRenderNamedParamPrefix(String value)
The prefix to use for named parameters.Named parameter syntax defaults to
:name(such as supported by Oracle, JPA, Spring), but vendor specific parameters may look differently. This flag can be used to determine the prefix to be used by named parameters, such as@for SQL Server's@nameor$for PostgreSQL's$name."Named indexed" parameters can be obtained in the same way by specifingy
ParamType#NAMEDand not providing a name to parameters, resulting in:1or@1or$1, etc.
-
getRenderKeywordCase
public RenderKeywordCase getRenderKeywordCase()
Whether the case ofKeywordreferences should be modified in any way.
-
setRenderKeywordCase
public void setRenderKeywordCase(RenderKeywordCase value)
Whether the case ofKeywordreferences should be modified in any way.
-
getRenderKeywordStyle
@Deprecated public RenderKeywordStyle getRenderKeywordStyle()
Deprecated.- 3.12.0 - [#5909] - UseRenderKeywordCaseinstead.Whether the case ofKeywordreferences should be modified in any way.
-
setRenderKeywordStyle
@Deprecated public void setRenderKeywordStyle(RenderKeywordStyle value)
Deprecated.- 3.12.0 - [#5909] - UseRenderKeywordCaseinstead.Whether the case ofKeywordreferences should be modified in any way.
-
getRenderLocale
public Locale getRenderLocale()
The Locale to be used with any render locale dependent logic (as e.g. transforming names to lower / uppper case), defaulting togetLocale().
-
setRenderLocale
public void setRenderLocale(Locale value)
The Locale to be used with any render locale dependent logic (as e.g. transforming names to lower / uppper case), defaulting togetLocale().
-
isRenderFormatted
public Boolean isRenderFormatted()
Whether rendered SQL should be pretty-printed.- Returns:
- possible object is
Boolean
-
setRenderFormatted
public void setRenderFormatted(Boolean value)
Sets the value of the renderFormatted property.- Parameters:
value- allowed object isBoolean
-
getRenderFormatting
public RenderFormatting getRenderFormatting()
All sorts of formatting flags / settings.
-
setRenderFormatting
public void setRenderFormatting(RenderFormatting value)
All sorts of formatting flags / settings.
-
getRenderOptionalAsKeywordForTableAliases
public RenderOptionalKeyword getRenderOptionalAsKeywordForTableAliases()
Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect. This is ignored if the keyword is not supported (e.g. in Oracle)
-
setRenderOptionalAsKeywordForTableAliases
public void setRenderOptionalAsKeywordForTableAliases(RenderOptionalKeyword value)
Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect. This is ignored if the keyword is not supported (e.g. in Oracle)
-
getRenderOptionalAsKeywordForFieldAliases
public RenderOptionalKeyword getRenderOptionalAsKeywordForFieldAliases()
Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect.
-
setRenderOptionalAsKeywordForFieldAliases
public void setRenderOptionalAsKeywordForFieldAliases(RenderOptionalKeyword value)
Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect.
-
getRenderOptionalInnerKeyword
public RenderOptionalKeyword getRenderOptionalInnerKeyword()
Whether to render the optionalINNERkeyword inINNER JOIN, if it is optional in the output dialect.
-
setRenderOptionalInnerKeyword
public void setRenderOptionalInnerKeyword(RenderOptionalKeyword value)
Whether to render the optionalINNERkeyword inINNER JOIN, if it is optional in the output dialect.
-
getRenderOptionalOuterKeyword
public RenderOptionalKeyword getRenderOptionalOuterKeyword()
Whether to render the optionalOUTERkeyword inOUTER JOIN, if it is optional in the output dialect.
-
setRenderOptionalOuterKeyword
public void setRenderOptionalOuterKeyword(RenderOptionalKeyword value)
Whether to render the optionalOUTERkeyword inOUTER JOIN, if it is optional in the output dialect.
-
isRenderScalarSubqueriesForStoredFunctions
public Boolean isRenderScalarSubqueriesForStoredFunctions()
Whether stored function calls should be wrapped in scalar subqueries.Oracle 11g (and potentially, other databases too) implements scalar subquery caching. With this flag set to true, users can automatically profit from this feature in all SQL statements.
- Returns:
- possible object is
Boolean
-
setRenderScalarSubqueriesForStoredFunctions
public void setRenderScalarSubqueriesForStoredFunctions(Boolean value)
Sets the value of the renderScalarSubqueriesForStoredFunctions property.- Parameters:
value- allowed object isBoolean
-
getRenderImplicitJoinType
public RenderImplicitJoinType getRenderImplicitJoinType()
The join type to be generated by implicit joins.
-
setRenderImplicitJoinType
public void setRenderImplicitJoinType(RenderImplicitJoinType value)
The join type to be generated by implicit joins.
-
isRenderOrderByRownumberForEmulatedPagination
public Boolean isRenderOrderByRownumberForEmulatedPagination()
Whether an additionalORDER BY rnclause should be rendered on emulated paginated queries.Older databases did not support OFFSET .. FETCH pagination, so jOOQ emulates it using derived tables and
ROWNUM(Oracle 11g and older) orROW_NUMBER()(e.g. DB2, SQL Server, etc.) filtering. While these subqueries are ordered, the ordering is not guaranteed to be stable in the outer most queries. It may be stable (and e.g. in Oracle, it mostly is, if queries are not parallel, or joined to other queries, etc.), so the excessORDER BYclause may add some additional performance overhead. This setting forces jOOQ to not generate the additionalORDER BYclause.For details, see https://github.com/jOOQ/jOOQ/issues/7609.
- Returns:
- possible object is
Boolean
-
setRenderOrderByRownumberForEmulatedPagination
public void setRenderOrderByRownumberForEmulatedPagination(Boolean value)
Sets the value of the renderOrderByRownumberForEmulatedPagination property.- Parameters:
value- allowed object isBoolean
-
isRenderOutputForSQLServerReturningClause
public Boolean isRenderOutputForSQLServerReturningClause()
Whether the jOOQRETURNINGclause should map to SQL Server'sOUTPUTclause.SQL Server supports an
OUTPUTclause in most DML statements, whose behaviour is almost identical toRETURNINGin Firebird, Oracle, PostgreSQL. Users who want to prevent jOOQ from rendering thisOUTPUTclause can deactivate this flag to revert to jOOQ callingjava.sql.Statement#getGeneratedKeys()instead, which is only supported for single row inserts.This
OUTPUTclause does not support fetching trigger generated values. In order to fetch trigger generated values,fetchTriggerValuesAfterSQLServerOutputneeds to be enabled as well.For details, see https://github.com/jOOQ/jOOQ/issues/4498.
- Returns:
- possible object is
Boolean
-
setRenderOutputForSQLServerReturningClause
public void setRenderOutputForSQLServerReturningClause(Boolean value)
Sets the value of the renderOutputForSQLServerReturningClause property.- Parameters:
value- allowed object isBoolean
-
isRenderParenthesisAroundSetOperationQueries
public Boolean isRenderParenthesisAroundSetOperationQueries()
Whether queries combined with set operators (e.g. UNION and UNION ALL) should always be surrounded by a parenthesis pair.By default (i.e. when this setting is set to
falsejOOQ will only render parenthesis pairs around queries combined with set operators when required. This is for example the case when set operators are nested, when non-associative operators like EXCEPT are used, or when the queries are rendered as derived tables.When this setting is set to
truethe queries combined with set operators will always be surrounded by a parenthesis pair.For details, see https://github.com/jOOQ/jOOQ/issues/3676 and https://github.com/jOOQ/jOOQ/issues/9751.
- Returns:
- possible object is
Boolean
-
setRenderParenthesisAroundSetOperationQueries
public void setRenderParenthesisAroundSetOperationQueries(Boolean value)
Sets the value of the renderParenthesisAroundSetOperationQueries property.- Parameters:
value- allowed object isBoolean
-
isBindOffsetDateTimeType
public Boolean isBindOffsetDateTimeType()
Whether thejava.time(JSR 310) typeOffsetDateTimeshould be bound natively to JDBC.Historically, jOOQ encoded the
java.timetypes as strings to offer better compatibility with older JDBC drivers. By now, most drivers should support thejava.timetypes. Using them may produce better performance both on the server and on the client side.This flag allows for reverting to pre-jOOQ 3.14 behaviour, where the default is to bind these types natively.
For details, see https://github.com/jOOQ/jOOQ/issues/9902.
- Returns:
- possible object is
Boolean
-
setBindOffsetDateTimeType
public void setBindOffsetDateTimeType(Boolean value)
Sets the value of the bindOffsetDateTimeType property.- Parameters:
value- allowed object isBoolean
-
isBindOffsetTimeType
public Boolean isBindOffsetTimeType()
Whether thejava.time(JSR 310) typeOffsetTimeshould be bound natively to JDBC.Historically, jOOQ encoded the
java.timetypes as strings to offer better compatibility with older JDBC drivers. By now, most drivers should support thejava.timetypes. Using them may produce better performance both on the server and on the client side.This flag allows for reverting to pre-jOOQ 3.14 behaviour, where the default is to bind these types natively.
For details, see https://github.com/jOOQ/jOOQ/issues/9902.
- Returns:
- possible object is
Boolean
-
setBindOffsetTimeType
public void setBindOffsetTimeType(Boolean value)
Sets the value of the bindOffsetTimeType property.- Parameters:
value- allowed object isBoolean
-
isFetchTriggerValuesAfterSQLServerOutput
public Boolean isFetchTriggerValuesAfterSQLServerOutput()
Fetch trigger values after SQL ServerOUTPUTclause.SQL Server
OUTPUTstatements do not support fetching trigger generated values. This is a limitation of therenderOutputForSQLServerReturningClause. An additionalMERGEstatement can run a second query if (and only if) the primary key has been included in theOUTPUTclause.For details, see https://github.com/jOOQ/jOOQ/issues/4498.
- Returns:
- possible object is
Boolean
-
setFetchTriggerValuesAfterSQLServerOutput
public void setFetchTriggerValuesAfterSQLServerOutput(Boolean value)
Sets the value of the fetchTriggerValuesAfterSQLServerOutput property.- Parameters:
value- allowed object isBoolean
-
isTransformAnsiJoinToTableLists
public Boolean isTransformAnsiJoinToTableLists()
Transform ANSI join to table lists if possible.Historically, prior to ANSI join syntax, joins were implemented by listing tables in the FROM clause and providing join predicates in the WHERE clause, possibly using vendor specific operators like
(+)(Oracle, DB2) or*=(SQL Server) for outer join support. For backwards compatibility with older RDBMS versions, ANSI joins in jOOQ code may be converted to equivalent table lists in generated SQL using this flag.This flag has a limited implementation that supports inner joins (in most cases) and outer joins (only for simple comparison predicates).
This feature is available in the commercial distribution only.
- Returns:
- possible object is
Boolean
-
setTransformAnsiJoinToTableLists
public void setTransformAnsiJoinToTableLists(Boolean value)
Sets the value of the transformAnsiJoinToTableLists property.- Parameters:
value- allowed object isBoolean
-
isTransformTableListsToAnsiJoin
public Boolean isTransformTableListsToAnsiJoin()
Transform table lists to ANSI join if possible.(Very) historically, prior to ANSI join syntax, joins were implemented by listing tables in the FROM clause and providing join predicates in the WHERE clause, possibly using vendor specific operators like
(+)(Oracle, DB2) or*=(SQL Server) for outer join support. Migrating such join syntax is tedious. The jOOQ parser can parse the old syntax and this flag enables the transformation to ANSI join syntax.This feature is available in the commercial distribution only.
- Returns:
- possible object is
Boolean
-
setTransformTableListsToAnsiJoin
public void setTransformTableListsToAnsiJoin(Boolean value)
Sets the value of the transformTableListsToAnsiJoin property.- Parameters:
value- allowed object isBoolean
-
isTransformRownum
public Boolean isTransformRownum()
TransformROWNUMexpressions to correspondingLIMITclauses orROW_NUMBER()expressions.In Oracle 11g and less,
ROWNUMfiltering was the most popular way to paginate. This pseudo column is not supported in other RDBMS, and should be replaced in Oracle 12c by the FETCH clause orROW_NUMBER() OVER ()filtering. This transformation allows for replacing such a filter by equivalent SQL, if possible.This feature is available in the commercial distribution only.
- Returns:
- possible object is
Boolean
-
setTransformRownum
public void setTransformRownum(Boolean value)
Sets the value of the transformRownum property.- Parameters:
value- allowed object isBoolean
-
getTransformUnneededArithmeticExpressions
public TransformUnneededArithmeticExpressions getTransformUnneededArithmeticExpressions()
Transform arithmetic expressions on literals and bind variables.Arithmetic expressions may be implemented by the user, or arise from emulations from within jOOQ. Expressions on literals and bind variables could be evaluated in the client prior to generating SQL.
This feature is available in the commercial distribution only.
-
setTransformUnneededArithmeticExpressions
public void setTransformUnneededArithmeticExpressions(TransformUnneededArithmeticExpressions value)
Transform arithmetic expressions on literals and bind variables.Arithmetic expressions may be implemented by the user, or arise from emulations from within jOOQ. Expressions on literals and bind variables could be evaluated in the client prior to generating SQL.
This feature is available in the commercial distribution only.
-
getBackslashEscaping
public BackslashEscaping getBackslashEscaping()
Whether string literals should be escaped with backslash.
-
setBackslashEscaping
public void setBackslashEscaping(BackslashEscaping value)
Whether string literals should be escaped with backslash.
-
getParamType
public ParamType getParamType()
Specify how bind variables are to be rendered.Possibilities include: - question marks - named parameters - named or inlined parameters - inlined parameters This value is overridden by statementType == STATIC_STATEMENT, in case of which, this defaults to INLINED
-
setParamType
public void setParamType(ParamType value)
Specify how bind variables are to be rendered.Possibilities include: - question marks - named parameters - named or inlined parameters - inlined parameters This value is overridden by statementType == STATIC_STATEMENT, in case of which, this defaults to INLINED
-
getParamCastMode
public ParamCastMode getParamCastMode()
Whether rendered bind values should be cast to their respective type.
-
setParamCastMode
public void setParamCastMode(ParamCastMode value)
Whether rendered bind values should be cast to their respective type.
-
getStatementType
public StatementType getStatementType()
The type of statement that is to be executed.
-
setStatementType
public void setStatementType(StatementType value)
The type of statement that is to be executed.
-
getInlineThreshold
public Integer getInlineThreshold()
The maximum number of allowed bind variables before inlining all values where0uses the dialect defaults:SQLDialect.ACCESS: 768SQLDialect.ASE: 2000SQLDialect.INGRES: 1024SQLDialect.ORACLE: 32767SQLDialect.POSTGRES: 32767SQLDialect.SQLITE: 999SQLDialect.SQLSERVER: 2100
-
setInlineThreshold
public void setInlineThreshold(Integer value)
The maximum number of allowed bind variables before inlining all values where0uses the dialect defaults:SQLDialect.ACCESS: 768SQLDialect.ASE: 2000SQLDialect.INGRES: 1024SQLDialect.ORACLE: 32767SQLDialect.POSTGRES: 32767SQLDialect.SQLITE: 999SQLDialect.SQLSERVER: 2100
-
getTransactionListenerStartInvocationOrder
public InvocationOrder getTransactionListenerStartInvocationOrder()
The order of invocation for [action]start() methods registeredTransactionListeners.
-
setTransactionListenerStartInvocationOrder
public void setTransactionListenerStartInvocationOrder(InvocationOrder value)
The order of invocation for [action]start() methods registeredTransactionListeners.
-
getTransactionListenerEndInvocationOrder
public InvocationOrder getTransactionListenerEndInvocationOrder()
The order of invocation for [action]end() methods registeredTransactionListeners.
-
setTransactionListenerEndInvocationOrder
public void setTransactionListenerEndInvocationOrder(InvocationOrder value)
The order of invocation for [action]end() methods registeredTransactionListeners.
-
getMigrationListenerStartInvocationOrder
public InvocationOrder getMigrationListenerStartInvocationOrder()
The order of invocation for [action]start() methods registeredMigrationListeners.
-
setMigrationListenerStartInvocationOrder
public void setMigrationListenerStartInvocationOrder(InvocationOrder value)
The order of invocation for [action]start() methods registeredMigrationListeners.
-
getMigrationListenerEndInvocationOrder
public InvocationOrder getMigrationListenerEndInvocationOrder()
The order of invocation for [action]end() methods registeredMigrationListeners.
-
setMigrationListenerEndInvocationOrder
public void setMigrationListenerEndInvocationOrder(InvocationOrder value)
The order of invocation for [action]end() methods registeredMigrationListeners.
-
getVisitListenerStartInvocationOrder
public InvocationOrder getVisitListenerStartInvocationOrder()
The order of invocation for [action]start() methods registeredVisitListeners.
-
setVisitListenerStartInvocationOrder
public void setVisitListenerStartInvocationOrder(InvocationOrder value)
The order of invocation for [action]start() methods registeredVisitListeners.
-
getVisitListenerEndInvocationOrder
public InvocationOrder getVisitListenerEndInvocationOrder()
The order of invocation for [action]end() methods registeredVisitListeners.
-
setVisitListenerEndInvocationOrder
public void setVisitListenerEndInvocationOrder(InvocationOrder value)
The order of invocation for [action]end() methods registeredVisitListeners.
-
getRecordListenerStartInvocationOrder
public InvocationOrder getRecordListenerStartInvocationOrder()
The order of invocation for [action]start() methods registeredRecordListeners.
-
setRecordListenerStartInvocationOrder
public void setRecordListenerStartInvocationOrder(InvocationOrder value)
The order of invocation for [action]start() methods registeredRecordListeners.
-
getRecordListenerEndInvocationOrder
public InvocationOrder getRecordListenerEndInvocationOrder()
The order of invocation for [action]end() methods registeredRecordListeners.
-
setRecordListenerEndInvocationOrder
public void setRecordListenerEndInvocationOrder(InvocationOrder value)
The order of invocation for [action]end() methods registeredRecordListeners.
-
getExecuteListenerStartInvocationOrder
public InvocationOrder getExecuteListenerStartInvocationOrder()
The order of invocation for [action]start() methods registeredExecuteListeners.
-
setExecuteListenerStartInvocationOrder
public void setExecuteListenerStartInvocationOrder(InvocationOrder value)
The order of invocation for [action]start() methods registeredExecuteListeners.
-
getExecuteListenerEndInvocationOrder
public InvocationOrder getExecuteListenerEndInvocationOrder()
The order of invocation for [action]end() methods registeredExecuteListeners.
-
setExecuteListenerEndInvocationOrder
public void setExecuteListenerEndInvocationOrder(InvocationOrder value)
The order of invocation for [action]end() methods registeredExecuteListeners.
-
isExecuteLogging
public Boolean isExecuteLogging()
When set to true, this will add jOOQ's default logging ExecuteListeners.- Returns:
- possible object is
Boolean
-
setExecuteLogging
public void setExecuteLogging(Boolean value)
Sets the value of the executeLogging property.- Parameters:
value- allowed object isBoolean
-
isUpdateRecordVersion
public Boolean isUpdateRecordVersion()
Whether store(), insert(), and update() methods should update the record version prior to the operation, for use withexecuteWithOptimisticLocking.- Returns:
- possible object is
Boolean
-
setUpdateRecordVersion
public void setUpdateRecordVersion(Boolean value)
Sets the value of the updateRecordVersion property.- Parameters:
value- allowed object isBoolean
-
isUpdateRecordTimestamp
public Boolean isUpdateRecordTimestamp()
Whether store(), insert(), and update() methods should update the record timestamp prior to the operation, for use withexecuteWithOptimisticLocking.- Returns:
- possible object is
Boolean
-
setUpdateRecordTimestamp
public void setUpdateRecordTimestamp(Boolean value)
Sets the value of the updateRecordTimestamp property.- Parameters:
value- allowed object isBoolean
-
isExecuteWithOptimisticLocking
public Boolean isExecuteWithOptimisticLocking()
Whether store() and delete() methods should be executed with optimistic locking.- Returns:
- possible object is
Boolean
-
setExecuteWithOptimisticLocking
public void setExecuteWithOptimisticLocking(Boolean value)
Sets the value of the executeWithOptimisticLocking property.- Parameters:
value- allowed object isBoolean
-
isExecuteWithOptimisticLockingExcludeUnversioned
public Boolean isExecuteWithOptimisticLockingExcludeUnversioned()
Whether store() and delete() methods should be executed with optimistic locking also on "unversioned" tables, i.e. on tables that do not have a version and/or timestamp column.This flag has no effect when "executeWithOptimisticLocking" is turned off.
- Returns:
- possible object is
Boolean
-
setExecuteWithOptimisticLockingExcludeUnversioned
public void setExecuteWithOptimisticLockingExcludeUnversioned(Boolean value)
Sets the value of the executeWithOptimisticLockingExcludeUnversioned property.- Parameters:
value- allowed object isBoolean
-
isAttachRecords
public Boolean isAttachRecords()
Whether fetched records should be attached to the fetching configuration.- Returns:
- possible object is
Boolean
-
setAttachRecords
public void setAttachRecords(Boolean value)
Sets the value of the attachRecords property.- Parameters:
value- allowed object isBoolean
-
isInsertUnchangedRecords
public Boolean isInsertUnchangedRecords()
WhetherTableRecord.insert()calls should be executed if the record is unchanged. This also affects theINSERTpart ofUpdatableRecord.store()andUpdatableRecord.merge()calls.- Returns:
- possible object is
Boolean
-
setInsertUnchangedRecords
public void setInsertUnchangedRecords(Boolean value)
Sets the value of the insertUnchangedRecords property.- Parameters:
value- allowed object isBoolean
-
getUpdateUnchangedRecords
public UpdateUnchangedRecords getUpdateUnchangedRecords()
WhetherUpdatableRecord.update()calls should be executed if the record is unchanged. This also affects theUPDATEpart ofUpdatableRecord.store()andUpdatableRecord.merge()calls.
-
setUpdateUnchangedRecords
public void setUpdateUnchangedRecords(UpdateUnchangedRecords value)
WhetherUpdatableRecord.update()calls should be executed if the record is unchanged. This also affects theUPDATEpart ofUpdatableRecord.store()andUpdatableRecord.merge()calls.
-
isUpdatablePrimaryKeys
public Boolean isUpdatablePrimaryKeys()
Whether primary key values are deemed to be "updatable" in jOOQ.Setting this to "true" will allow for updating primary key values through UpdatableRecord.store() and UpdatableRecord.update().
- Returns:
- possible object is
Boolean
-
setUpdatablePrimaryKeys
public void setUpdatablePrimaryKeys(Boolean value)
Sets the value of the updatablePrimaryKeys property.- Parameters:
value- allowed object isBoolean
-
isReflectionCaching
public Boolean isReflectionCaching()
Whether reflection information should be cached in the configuration.- Returns:
- possible object is
Boolean
-
setReflectionCaching
public void setReflectionCaching(Boolean value)
Sets the value of the reflectionCaching property.- Parameters:
value- allowed object isBoolean
-
isCacheRecordMappers
public Boolean isCacheRecordMappers()
Whether record mappers should be cached in the configuration.- Returns:
- possible object is
Boolean
-
setCacheRecordMappers
public void setCacheRecordMappers(Boolean value)
Sets the value of the cacheRecordMappers property.- Parameters:
value- allowed object isBoolean
-
isCachePreparedStatementInLoader
public Boolean isCachePreparedStatementInLoader()
Whether JDBCPreparedStatementinstances should be cached in loader API.- Returns:
- possible object is
Boolean
-
setCachePreparedStatementInLoader
public void setCachePreparedStatementInLoader(Boolean value)
Sets the value of the cachePreparedStatementInLoader property.- Parameters:
value- allowed object isBoolean
-
getThrowExceptions
public ThrowExceptions getThrowExceptions()
A strategy defining how exceptions from the database / JDBC driver should be propagated
-
setThrowExceptions
public void setThrowExceptions(ThrowExceptions value)
A strategy defining how exceptions from the database / JDBC driver should be propagated
-
isFetchWarnings
public Boolean isFetchWarnings()
Whether warnings should be fetched after each query execution.- Returns:
- possible object is
Boolean
-
setFetchWarnings
public void setFetchWarnings(Boolean value)
Sets the value of the fetchWarnings property.- Parameters:
value- allowed object isBoolean
-
getFetchServerOutputSize
public Integer getFetchServerOutputSize()
Whether server output should be fetched after each query execution.
-
setFetchServerOutputSize
public void setFetchServerOutputSize(Integer value)
Whether server output should be fetched after each query execution.
-
isReturnIdentityOnUpdatableRecord
public Boolean isReturnIdentityOnUpdatableRecord()
Whether calls to store(), insert() and update() should return the identity column.- Returns:
- possible object is
Boolean
-
setReturnIdentityOnUpdatableRecord
public void setReturnIdentityOnUpdatableRecord(Boolean value)
Sets the value of the returnIdentityOnUpdatableRecord property.- Parameters:
value- allowed object isBoolean
-
isReturnAllOnUpdatableRecord
public Boolean isReturnAllOnUpdatableRecord()
Whether calls to store(), insert() and update() should return all columns, not just identity columns.Do note that only few databases support this feature. It is supported only in case the INSERT's or UPDATE's RETURNING clause is fully supported, also for non-IDENTITY columns.
- Returns:
- possible object is
Boolean
-
setReturnAllOnUpdatableRecord
public void setReturnAllOnUpdatableRecord(Boolean value)
Sets the value of the returnAllOnUpdatableRecord property.- Parameters:
value- allowed object isBoolean
-
isReturnRecordToPojo
public Boolean isReturnRecordToPojo()
Whether calls to store(), insert(), update(), and delete() that are called on an UpdatableRecord that is created from a POJO (e.g. in a DAO) should return all Record values to the POJO, including IDENTITY values, and ifis active, also other values. - Returns:
- possible object is
Boolean
-
setReturnRecordToPojo
public void setReturnRecordToPojo(Boolean value)
Sets the value of the returnRecordToPojo property.- Parameters:
value- allowed object isBoolean
-
isMapJPAAnnotations
public Boolean isMapJPAAnnotations()
Whether JPA annotations should be considered by the DefaultRecordMapper.- Returns:
- possible object is
Boolean
-
setMapJPAAnnotations
public void setMapJPAAnnotations(Boolean value)
Sets the value of the mapJPAAnnotations property.- Parameters:
value- allowed object isBoolean
-
isMapConstructorParameterNames
public Boolean isMapConstructorParameterNames()
Whether constructor parameter names obtained via reflection in Java 8+ should be considered by the DefaultRecordMapper. This flag has no effect in Java 6 or 7.- Returns:
- possible object is
Boolean
-
setMapConstructorParameterNames
public void setMapConstructorParameterNames(Boolean value)
Sets the value of the mapConstructorParameterNames property.- Parameters:
value- allowed object isBoolean
-
isMapConstructorParameterNamesInKotlin
public Boolean isMapConstructorParameterNamesInKotlin()
Whether constructor parameter names obtained via reflection in Kotlin should be considered by the DefaultRecordMapper. This flag has no effect in Java.- Returns:
- possible object is
Boolean
-
setMapConstructorParameterNamesInKotlin
public void setMapConstructorParameterNamesInKotlin(Boolean value)
Sets the value of the mapConstructorParameterNamesInKotlin property.- Parameters:
value- allowed object isBoolean
-
getQueryPoolable
public QueryPoolable getQueryPoolable()
The default JDBC poolable property that should be applied to all jOOQ queries, for which no specific poolable flag was specified.
-
setQueryPoolable
public void setQueryPoolable(QueryPoolable value)
The default JDBC poolable property that should be applied to all jOOQ queries, for which no specific poolable flag was specified.
-
getQueryTimeout
public Integer getQueryTimeout()
The default JDBC queryTimeout property that should be applied to all jOOQ queries, for which no specific queryTimeout was specified.
-
setQueryTimeout
public void setQueryTimeout(Integer value)
The default JDBC queryTimeout property that should be applied to all jOOQ queries, for which no specific queryTimeout was specified.
-
getMaxRows
public Integer getMaxRows()
The default JDBC maxRows property that should be applied to all jOOQ queries, for which no specific maxRows value was specified.
-
setMaxRows
public void setMaxRows(Integer value)
The default JDBC maxRows property that should be applied to all jOOQ queries, for which no specific maxRows value was specified.
-
getFetchSize
public Integer getFetchSize()
The default JDBC fetchSize property that should be applied to all jOOQ queries, for which no specific fetchSize value was specified.
-
setFetchSize
public void setFetchSize(Integer value)
The default JDBC fetchSize property that should be applied to all jOOQ queries, for which no specific fetchSize value was specified.
-
getBatchSize
public Integer getBatchSize()
A property specifying a batch size that should be applied to all automatically createdBatchedConnectioninstances.
-
setBatchSize
public void setBatchSize(Integer value)
A property specifying a batch size that should be applied to all automatically createdBatchedConnectioninstances.
-
isDebugInfoOnStackTrace
public Boolean isDebugInfoOnStackTrace()
[#5570] Whether exception stack traces should be enhanced with additional debug information.- Returns:
- possible object is
Boolean
-
setDebugInfoOnStackTrace
public void setDebugInfoOnStackTrace(Boolean value)
Sets the value of the debugInfoOnStackTrace property.- Parameters:
value- allowed object isBoolean
-
isInListPadding
public Boolean isInListPadding()
[#5600] Whether IN lists in IN predicates should be padded to powers of inListPadBase (default 2).- Returns:
- possible object is
Boolean
-
setInListPadding
public void setInListPadding(Boolean value)
Sets the value of the inListPadding property.- Parameters:
value- allowed object isBoolean
-
getInListPadBase
public Integer getInListPadBase()
[#7095] The base to use to calculate the powers of when applying in list padding.
-
setInListPadBase
public void setInListPadBase(Integer value)
[#7095] The base to use to calculate the powers of when applying in list padding.
-
getDelimiter
public String getDelimiter()
[#5826] The delimiter character to be used to delimit statements in batches.
-
setDelimiter
public void setDelimiter(String value)
[#5826] The delimiter character to be used to delimit statements in batches.
-
isEmulateOnDuplicateKeyUpdateOnPrimaryKeyOnly
public Boolean isEmulateOnDuplicateKeyUpdateOnPrimaryKeyOnly()
[#6462] Use only the primary key to emulate MySQL's INSERT .. ON DUPLICATE KEY UPDATE statement. In MySQL, the statement considers all unique keys for duplicates to apply an update rather than an insert. Earlier versions of jOOQ considered only the PRIMARY KEY. This flag can be turned on to maintain backwards compatibility.- Returns:
- possible object is
Boolean
-
setEmulateOnDuplicateKeyUpdateOnPrimaryKeyOnly
public void setEmulateOnDuplicateKeyUpdateOnPrimaryKeyOnly(Boolean value)
Sets the value of the emulateOnDuplicateKeyUpdateOnPrimaryKeyOnly property.- Parameters:
value- allowed object isBoolean
-
getExecuteUpdateWithoutWhere
public ExecuteWithoutWhere getExecuteUpdateWithoutWhere()
[#6771] Specifies whether UPDATE statements are allowed to be executed lacking a WHERE clause. This has no effect on rendering the statements SQL string.
-
setExecuteUpdateWithoutWhere
public void setExecuteUpdateWithoutWhere(ExecuteWithoutWhere value)
[#6771] Specifies whether UPDATE statements are allowed to be executed lacking a WHERE clause. This has no effect on rendering the statements SQL string.
-
getExecuteDeleteWithoutWhere
public ExecuteWithoutWhere getExecuteDeleteWithoutWhere()
[#6771] Specifies whether DELETE statements are allowed to be executed lacking a WHERE clause. This has no effect on rendering the statements SQL string.
-
setExecuteDeleteWithoutWhere
public void setExecuteDeleteWithoutWhere(ExecuteWithoutWhere value)
[#6771] Specifies whether DELETE statements are allowed to be executed lacking a WHERE clause. This has no effect on rendering the statements SQL string.
-
getInterpreterDialect
public SQLDialect getInterpreterDialect()
[#7337] The dialect that should be used to interpret SQL DDL statements.SQLDialect.DEFAULTmeans that jOOQ interprets the SQL itself. Any other dialect (if supported) will be interpreted on an actual JDBC connection.
-
setInterpreterDialect
public void setInterpreterDialect(SQLDialect value)
[#7337] The dialect that should be used to interpret SQL DDL statements.SQLDialect.DEFAULTmeans that jOOQ interprets the SQL itself. Any other dialect (if supported) will be interpreted on an actual JDBC connection.
-
getInterpreterNameLookupCaseSensitivity
public InterpreterNameLookupCaseSensitivity getInterpreterNameLookupCaseSensitivity()
[#9633] The case sensitivity of identifiers used when interpreting SQL DDL statements.
-
setInterpreterNameLookupCaseSensitivity
public void setInterpreterNameLookupCaseSensitivity(InterpreterNameLookupCaseSensitivity value)
[#9633] The case sensitivity of identifiers used when interpreting SQL DDL statements.
-
getInterpreterLocale
public Locale getInterpreterLocale()
The Locale to be used with any interpreter locale dependent logic, defaulting togetLocale().
-
setInterpreterLocale
public void setInterpreterLocale(Locale value)
The Locale to be used with any interpreter locale dependent logic, defaulting togetLocale().
-
isInterpreterDelayForeignKeyDeclarations
public Boolean isInterpreterDelayForeignKeyDeclarations()
Using this flag, the interpreter will be able to delay the addition of foreign key declarations until the end of the interpretation run.- Returns:
- possible object is
Boolean
-
setInterpreterDelayForeignKeyDeclarations
public void setInterpreterDelayForeignKeyDeclarations(Boolean value)
Sets the value of the interpreterDelayForeignKeyDeclarations property.- Parameters:
value- allowed object isBoolean
-
isMigrationAllowsUndo
public Boolean isMigrationAllowsUndo()
Whether migrations are allowed to be executed in inverse order.This is a potentially destructive feature, which should not be turned on in production. It is useful mostly to quickly switch between branches in a development environment. This feature is available only in commercial distributions.
- Returns:
- possible object is
Boolean
-
setMigrationAllowsUndo
public void setMigrationAllowsUndo(Boolean value)
Sets the value of the migrationAllowsUndo property.- Parameters:
value- allowed object isBoolean
-
isMigrationRevertUntracked
public Boolean isMigrationRevertUntracked()
Whether migrations revert any untracked changes in the schemas that are being migrated.This is a potentially destructive feature, which should not be turned on in production. It is useful mostly to quickly revert any elements created in a development environment. This feature is available only in commercial distributions.
- Returns:
- possible object is
Boolean
-
setMigrationRevertUntracked
public void setMigrationRevertUntracked(Boolean value)
Sets the value of the migrationRevertUntracked property.- Parameters:
value- allowed object isBoolean
-
isMigrationAutoValidation
public Boolean isMigrationAutoValidation()
Whether a migration automatically runs a validation first.- Returns:
- possible object is
Boolean
-
setMigrationAutoValidation
public void setMigrationAutoValidation(Boolean value)
Sets the value of the migrationAutoValidation property.- Parameters:
value- allowed object isBoolean
-
getLocale
public Locale getLocale()
The Locale to be used with any locale dependent logic if there is not a more specific locale available. More specific locales include e.g.getRenderLocale(),getParseLocale(), orgetInterpreterLocale().
-
setLocale
public void setLocale(Locale value)
The Locale to be used with any locale dependent logic if there is not a more specific locale available. More specific locales include e.g.getRenderLocale(),getParseLocale(), orgetInterpreterLocale().
-
getParseDialect
public SQLDialect getParseDialect()
[#7337] The input dialect that should be chosen to disambiguate ambiguous SQL syntax.
-
setParseDialect
public void setParseDialect(SQLDialect value)
[#7337] The input dialect that should be chosen to disambiguate ambiguous SQL syntax.
-
getParseLocale
public Locale getParseLocale()
The Locale to be used with any parser locale dependent logic, defaulting togetLocale().
-
setParseLocale
public void setParseLocale(Locale value)
The Locale to be used with any parser locale dependent logic, defaulting togetLocale().
-
getParseNameCase
public ParseNameCase getParseNameCase()
[#7337] The default name case for parsed identifiers.
-
setParseNameCase
public void setParseNameCase(ParseNameCase value)
[#7337] The default name case for parsed identifiers.
-
getParseWithMetaLookups
public ParseWithMetaLookups getParseWithMetaLookups()
[#7163] Whether the parser should perform meta lookups in the Configuration's MetaProvider.
-
setParseWithMetaLookups
public void setParseWithMetaLookups(ParseWithMetaLookups value)
[#7163] Whether the parser should perform meta lookups in the Configuration's MetaProvider.
-
isParseSetCommands
public Boolean isParseSetCommands()
[#9780] Whether commands of the typeSET key = valueshould be parsed rather than ignored.- Returns:
- possible object is
Boolean
-
setParseSetCommands
public void setParseSetCommands(Boolean value)
Sets the value of the parseSetCommands property.- Parameters:
value- allowed object isBoolean
-
getParseUnsupportedSyntax
public ParseUnsupportedSyntax getParseUnsupportedSyntax()
[#5917] Whether the parser should accept unsupported (but known) syntax.
-
setParseUnsupportedSyntax
public void setParseUnsupportedSyntax(ParseUnsupportedSyntax value)
[#5917] Whether the parser should accept unsupported (but known) syntax.
-
getParseUnknownFunctions
public ParseUnknownFunctions getParseUnknownFunctions()
[#7344] Whether the parser should accept unknown functions.
-
setParseUnknownFunctions
public void setParseUnknownFunctions(ParseUnknownFunctions value)
[#7344] Whether the parser should accept unknown functions.
-
isParseIgnoreComments
public Boolean isParseIgnoreComments()
[#8325] Whether the parser should ignore content between ignore comment tokens.- Returns:
- possible object is
Boolean
-
setParseIgnoreComments
public void setParseIgnoreComments(Boolean value)
Sets the value of the parseIgnoreComments property.- Parameters:
value- allowed object isBoolean
-
getParseIgnoreCommentStart
public String getParseIgnoreCommentStart()
[#8325] The ignore comment start token
-
setParseIgnoreCommentStart
public void setParseIgnoreCommentStart(String value)
[#8325] The ignore comment start token
-
getParseIgnoreCommentStop
public String getParseIgnoreCommentStop()
[#8325] The ignore comment stop token
-
setParseIgnoreCommentStop
public void setParseIgnoreCommentStop(String value)
[#8325] The ignore comment stop token
-
isApplyWorkaroundFor7962
public Boolean isApplyWorkaroundFor7962()
[#7963] Apply workaround for ORA-04043 when inserting into Oracle tables with qualified, quoted identifiers, and fetching generated keys- Returns:
- possible object is
Boolean
-
setApplyWorkaroundFor7962
public void setApplyWorkaroundFor7962(Boolean value)
Sets the value of the applyWorkaroundFor7962 property.- Parameters:
value- allowed object isBoolean
-
getInterpreterSearchPath
public List<InterpreterSearchSchema> getInterpreterSearchPath()
-
setInterpreterSearchPath
public void setInterpreterSearchPath(List<InterpreterSearchSchema> interpreterSearchPath)
-
getParseSearchPath
public List<ParseSearchSchema> getParseSearchPath()
-
setParseSearchPath
public void setParseSearchPath(List<ParseSearchSchema> parseSearchPath)
-
withForceIntegerTypesOnZeroScaleDecimals
public Settings withForceIntegerTypesOnZeroScaleDecimals(Boolean value)
-
withRenderMapping
public Settings withRenderMapping(RenderMapping value)
Configure render mapping for runtime schema / table rewriting in generated SQL.
-
withRenderQuotedNames
public Settings withRenderQuotedNames(RenderQuotedNames value)
Whether rendered schema, table, column names, etc should be quoted.This only affects names created through
DSL.name(String)methods (including those that are implicitly created through this method), notDSL.quotedName(String)orDSL.unquotedName(String), whose behaviour cannot be overridden.This setting does not affect any plain SQL usage.
-
withRenderNameCase
public Settings withRenderNameCase(RenderNameCase value)
Whether the case ofNamereferences should be modified in any way.Names are modified irrespective of the
getRenderQuotedNames()setting.This setting does not affect any plain SQL usage.
-
withRenderNameStyle
@Deprecated public Settings withRenderNameStyle(RenderNameStyle value)
Deprecated.- 3.12.0 - [#5909] - UseRenderQuotedNamesandRenderNameCaseinstead.Whether rendered schema, table, column names, etc should be quoted in rendered SQL, or transformed in any other way.This is set to "QUOTED" by default for backwards-compatibility.
-
withRenderNamedParamPrefix
public Settings withRenderNamedParamPrefix(String value)
The prefix to use for named parameters.Named parameter syntax defaults to
:name(such as supported by Oracle, JPA, Spring), but vendor specific parameters may look differently. This flag can be used to determine the prefix to be used by named parameters, such as@for SQL Server's@nameor$for PostgreSQL's$name."Named indexed" parameters can be obtained in the same way by specifingy
ParamType#NAMEDand not providing a name to parameters, resulting in:1or@1or$1, etc.
-
withRenderKeywordCase
public Settings withRenderKeywordCase(RenderKeywordCase value)
Whether the case ofKeywordreferences should be modified in any way.
-
withRenderKeywordStyle
@Deprecated public Settings withRenderKeywordStyle(RenderKeywordStyle value)
Deprecated.- 3.12.0 - [#5909] - UseRenderKeywordCaseinstead.Whether the case ofKeywordreferences should be modified in any way.
-
withRenderLocale
public Settings withRenderLocale(Locale value)
The Locale to be used with any render locale dependent logic (as e.g. transforming names to lower / uppper case), defaulting togetLocale().
-
withRenderFormatting
public Settings withRenderFormatting(RenderFormatting value)
All sorts of formatting flags / settings.
-
withRenderOptionalAsKeywordForTableAliases
public Settings withRenderOptionalAsKeywordForTableAliases(RenderOptionalKeyword value)
Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect. This is ignored if the keyword is not supported (e.g. in Oracle)
-
withRenderOptionalAsKeywordForFieldAliases
public Settings withRenderOptionalAsKeywordForFieldAliases(RenderOptionalKeyword value)
Whether to render the optionalASkeyword in table aliases, if it is optional in the output dialect.
-
withRenderOptionalInnerKeyword
public Settings withRenderOptionalInnerKeyword(RenderOptionalKeyword value)
Whether to render the optionalINNERkeyword inINNER JOIN, if it is optional in the output dialect.
-
withRenderOptionalOuterKeyword
public Settings withRenderOptionalOuterKeyword(RenderOptionalKeyword value)
Whether to render the optionalOUTERkeyword inOUTER JOIN, if it is optional in the output dialect.
-
withRenderScalarSubqueriesForStoredFunctions
public Settings withRenderScalarSubqueriesForStoredFunctions(Boolean value)
-
withRenderImplicitJoinType
public Settings withRenderImplicitJoinType(RenderImplicitJoinType value)
The join type to be generated by implicit joins.
-
withRenderOrderByRownumberForEmulatedPagination
public Settings withRenderOrderByRownumberForEmulatedPagination(Boolean value)
-
withRenderOutputForSQLServerReturningClause
public Settings withRenderOutputForSQLServerReturningClause(Boolean value)
-
withRenderParenthesisAroundSetOperationQueries
public Settings withRenderParenthesisAroundSetOperationQueries(Boolean value)
-
withFetchTriggerValuesAfterSQLServerOutput
public Settings withFetchTriggerValuesAfterSQLServerOutput(Boolean value)
-
withTransformUnneededArithmeticExpressions
public Settings withTransformUnneededArithmeticExpressions(TransformUnneededArithmeticExpressions value)
Transform arithmetic expressions on literals and bind variables.Arithmetic expressions may be implemented by the user, or arise from emulations from within jOOQ. Expressions on literals and bind variables could be evaluated in the client prior to generating SQL.
This feature is available in the commercial distribution only.
-
withBackslashEscaping
public Settings withBackslashEscaping(BackslashEscaping value)
Whether string literals should be escaped with backslash.
-
withParamType
public Settings withParamType(ParamType value)
Specify how bind variables are to be rendered.Possibilities include: - question marks - named parameters - named or inlined parameters - inlined parameters This value is overridden by statementType == STATIC_STATEMENT, in case of which, this defaults to INLINED
-
withParamCastMode
public Settings withParamCastMode(ParamCastMode value)
Whether rendered bind values should be cast to their respective type.
-
withStatementType
public Settings withStatementType(StatementType value)
The type of statement that is to be executed.
-
withInlineThreshold
public Settings withInlineThreshold(Integer value)
The maximum number of allowed bind variables before inlining all values where0uses the dialect defaults:SQLDialect.ACCESS: 768SQLDialect.ASE: 2000SQLDialect.INGRES: 1024SQLDialect.ORACLE: 32767SQLDialect.POSTGRES: 32767SQLDialect.SQLITE: 999SQLDialect.SQLSERVER: 2100
-
withTransactionListenerStartInvocationOrder
public Settings withTransactionListenerStartInvocationOrder(InvocationOrder value)
The order of invocation for [action]start() methods registeredTransactionListeners.
-
withTransactionListenerEndInvocationOrder
public Settings withTransactionListenerEndInvocationOrder(InvocationOrder value)
The order of invocation for [action]end() methods registeredTransactionListeners.
-
withMigrationListenerStartInvocationOrder
public Settings withMigrationListenerStartInvocationOrder(InvocationOrder value)
The order of invocation for [action]start() methods registeredMigrationListeners.
-
withMigrationListenerEndInvocationOrder
public Settings withMigrationListenerEndInvocationOrder(InvocationOrder value)
The order of invocation for [action]end() methods registeredMigrationListeners.
-
withVisitListenerStartInvocationOrder
public Settings withVisitListenerStartInvocationOrder(InvocationOrder value)
The order of invocation for [action]start() methods registeredVisitListeners.
-
withVisitListenerEndInvocationOrder
public Settings withVisitListenerEndInvocationOrder(InvocationOrder value)
The order of invocation for [action]end() methods registeredVisitListeners.
-
withRecordListenerStartInvocationOrder
public Settings withRecordListenerStartInvocationOrder(InvocationOrder value)
The order of invocation for [action]start() methods registeredRecordListeners.
-
withRecordListenerEndInvocationOrder
public Settings withRecordListenerEndInvocationOrder(InvocationOrder value)
The order of invocation for [action]end() methods registeredRecordListeners.
-
withExecuteListenerStartInvocationOrder
public Settings withExecuteListenerStartInvocationOrder(InvocationOrder value)
The order of invocation for [action]start() methods registeredExecuteListeners.
-
withExecuteListenerEndInvocationOrder
public Settings withExecuteListenerEndInvocationOrder(InvocationOrder value)
The order of invocation for [action]end() methods registeredExecuteListeners.
-
withExecuteWithOptimisticLockingExcludeUnversioned
public Settings withExecuteWithOptimisticLockingExcludeUnversioned(Boolean value)
-
withUpdateUnchangedRecords
public Settings withUpdateUnchangedRecords(UpdateUnchangedRecords value)
WhetherUpdatableRecord.update()calls should be executed if the record is unchanged. This also affects theUPDATEpart ofUpdatableRecord.store()andUpdatableRecord.merge()calls.
-
withCachePreparedStatementInLoader
public Settings withCachePreparedStatementInLoader(Boolean value)
-
withThrowExceptions
public Settings withThrowExceptions(ThrowExceptions value)
A strategy defining how exceptions from the database / JDBC driver should be propagated
-
withFetchServerOutputSize
public Settings withFetchServerOutputSize(Integer value)
Whether server output should be fetched after each query execution.
-
withReturnIdentityOnUpdatableRecord
public Settings withReturnIdentityOnUpdatableRecord(Boolean value)
-
withMapConstructorParameterNamesInKotlin
public Settings withMapConstructorParameterNamesInKotlin(Boolean value)
-
withQueryPoolable
public 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.
-
withQueryTimeout
public Settings withQueryTimeout(Integer value)
The default JDBC queryTimeout property that should be applied to all jOOQ queries, for which no specific queryTimeout was specified.
-
withMaxRows
public 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.
-
withFetchSize
public 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.
-
withBatchSize
public Settings withBatchSize(Integer value)
A property specifying a batch size that should be applied to all automatically createdBatchedConnectioninstances.
-
withInListPadBase
public Settings withInListPadBase(Integer value)
[#7095] The base to use to calculate the powers of when applying in list padding.
-
withDelimiter
public Settings withDelimiter(String value)
[#5826] The delimiter character to be used to delimit statements in batches.
-
withEmulateOnDuplicateKeyUpdateOnPrimaryKeyOnly
public Settings withEmulateOnDuplicateKeyUpdateOnPrimaryKeyOnly(Boolean value)
-
withExecuteUpdateWithoutWhere
public Settings withExecuteUpdateWithoutWhere(ExecuteWithoutWhere value)
[#6771] Specifies whether UPDATE statements are allowed to be executed lacking a WHERE clause. This has no effect on rendering the statements SQL string.
-
withExecuteDeleteWithoutWhere
public Settings withExecuteDeleteWithoutWhere(ExecuteWithoutWhere value)
[#6771] Specifies whether DELETE statements are allowed to be executed lacking a WHERE clause. This has no effect on rendering the statements SQL string.
-
withInterpreterDialect
public Settings withInterpreterDialect(SQLDialect value)
[#7337] The dialect that should be used to interpret SQL DDL statements.SQLDialect.DEFAULTmeans that jOOQ interprets the SQL itself. Any other dialect (if supported) will be interpreted on an actual JDBC connection.
-
withInterpreterNameLookupCaseSensitivity
public Settings withInterpreterNameLookupCaseSensitivity(InterpreterNameLookupCaseSensitivity value)
[#9633] The case sensitivity of identifiers used when interpreting SQL DDL statements.
-
withInterpreterLocale
public Settings withInterpreterLocale(Locale value)
The Locale to be used with any interpreter locale dependent logic, defaulting togetLocale().
-
withInterpreterDelayForeignKeyDeclarations
public Settings withInterpreterDelayForeignKeyDeclarations(Boolean value)
-
withLocale
public Settings withLocale(Locale value)
The Locale to be used with any locale dependent logic if there is not a more specific locale available. More specific locales include e.g.getRenderLocale(),getParseLocale(), orgetInterpreterLocale().
-
withParseDialect
public Settings withParseDialect(SQLDialect value)
[#7337] The input dialect that should be chosen to disambiguate ambiguous SQL syntax.
-
withParseLocale
public Settings withParseLocale(Locale value)
The Locale to be used with any parser locale dependent logic, defaulting togetLocale().
-
withParseNameCase
public Settings withParseNameCase(ParseNameCase value)
[#7337] The default name case for parsed identifiers.
-
withParseWithMetaLookups
public Settings withParseWithMetaLookups(ParseWithMetaLookups value)
[#7163] Whether the parser should perform meta lookups in the Configuration's MetaProvider.
-
withParseUnsupportedSyntax
public Settings withParseUnsupportedSyntax(ParseUnsupportedSyntax value)
[#5917] Whether the parser should accept unsupported (but known) syntax.
-
withParseUnknownFunctions
public Settings withParseUnknownFunctions(ParseUnknownFunctions value)
[#7344] Whether the parser should accept unknown functions.
-
withParseIgnoreCommentStart
public Settings withParseIgnoreCommentStart(String value)
[#8325] The ignore comment start token
-
withParseIgnoreCommentStop
public Settings withParseIgnoreCommentStop(String value)
[#8325] The ignore comment stop token
-
withInterpreterSearchPath
public Settings withInterpreterSearchPath(InterpreterSearchSchema... values)
-
withInterpreterSearchPath
public Settings withInterpreterSearchPath(Collection<InterpreterSearchSchema> values)
-
withInterpreterSearchPath
public Settings withInterpreterSearchPath(List<InterpreterSearchSchema> interpreterSearchPath)
-
withParseSearchPath
public Settings withParseSearchPath(ParseSearchSchema... values)
-
withParseSearchPath
public Settings withParseSearchPath(Collection<ParseSearchSchema> values)
-
withParseSearchPath
public Settings withParseSearchPath(List<ParseSearchSchema> parseSearchPath)
-
appendTo
public final void appendTo(XMLBuilder builder)
- Specified by:
appendToin interfaceXMLAppendable
-
-