Package | Description |
---|---|
org.springframework.jdbc.datasource.embedded |
Provides extensible support for creating embedded database instances.
|
org.springframework.jdbc.datasource.init |
Provides extensible support for initializing databases through scripts.
|
Modifier and Type | Method and Description |
---|---|
void |
EmbeddedDatabaseFactoryBean.setDatabaseCleaner(DatabasePopulator databaseCleaner)
Set a script execution to be run in the bean destruction callback,
cleaning up the database and leaving it in a known state for others.
|
void |
EmbeddedDatabaseFactory.setDatabasePopulator(DatabasePopulator populator)
Set the strategy that will be used to initialize or populate the embedded
database.
|
Modifier and Type | Class and Description |
---|---|
class |
CompositeDatabasePopulator
DatabasePopulator implementation that delegates to a list of other
DatabasePopulator implementations, executing all scripts. |
class |
ResourceDatabasePopulator
Populates a database from SQL scripts defined in external resources.
|
Modifier and Type | Method and Description |
---|---|
void |
CompositeDatabasePopulator.addPopulators(DatabasePopulator... populators)
Add a populator to the list of delegates.
|
static void |
DatabasePopulatorUtils.execute(DatabasePopulator populator,
DataSource dataSource)
Execute the given DatabasePopulator against the given DataSource.
|
void |
DataSourceInitializer.setDatabaseCleaner(DatabasePopulator databaseCleaner)
Set a script execution to be run in the bean destruction callback,
cleaning up the database and leaving it in a known state for others.
|
void |
DataSourceInitializer.setDatabasePopulator(DatabasePopulator databasePopulator)
The
DatabasePopulator to use to populate the data source. |
void |
CompositeDatabasePopulator.setPopulators(DatabasePopulator... populators)
Specify a list of populators to delegate to.
|
Copyright © 2015. All rights reserved.