public class DatabaseBuilder extends Object
DB_CAPABILITIES_PROP
) that
contains the comma-separated capabilities of the database. Each database type
provides its own capabilities (see DatabaseProvider
implementations}.
There are currently two database types available:
DerbyDatabaseProvider
. This
is the default.DatabaseBuilder
uses the ServiceLoader
mechanism to
find implementations of DatabaseProvider
on the classpath. In the
getDatabase(String...)
method a number of capabilities are passed.
The database providers are then searched in (arbitrary) order and the first
one that has all required capabilities is returned.
getSupportedDatabases()
gives a list of all available databases.Modifier and Type | Field and Description |
---|---|
static String |
DB_CAPABILITIES_PROP
Environmment variable by which capabilities of the requested database can
be defined
|
Modifier and Type | Method and Description |
---|---|
static Database |
getDatabase(String... aCapabilities)
Gets the first database that has all required capabilities.
|
static List<DatabaseDescription> |
getSupportedDatabases()
Gets a list of available databases.
|
public static final String DB_CAPABILITIES_PROP
public static Database getDatabase(String... aCapabilities)
aCapabilities
- Capabilities.public static List<DatabaseDescription> getSupportedDatabases()
Copyright © 2022. All rights reserved.