| Modifier and Type | Method and Description |
|---|---|
DatabaseProvider.Builder |
DatabaseProvider.fakeBuilder() |
static DatabaseProvider.Builder |
DatabaseProvider.fromDriverManager(Config config) |
static DatabaseProvider.Builder |
DatabaseProvider.fromDriverManager(String url)
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
|
static DatabaseProvider.Builder |
DatabaseProvider.fromDriverManager(String url,
Flavor flavor)
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
|
static DatabaseProvider.Builder |
DatabaseProvider.fromDriverManager(String url,
Flavor flavor,
Properties info)
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
|
static DatabaseProvider.Builder |
DatabaseProvider.fromDriverManager(String url,
Flavor flavor,
String user,
String password)
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
|
static DatabaseProvider.Builder |
DatabaseProvider.fromDriverManager(String url,
Properties info)
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
|
static DatabaseProvider.Builder |
DatabaseProvider.fromDriverManager(String url,
String user,
String password)
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
|
static DatabaseProvider.Builder |
DatabaseProvider.fromJndi(Context context,
String lookupKey,
Flavor flavor)
Builder method to create and initialize an instance of this class using
a JNDI resource.
|
static DatabaseProvider.Builder |
DatabaseProvider.fromPool(DatabaseProvider.Pool pool)
Use an externally configured DataSource, Flavor, and optionally a shutdown hook.
|
static DatabaseProvider.Builder |
DatabaseProvider.fromProperties(Properties properties)
Configure the database from up to five properties read from the provided properties:
|
static DatabaseProvider.Builder |
DatabaseProvider.fromProperties(Properties properties,
String propertyPrefix)
Configure the database from up to five properties read from the provided properties:
|
static DatabaseProvider.Builder |
DatabaseProvider.fromPropertyFile(String filename)
Configure the database from up to five properties read from a file:
|
static DatabaseProvider.Builder |
DatabaseProvider.fromPropertyFile(String filename,
CharsetDecoder decoder)
Configure the database from up to five properties read from a file:
|
static DatabaseProvider.Builder |
DatabaseProvider.fromPropertyFile(String filename,
String propertyPrefix)
Configure the database from up to five properties read from a file:
|
static DatabaseProvider.Builder |
DatabaseProvider.fromPropertyFile(String filename,
String propertyPrefix,
CharsetDecoder decoder)
Configure the database from up to five properties read from a file:
|
static DatabaseProvider.Builder |
DatabaseProvider.fromPropertyFileOrSystemProperties(String filename)
Configure the database from up to five properties read from the specified
properties file, or from the system properties (system properties will take
precedence over the file):
|
static DatabaseProvider.Builder |
DatabaseProvider.fromPropertyFileOrSystemProperties(String filename,
CharsetDecoder decoder)
Configure the database from up to five properties read from the specified
properties file, or from the system properties (system properties will take
precedence over the file):
|
static DatabaseProvider.Builder |
DatabaseProvider.fromPropertyFileOrSystemProperties(String filename,
String propertyPrefix)
Configure the database from up to five properties read from the specified
properties file, or from the system properties (system properties will take
precedence over the file):
|
static DatabaseProvider.Builder |
DatabaseProvider.fromPropertyFileOrSystemProperties(String filename,
String propertyPrefix,
CharsetDecoder decoder)
Configure the database from up to five properties read from the specified
properties file, or from the system properties (system properties will take
precedence over the file):
|
static DatabaseProvider.Builder |
DatabaseProvider.fromSystemProperties()
Configure the database from up to five system properties:
|
static DatabaseProvider.Builder |
DatabaseProvider.fromSystemProperties(String propertyPrefix)
Configure the database from up to five system properties:
|
static DatabaseProvider.Builder |
DatabaseProvider.pooledBuilder(Config config)
Configure the database from the following properties read from the provided configuration:
|
DatabaseProvider.Builder |
DatabaseProvider.Builder.withConnectionAccess()
Allow direct access to the underlying database connection.
|
DatabaseProvider.Builder |
DatabaseProvider.Builder.withDatePerAppOnly()
Wherever argDateNowPerDb() is specified, use argDateNowPerApp() instead.
|
DatabaseProvider.Builder |
DatabaseProvider.Builder.withOptions(OptionsOverride options) |
DatabaseProvider.Builder |
DatabaseProvider.Builder.withSqlInExceptionMessages()
Include SQL in exception messages.
|
DatabaseProvider.Builder |
DatabaseProvider.Builder.withSqlParameterLogging()
Enable logging of parameter values along with the SQL.
|
DatabaseProvider.Builder |
DatabaseProvider.Builder.withTransactionControl()
Allow provided Database instances to explicitly control transactions using the
commitNow() and rollbackNow() methods.
|
DatabaseProvider.Builder |
DatabaseProvider.Builder.withTransactionControlSilentlyIgnored()
This can be useful when testing code, as it can pretend to use transactions,
while giving you control over whether it actually commits or rolls back.
|
Copyright © 2020. All rights reserved.