public interface DatabaseProvider
DatabaseBuilder
uses a first match algorithm and the order
of databaseproviders is not guaranteed, it is recommended for each database
provider to also provide a unique capability that no other database has.Modifier and Type | Field and Description |
---|---|
static String |
CAPABILITY_EXTERNAL
Capability that all databases that are external have.
|
static String |
CAPABILITY_IN_MEMORY
Capability that all databases that run inmemory have.
|
Modifier and Type | Method and Description |
---|---|
Database |
create()
Creates a database instance that represents a running instance of that
database.
|
DatabaseDescription |
getDescription()
Gets the description for the database.
|
boolean |
supportsCapabilities(String[] aCapabilities)
Determines if the database has all capabilities that are requested.
|
static final String CAPABILITY_IN_MEMORY
static final String CAPABILITY_EXTERNAL
boolean supportsCapabilities(String[] aCapabilities)
aCapabilities
- Capabilities it must ahveDatabaseDescription getDescription()
Database create()
Copyright © 2022. All rights reserved.