Module org.jooq
Package org.jooq.conf

Class SettingsTools

java.lang.Object
org.jooq.conf.SettingsTools

public final class SettingsTools extends Object
Convenience methods for jOOQ runtime settings.
Author:
Lukas Eder
  • Constructor Details Link icon

    • SettingsTools Link icon

      public SettingsTools()
  • Method Details Link icon

    • getParamType Link icon

      public static final ParamType getParamType(Settings settings)
      Get the parameter type from the settings.

      The ParamType can be overridden by the StatementType. If the latter is set to StatementType.STATIC_STATEMENT, then the former defaults to ParamType.INLINED.

    • getStatementType Link icon

      public static final StatementType getStatementType(Settings settings)
      Get the statement type from the settings.
    • getBackslashEscaping Link icon

      public static final BackslashEscaping getBackslashEscaping(Settings settings)
      Get the value BackslashEscaping value.
    • executePreparedStatements Link icon

      public static final boolean executePreparedStatements(Settings settings)
      Whether a PreparedStatement should be executed.
    • executeStaticStatements Link icon

      public static final boolean executeStaticStatements(Settings settings)
      Whether static Statement should be executed.
    • updatablePrimaryKeys Link icon

      public static final boolean updatablePrimaryKeys(Settings settings)
      Whether primary keys should be updatable.
    • reflectionCaching Link icon

      public static final boolean reflectionCaching(Settings settings)
      Whether reflection caching is active.
    • recordMapperCaching Link icon

      public static final boolean recordMapperCaching(Settings settings)
      Whether record mapper caching is active.
    • parsingConnectionCaching Link icon

      public static final boolean parsingConnectionCaching(Settings settings)
      Whether parsing connection caching is active.
    • locale Link icon

      public static final Locale locale(Settings settings)
      The render locale that is applicable, or the default locale if no such locale is configured.
    • renderLocale Link icon

      public static final Locale renderLocale(Settings settings)
      The render locale that is applicable, or the default locale if no such locale is configured.
    • parseLocale Link icon

      public static final Locale parseLocale(Settings settings)
      The parser locale that is applicable, or the default locale if no such locale is configured.
    • interpreterLocale Link icon

      public static final Locale interpreterLocale(Settings settings)
      The interpreter locale that is applicable, or the default locale if no such locale is configured.
    • getRenderTable Link icon

      public static final RenderTable getRenderTable(Settings settings)
      Lazy access to RenderTable.
    • getRenderMapping Link icon

      public static final RenderMapping getRenderMapping(Settings settings)
      Lazy access to RenderMapping.
    • getRenderKeywordCase Link icon

      public static final RenderKeywordCase getRenderKeywordCase(Settings settings)
      Backwards compatible access to RenderKeywordCase and/or RenderKeywordStyle (the latter being deprecated).
    • getRenderNameCase Link icon

      public static final RenderNameCase getRenderNameCase(Settings settings)
      Backwards compatible access to RenderNameCase and/or RenderNameStyle (the latter being deprecated).
    • getRenderQuotedNames Link icon

      public static final RenderQuotedNames getRenderQuotedNames(Settings settings)
      Backwards compatible access to RenderQuotedNames and/or RenderNameStyle (the latter being deprecated).
    • getExecuteUpdateWithoutWhere Link icon

      public static final ExecuteWithoutWhere getExecuteUpdateWithoutWhere(Settings settings)
    • getExecuteDeleteWithoutWhere Link icon

      public static final ExecuteWithoutWhere getExecuteDeleteWithoutWhere(Settings settings)
    • getTransformUnneededArithmeticExpressions Link icon

      public static final TransformUnneededArithmeticExpressions getTransformUnneededArithmeticExpressions(Settings settings)
    • defaultSettings Link icon

      public static final Settings defaultSettings()
      Retrieve the configured default settings.

      • If the JVM flag -Dorg.jooq.settings points to a valid settings file on the classpath, this will be loaded
      • If the JVM flag -Dorg.jooq.settings points to a valid settings file on the file system, this will be loaded
      • If a valid settings file is found on the classpath at /jooq-settings.xml, this will be loaded
      • Otherwise, a new Settings object is created with its defaults
    • clone Link icon

      public static final Settings clone(Settings settings)
      Clone some settings.
    • getQueryTimeout Link icon

      public static final int getQueryTimeout(int timeout, Settings settings)
      Return timeout if it is not 0, or the specified Settings.getQueryTimeout().
    • getQueryPoolable Link icon

      public static final QueryPoolable getQueryPoolable(QueryPoolable poolable, Settings settings)
      Return poolable if it is not null, or the specified Settings.getQueryPoolable().
    • getMaxRows Link icon

      public static final int getMaxRows(int maxRows, Settings settings)
      Return maxRows if it is not 0, or the specified Settings.getMaxRows().
    • fetchIntermediateResult Link icon

      public static final boolean fetchIntermediateResult(Configuration configuration)
      Return FetchIntermediateResult.
    • getFetchSize Link icon

      public static final int getFetchSize(int fetchSize, Settings settings)
      Return fetchSize if it is not 0, or the specified Settings.getFetchSize().
    • getBatchSize Link icon

      public static final int getBatchSize(Settings settings)
      Return the specified Settings.getBatchSize().
    • getFetchServerOutputSize Link icon

      public static final int getFetchServerOutputSize(int fetchServerOutputSize, Settings settings)
      Return fetchServerOutputSize if it is not 0, or the specified Settings.getFetchServerOutputSize().
    • returnAnyOnUpdatableRecord Link icon

      public static final boolean returnAnyOnUpdatableRecord(Settings settings)
      Whether any value should be returned on an UpdatableRecord operation.
    • returnAnyNonIdentityOnUpdatableRecord Link icon

      public static final boolean returnAnyNonIdentityOnUpdatableRecord(Settings settings)
      Whether any non-identity value should be returned on an UpdatableRecord operation.