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

public Interface EmbeddedDatabaseConfigurer

Known Direct Implementers
org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabaseConfigurer, org.springframework.jdbc.datasource.embedded.DerbyEmbeddedDatabaseConfigurer
Imports
javax.sql.DataSource

EmbeddedDatabaseConfigurer encapsulates the configuration required to create, connect to, and shut down a specific type of embedded database such as HSQL, H2, or Derby.
Authors
Keith Donald, Sam Brannen
Since
3.0

Method Summary

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

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

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

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

Method Detail

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

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

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

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