public interface

EmbeddedDatabaseConfigurer

org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseConfigurer

Class Overview

Encapsulates the configuration required to create, connect to, and shutdown a specific type of embedded database such as HSQL or H2. Create a implementation for each database type you wish to support; for example HSQL, H2, or some other type.

Summary

Public Methods
abstract void configureConnectionProperties(ConnectionProperties properties, String databaseName)
Configure the properties required to create and connect to the embedded database instance.
abstract void shutdown(DataSource dataSource, String databaseName)
Shutdown the embedded database instance that backs dataSource.

Public Methods

public abstract void configureConnectionProperties (ConnectionProperties properties, String databaseName)

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

Parameters
databaseName the name of the test database

public abstract void shutdown (DataSource dataSource, String databaseName)

Shutdown the embedded database instance that backs dataSource.

Parameters
dataSource the data source
databaseName the name of the database being shutdown