public interface Options
| 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
query parameter.
|
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.
|
boolean allowTransactionControl()
boolean ignoreTransactionControl()
boolean allowConnectionAccess()
boolean isLogParameters()
...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'
boolean isDetailedExceptions()
String generateErrorCode()
boolean useBytesForBlob()
The default behavior of this method is to delegate to flavor().useBytesForBlob(), but it is provided on this interface so the behavior can be controlled.
boolean useStringForClob()
The default behavior of this method is to delegate to flavor().useStringForClob(), but it is provided on this interface so the behavior can be controlled.
Flavor flavor()
Date currentDate()
boolean useDatePerAppOnly()
Calendar calendarForTimestamps()
It 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.
int maxStringLengthParam()
Copyright © 2016. All rights reserved.