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

pack-priv final Class HsqlEmbeddedDatabaseConfigurer

extends AbstractEmbeddedDatabaseConfigurer
Class Inheritance
Imports
java.sql.Driver, org.springframework.lang.Nullable, org.springframework.util.ClassUtils

EmbeddedDatabaseConfigurer for an HSQL embedded database instance.

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

Authors
Keith Donald, Oliver Gierke
Since
3.0

Field Summary

Modifier and TypeField and Description
private final Class<? extends Driver>
private static HsqlEmbeddedDatabaseConfigurer
Inherited from org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabaseConfigurer:
logger

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 HsqlEmbeddedDatabaseConfigurer

Returns:

the configurer instance
getInstance
()

Get the singleton HsqlEmbeddedDatabaseConfigurer instance.

Inherited from org.springframework.jdbc.datasource.embedded.AbstractEmbeddedDatabaseConfigurer:
shutdown

Field Detail

driverClassback to summary
private final Class<? extends Driver> driverClass
instanceback to summary
private static HsqlEmbeddedDatabaseConfigurer instance
Annotations
@Nullable

Constructor Detail

HsqlEmbeddedDatabaseConfigurerback to summary
private HsqlEmbeddedDatabaseConfigurer(Class<? extends Driver> driverClass)

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 HsqlEmbeddedDatabaseConfigurer getInstance() throws ClassNotFoundException

Get the singleton HsqlEmbeddedDatabaseConfigurer instance.

Returns:HsqlEmbeddedDatabaseConfigurer

the configurer instance

Annotations
@SuppressWarnings:unchecked
Exceptions
ClassNotFoundException:
if HSQL is not on the classpath