EmbeddedDatabaseFactory()
Factory for creating an EmbeddedDatabase instance.
Callers are guaranteed that the returned database has been fully initialized and populated.
The factory can be configured as follows:
#generateUniqueDatabaseName to set a unique, random name for the database. #setDatabaseName to set an explicit name for the database. #setDatabaseType to set the database type if you wish to use one of the supported types. #setDatabaseConfigurer to configure support for a custom embedded database type. #setDatabasePopulator to change the algorithm used to populate the database. #setDataSourceFactory to change the type of DataSource used to connect to the database. After configuring the factory, call #getDatabase() to obtain a reference to the EmbeddedDatabase instance.
Author
Keith Donald
Author
Juergen Hoeller
Author
Sam Brannen
Since
3.0