final class DerbyEmbeddedDatabaseConfigurer extends java.lang.Object implements EmbeddedDatabaseConfigurer
EmbeddedDatabaseConfigurer for the Apache Derby database 10.6+.
Call getInstance() to get the singleton instance of this class.
| Modifier and Type | Field and Description |
|---|---|
private static DerbyEmbeddedDatabaseConfigurer |
instance |
private static java.lang.String |
URL_TEMPLATE |
| Modifier | Constructor and Description |
|---|---|
private |
DerbyEmbeddedDatabaseConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureConnectionProperties(ConnectionProperties properties,
java.lang.String databaseName)
Configure the properties required to create and connect to the embedded
database instance.
|
static DerbyEmbeddedDatabaseConfigurer |
getInstance()
Get the singleton
DerbyEmbeddedDatabaseConfigurer instance. |
void |
shutdown(javax.sql.DataSource dataSource,
java.lang.String databaseName)
Shutdown the embedded database instance that backs the supplied
DataSource. |
private static final java.lang.String URL_TEMPLATE
private static DerbyEmbeddedDatabaseConfigurer instance
public static DerbyEmbeddedDatabaseConfigurer getInstance() throws java.lang.ClassNotFoundException
DerbyEmbeddedDatabaseConfigurer instance.java.lang.ClassNotFoundException - if Derby is not on the classpathpublic void configureConnectionProperties(ConnectionProperties properties, java.lang.String databaseName)
EmbeddedDatabaseConfigurerconfigureConnectionProperties in interface EmbeddedDatabaseConfigurerproperties - connection properties to configuredatabaseName - the name of the embedded databasepublic void shutdown(javax.sql.DataSource dataSource,
java.lang.String databaseName)
EmbeddedDatabaseConfigurerDataSource.shutdown in interface EmbeddedDatabaseConfigurerdataSource - the data sourcedatabaseName - the name of the database being shutdown