Interface DatabaseFactory
- All Known Implementing Classes:
Db2DatabaseFactory, DerbyDatabaseFactory, H2DatabaseFactory, HSQLDatabaseFactory, MariaDBDatabaseFactory, MySQLDatabaseFactory, OracleDatabaseFactory, PostgreSQLDatabaseFactory, SQLiteDatabaseFactory, SQLServerDatabaseFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseFactoryinstance()static DatabaseFactoryboolean
-
Method Details
-
supports
- Parameters:
driverClassName- the driver class name- Returns:
- true if this database factory supports the given driver
-
create
-
instance
- Returns:
- a
DatabaseFactoryimplementation forDatabase.URL - Throws:
NoSuchElementException- in caseDatabase.URL('codion.db.url') is not specified.SQLException- in case loading of the database driver failedIllegalStateException- in case no implementation exists for the configured jdbc url
-
instance
- Parameters:
url- the jdbc url- Returns:
- a
DatabaseFactoryimplementation for the given jdbc url - Throws:
SQLException- in case loading of database driver failedIllegalStateException- in case no implementation exists for the given jdbc url
-