public final class SettingsTools extends Object
Constructor and Description |
---|
SettingsTools() |
Modifier and Type | Method and Description |
---|---|
static Settings |
clone(Settings settings)
Clone some settings.
|
static Settings |
defaultSettings()
Retrieve the configured default settings.
|
static boolean |
executePreparedStatements(Settings settings)
Whether a
PreparedStatement should be executed. |
static boolean |
executeStaticStatements(Settings settings)
Whether static
Statement should be executed. |
static BackslashEscaping |
getBackslashEscaping(Settings settings)
Get the value BackslashEscaping value.
|
static int |
getFetchSize(int fetchSize,
Settings settings)
|
static int |
getMaxRows(int maxRows,
Settings settings)
|
static ParamType |
getParamType(Settings settings)
Get the parameter type from the settings.
|
static int |
getQueryTimeout(int timeout,
Settings settings)
|
static RenderMapping |
getRenderMapping(Settings settings)
Lazy access to
RenderMapping . |
static StatementType |
getStatementType(Settings settings)
Get the statement type from the settings.
|
static boolean |
reflectionCaching(Settings settings)
Whether primary keys should be updatable.
|
static boolean |
updatablePrimaryKeys(Settings settings)
Whether primary keys should be updatable.
|
public static final ParamType getParamType(Settings 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
.
public static final StatementType getStatementType(Settings settings)
public static final BackslashEscaping getBackslashEscaping(Settings settings)
public static final boolean executePreparedStatements(Settings settings)
PreparedStatement
should be executed.public static final boolean executeStaticStatements(Settings settings)
Statement
should be executed.public static final boolean updatablePrimaryKeys(Settings settings)
public static final boolean reflectionCaching(Settings settings)
public static final RenderMapping getRenderMapping(Settings settings)
RenderMapping
.public static final Settings defaultSettings()
-Dorg.jooq.settings
points to a valid
settings file on the classpath, this will be loaded-Dorg.jooq.settings
points to a valid
settings file on the file system, this will be loaded/jooq-settings.xml
, this will be loadedSettings
object is created with its
defaultspublic static int getQueryTimeout(int timeout, Settings settings)
public static int getMaxRows(int maxRows, Settings settings)
public static int getFetchSize(int fetchSize, Settings settings)
Copyright © 2016. All Rights Reserved.