|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatabaseProvider
Database provider. This database provider represents a particular type of
database such as its capabilities and the ability to create an instance
representing a running database.
Since the 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.
| Field Summary | |
|---|---|
static java.lang.String |
CAPABILITY_EXTERNAL
Capability that all databases that are external have. |
static java.lang.String |
CAPABILITY_IN_MEMORY
Capability that all databases that run inmemory have. |
| Method Summary | |
|---|---|
Database |
create()
Creates a database instance that represents a running instance of that database. |
DatabaseDescription |
getDescription()
Gets the description for the database. |
boolean |
supportsCapabilities(java.lang.String[] aCapabilities)
Determines if the database has all capabilities that are requested. |
| Field Detail |
|---|
static final java.lang.String CAPABILITY_IN_MEMORY
static final java.lang.String CAPABILITY_EXTERNAL
| Method Detail |
|---|
boolean supportsCapabilities(java.lang.String[] aCapabilities)
aCapabilities - Capabilities it must ahve
DatabaseDescription getDescription()
Database create()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||