Top Description Fields Constructors Methods
org.springframework.jdbc.datasource.embedded

pack-priv final Class DerbyEmbeddedDatabaseConfigurer

extends Object
implements EmbeddedDatabaseConfigurer
Class Inheritance
All Implemented Interfaces
org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseConfigurer
Imports
java.sql.SQLException, java.util.Properties, javax.sql.DataSource, org.apache.commons.logging.LogFactory, org.apache.derby.jdbc.EmbeddedDriver, org.springframework.lang.Nullable

EmbeddedDatabaseConfigurer for the Apache Derby database.

Call getInstance() to get the singleton instance of this class.

Authors
Oliver Gierke, Juergen Hoeller
Since
3.0

Field Summary

Modifier and TypeField and Description
private static DerbyEmbeddedDatabaseConfigurer
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
configureConnectionProperties(ConnectionProperties
connection properties to configure
properties
,
String
the name of the embedded database
databaseName
)

Implements org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseConfigurer.configureConnectionProperties.

Configure the properties required to create and connect to the embedded database.
public static synchronized DerbyEmbeddedDatabaseConfigurer

Returns:

the configurer instance
getInstance
()

Get the singleton DerbyEmbeddedDatabaseConfigurer instance.

public void
shutdown(DataSource
the corresponding DataSource
dataSource
,
String
the name of the database being shut down
databaseName
)

Implements org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseConfigurer.shutdown.

Shut down the embedded database instance that backs the supplied DataSource.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instanceback to summary
private static DerbyEmbeddedDatabaseConfigurer instance
Annotations
@Nullable
URL_TEMPLATEback to summary
private static final String URL_TEMPLATE

Constructor Detail

DerbyEmbeddedDatabaseConfigurerback to summary
private DerbyEmbeddedDatabaseConfigurer()

Method Detail

configureConnectionPropertiesback to summary
public void configureConnectionProperties(ConnectionProperties properties, String databaseName)

Implements org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseConfigurer.configureConnectionProperties.

Doc from org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseConfigurer.configureConnectionProperties.

Configure the properties required to create and connect to the embedded database.

Parameters
properties:ConnectionProperties

connection properties to configure

databaseName:String

the name of the embedded database

Annotations
@Override
getInstanceback to summary
public static synchronized DerbyEmbeddedDatabaseConfigurer getInstance()

Get the singleton DerbyEmbeddedDatabaseConfigurer instance.

Returns:DerbyEmbeddedDatabaseConfigurer

the configurer instance

shutdownback to summary
public void shutdown(DataSource dataSource, String databaseName)

Implements org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseConfigurer.shutdown.

Doc from org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseConfigurer.shutdown.

Shut down the embedded database instance that backs the supplied DataSource.

Parameters
dataSource:DataSource

the corresponding DataSource

databaseName:String

the name of the database being shut down

Annotations
@Override