Top Description Interfaces Classes Enums
[default module]

Package org.springframework.jdbc.datasource.embedded

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Provides extensible support for creating embedded database instances.

Interface Summary

Modifier and TypeInterface and Description
public interface
ConnectionProperties

ConnectionProperties serves as a simple data container that allows essential JDBC connection properties to be configured consistently, independent of the actual DataSource implementation.

public interface
DataSourceFactory

DataSourceFactory encapsulates the creation of a particular DataSource implementation such as a non-pooling org.springframework.jdbc.datasource.SimpleDriverDataSource or a HikariCP pool setup in the shape of a HikariDataSource.

public interface
EmbeddedDatabase

EmbeddedDatabase serves as a handle to an embedded database instance.

public interface
EmbeddedDatabaseConfigurer

EmbeddedDatabaseConfigurer encapsulates the configuration required to create, connect to, and shut down a specific type of embedded database such as HSQL, H2, or Derby.

Class Summary

Modifier and TypeClass and Description
pack-priv abstract class
AbstractEmbeddedDatabaseConfigurer

Base class for EmbeddedDatabaseConfigurer implementations providing common shutdown behavior through a "SHUTDOWN" statement.

pack-priv class
public class
EmbeddedDatabaseBuilder

A builder that provides a convenient API for constructing an embedded database.

pack-priv class
public class
EmbeddedDatabaseFactory

Factory for creating an EmbeddedDatabase instance.

public class
EmbeddedDatabaseFactoryBean

A subclass of EmbeddedDatabaseFactory that implements FactoryBean for registration as a Spring bean.

pack-priv class
EmbeddedDatabaseFactoryRuntimeHints

RuntimeHintsRegistrar implementation that registers reflection hints for EmbeddedDataSourceProxy#shutdown in order to allow it to be used as a bean destroy method.

pack-priv class
H2EmbeddedDatabaseConfigurer

EmbeddedDatabaseConfigurer for an H2 embedded database instance.

pack-priv class
HsqlEmbeddedDatabaseConfigurer

EmbeddedDatabaseConfigurer for an HSQL embedded database instance.

public class
OutputStreamFactory

Internal helper for exposing dummy OutputStreams to embedded databases such as Derby, preventing the creation of a log file.

pack-priv class

Enum Summary

Modifier and TypeEnum and Description
public enum
EmbeddedDatabaseType

A supported embedded database type.