public interface DatabaseAdapterFactory
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_KEY_DATABASE_ADAPTER_NAME
Configuration property key used to select a certain database adapter.
|
static String |
DEFAULT_DATABASE_ADAPTER_NAME
Default value for
CONFIG_KEY_DATABASE_ADAPTER_NAME (applicable, if not specified by user). |
Modifier and Type | Method and Description |
---|---|
DatabaseAdapter |
createDatabaseAdapter() |
String |
getName()
Gets the symbolic name of this adapter.
|
int |
getPriority() |
static final String CONFIG_KEY_DATABASE_ADAPTER_NAME
priority
is used.static final String DEFAULT_DATABASE_ADAPTER_NAME
CONFIG_KEY_DATABASE_ADAPTER_NAME
(applicable, if not specified by user).String getName()
Usually, this matches the JDBC-sub-protocol-name of the database being used (e.g. "derby" or "mysql"), but in case there are multiple adapters for the same database type, they must have a different name.
This symbolic name must be unique. It can be used via the configuration property CONFIG_KEY_DATABASE_ADAPTER_NAME
to force a certain adapter.
null
, must not be empty and
must not contain spaces.int getPriority()
DatabaseAdapter createDatabaseAdapter()
Copyright © 2013–2019. All rights reserved.