| Constructor and Description |
|---|
OptionsOverride()
Defer to OptionsDefault for anything that is not specified, and use postgresql flavor.
|
OptionsOverride(Flavor flavor)
Defer to OptionsDefault for anything that is not specified, using the specified flavor.
|
OptionsOverride(Options parent)
Wrap another
Options and defer to it for anything we choose not
to override. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowConnectionAccess()
Control whether the Database object will allow calls to underlyingConnection().
|
boolean |
allowTransactionControl()
Control whether the Database object will allow calls to commitNow()
and rollbackNow().
|
Calendar |
calendarForTimestamps()
This calendar will be used for conversions when storing and retrieving timestamps
from the database.
|
Date |
currentDate()
The value returned by this method will be used for argDateNowPerApp() calls.
|
Flavor |
flavor()
Access compatibility information for the underlying database.
|
String |
generateErrorCode()
In cases where exceptions are thrown, use this method to provide a common
code that will be included in the exception message and the log message
so they can be searched and correlated later.
|
boolean |
ignoreTransactionControl()
Useful for testing code that explicitly controls transactions, and you
don't really want it to commit/rollback.
|
boolean |
isDetailedExceptions()
If true, text of the SQL and possibly parameter values (depending on @{#isLogParameters()})
will be included in exception messages.
|
boolean |
isLogParameters()
If this is false, log messages will look something like:
|
int |
maxStringLengthParam()
The maximum number of characters to print in debug SQL for a given String type
insert/update/query parameter.
|
void |
setParent(Options parent) |
boolean |
useBytesForBlob()
Indicate whether to use the Blob functionality of the underlying database driver,
or whether to use setBytes() methods instead.
|
boolean |
useDatePerAppOnly()
Wherever argDateNowPerDb() is specified, use argDateNowPerApp() instead.
|
boolean |
useStringForClob()
Indicate whether to use the Clob functionality of the underlying database driver,
or whether to use setString() methods instead.
|
OptionsOverride |
withParent(Options parent) |
public OptionsOverride(Options parent)
Options and defer to it for anything we choose not
to override.public OptionsOverride()
public OptionsOverride(Flavor flavor)
public void setParent(Options parent)
public OptionsOverride withParent(Options parent)
public boolean allowTransactionControl()
OptionsallowTransactionControl in interface Optionspublic boolean ignoreTransactionControl()
OptionsignoreTransactionControl in interface Optionspublic boolean allowConnectionAccess()
OptionsallowConnectionAccess in interface Optionspublic boolean isLogParameters()
Options...select a from b where c=?If this is true, log messages will look something like:
...select a from b where c=?|select a from b where c='abc'
isLogParameters in interface Optionspublic boolean isDetailedExceptions()
OptionsisDetailedExceptions in interface Optionspublic String generateErrorCode()
OptionsgenerateErrorCode in interface Optionspublic boolean useBytesForBlob()
OptionsThe default behavior of this method is to delegate to flavor().useBytesForBlob(), but it is provided on this interface so the behavior can be controlled.
useBytesForBlob in interface Optionspublic boolean useStringForClob()
OptionsThe default behavior of this method is to delegate to flavor().useStringForClob(), but it is provided on this interface so the behavior can be controlled.
useStringForClob in interface Optionspublic Flavor flavor()
Optionspublic Date currentDate()
OptionscurrentDate in interface Optionspublic boolean useDatePerAppOnly()
OptionsuseDatePerAppOnly in interface Optionspublic Calendar calendarForTimestamps()
OptionsIt is strongly recommended to always run your database in GMT timezone, and leave this set to the default.
Behavior in releases 1.3 and prior was to use the JVM default TimeZone, and this was not configurable.
calendarForTimestamps in interface Optionspublic int maxStringLengthParam()
OptionsargString() and argClobString() methods.maxStringLengthParam in interface OptionsCopyright © 2020. All rights reserved.