public interface DatabaseFactory
Database
implementationsinstance()
,
instance(String)
,
createDatabase(String)
Modifier and Type | Method and Description |
---|---|
Database |
createDatabase(String url) |
static String |
driverClassName(String url) |
static DatabaseFactory |
instance() |
static DatabaseFactory |
instance(String url) |
boolean |
isDriverCompatible(String driverClassName) |
boolean isDriverCompatible(String driverClassName)
driverClassName
- the driver class nameDatabase createDatabase(String url)
url
- the jdbc urlDatabase
implementation based on the given jdbc url.static DatabaseFactory instance() throws SQLException
DatabaseFactory
implementation for Database.DATABASE_URL
IllegalStateException
- in case Database.DATABASE_URL
('codion.db.url') is not specified.IllegalArgumentException
- in case no such implementation is foundSQLException
- in case loading of the database driver failedIllegalArgumentException
- in case no implementation exists for the configured jdbc urlstatic DatabaseFactory instance(String url) throws SQLException
url
- the jdbc urlDatabaseFactory
implementation for the given jdbc urlIllegalArgumentException
- in case no such implementation is foundSQLException
- in case loading of database driver failedIllegalArgumentException
- in case no implementation exists for the given jdbc urlstatic String driverClassName(String url) throws SQLException
url
- the jdbc urlSQLException
- in case loading of database driver failed