Uses of Interface
org.springframework.jdbc.datasource.init.DatabasePopulator
Packages that use DatabasePopulator
Package
Description
Provides extensible support for creating embedded database instances.
Provides extensible support for initializing databases through scripts.
- 
Uses of DatabasePopulator in org.springframework.jdbc.datasource.embeddedMethods in org.springframework.jdbc.datasource.embedded with parameters of type DatabasePopulatorModifier and TypeMethodDescriptionvoidEmbeddedDatabaseFactoryBean.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.voidEmbeddedDatabaseFactory.setDatabasePopulator(DatabasePopulator populator) Set the strategy that will be used to initialize or populate the embedded database.
- 
Uses of DatabasePopulator in org.springframework.jdbc.datasource.initClasses in org.springframework.jdbc.datasource.init that implement DatabasePopulatorModifier and TypeClassDescriptionclassCompositeDatabasePopulatorthat delegates to a list of givenDatabasePopulatorimplementations, executing all scripts.classPopulates, initializes, or cleans up a database using SQL scripts defined in external resources.Methods in org.springframework.jdbc.datasource.init with parameters of type DatabasePopulatorModifier and TypeMethodDescriptionvoidCompositeDatabasePopulator.addPopulators(DatabasePopulator... populators) Add one or more populators to the list of delegates.static voidDatabasePopulatorUtils.execute(DatabasePopulator populator, DataSource dataSource) Execute the givenDatabasePopulatoragainst the givenDataSource.voidDataSourceInitializer.setDatabaseCleaner(DatabasePopulator databaseCleaner) Set theDatabasePopulatorto execute during the bean destruction phase, if any, cleaning up the database and leaving it in a known state for others.voidDataSourceInitializer.setDatabasePopulator(DatabasePopulator databasePopulator) Set theDatabasePopulatorto execute during the bean initialization phase, if any.voidCompositeDatabasePopulator.setPopulators(DatabasePopulator... populators) Specify one or more populators to delegate to.Constructors in org.springframework.jdbc.datasource.init with parameters of type DatabasePopulatorModifierConstructorDescriptionCompositeDatabasePopulator(DatabasePopulator... populators) Create aCompositeDatabasePopulatorwith the given populators.Constructor parameters in org.springframework.jdbc.datasource.init with type arguments of type DatabasePopulatorModifierConstructorDescriptionCompositeDatabasePopulator(Collection<DatabasePopulator> populators) Create aCompositeDatabasePopulatorwith the given populators.