public class JdbcDatabaseManager extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | JdbcDatabaseManager.EmbeddedJdbcDatabaseExtends  JdbcDatabaseManager.JdbcDatabasewith additional defaults for the use of embedded databases such as H2. | 
| static class  | JdbcDatabaseManager.JdbcDatabaseProvides the required information in order to connect toa JDBC database, including the necessary driver and
 validation query. | 
| Constructor and Description | 
|---|
| JdbcDatabaseManager() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Optional<JdbcDatabaseManager.JdbcDatabase> | findDatabase(String jdbcUrl)Searches defined database where the URL prefix matches one of the prefixes defined in a  JdbcDatabaseManager.JdbcDatabase. | 
| static Optional<JdbcDatabaseManager.EmbeddedJdbcDatabase> | get(ClassLoader classLoader)Searches the provided classloader for an embedded database driver. | 
| static boolean | isEmbedded(String driverClassName)Searches embedded databases where the driver matches the argument. | 
public static Optional<JdbcDatabaseManager.JdbcDatabase> findDatabase(String jdbcUrl)
JdbcDatabaseManager.JdbcDatabase.
 The prefix is determined by:
 
 jdbc:
jdbcUrl - The connection URLJdbcDatabaseManager.JdbcDatabasepublic static Optional<JdbcDatabaseManager.EmbeddedJdbcDatabase> get(ClassLoader classLoader)
classLoader - The classloader to searchJdbcDatabaseManager.EmbeddedJdbcDatabasepublic static boolean isEmbedded(String driverClassName)
driverClassName - The driver class name to search on