Builder
Constructors
Properties
How many records will be fetched at once by select queries
Default transaction isolation level. If not specified, the database-specific level will be used. This can be overridden on a per-transaction level by specifying the transactionIsolation
parameter of the transaction
function. Check Database.getDefaultIsolationLevel for the database defaults.
The maximum amount of attempts that will be made to perform any transaction block. If this value is set to 1 and an SQLException happens, the exception will be thrown without performing a retry. This can be overridden on a per-transaction level by specifying the maxAttempts
property in a transaction
block. Default amount of attempts is 3.
The maximum number of milliseconds to wait before retrying a transaction if an SQLException happens. This can be overridden on a per-transaction level by specifying the maxRetryDelay
property in a transaction
block. Default maximum delay is 0.
The minimum number of milliseconds to wait before retrying a transaction if an SQLException happens. This can be overridden on a per-transaction level by specifying the minRetryDelay
property in a transaction
block. Default minimum delay is 0.
Should all connections/transactions be executed in read-only mode by default or not. Default state is false.
Set the default schema for a database.
Set the explicit dialect for a database. This can be useful when working with unsupported dialects which have the same behavior as the one that Exposed supports.
Turns on "mode" for Exposed DAO to store relations (after they were loaded) within the entity that will allow access to them outside the transaction. Useful when eager loading is used.
Log too much result sets opened in parallel. The error log will contain the stacktrace of the place in the code where a new result set occurs, and it exceeds the threshold. 0 value means no log needed.
Amount of entities to keep in an EntityCache per an Entity class. Applicable only when exposed-dao
module is used. This can be overridden on a per-transaction basis via EntityCache.maxEntitiesToStore
. All entities will be kept by default.
Toggle whether table and column identifiers that are also keywords should retain their case sensitivity. Keeping user-defined case sensitivity (value set to true
) is the default setting.
SQLLogger to be used to log all SQL statements. Slf4jSqlDebugLogger by default.
Turn on/off nested transactions support. Is disabled by default
Threshold in milliseconds to log queries which exceed the threshold with WARN level. No tracing enabled by default. This can be set on a per-transaction level by setting Transaction.warnLongQueriesDuration field.