public class DBIFactory extends Object
| Constructor and Description |
|---|
DBIFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.skife.jdbi.v2.DBI |
build(io.dropwizard.setup.Environment environment,
PooledDataSourceFactory configuration,
ManagedDataSource dataSource,
String name) |
org.skife.jdbi.v2.DBI |
build(io.dropwizard.setup.Environment environment,
PooledDataSourceFactory configuration,
String name) |
protected Optional<TimeZone> |
databaseTimeZone()
Get a time zone of a database
Override this method to specify a time zone of a database
to use in
JodaDateTimeMapper and
JodaDateTimeArgument
It's needed for cases when the database operates in a different
time zone then the application and it doesn't use the SQL type
`TIMESTAMP WITH TIME ZONE`. |
protected Optional<TimeZone> databaseTimeZone()
Override this method to specify a time zone of a database
to use in JodaDateTimeMapper and
JodaDateTimeArgument
It's needed for cases when the database operates in a different time zone then the application and it doesn't use the SQL type `TIMESTAMP WITH TIME ZONE`. It such cases information about the time zone should explicitly passed to the JDBC driver
public org.skife.jdbi.v2.DBI build(io.dropwizard.setup.Environment environment,
PooledDataSourceFactory configuration,
String name)
public org.skife.jdbi.v2.DBI build(io.dropwizard.setup.Environment environment,
PooledDataSourceFactory configuration,
ManagedDataSource dataSource,
String name)
Copyright © 2017. All rights reserved.