Uses of Interface
org.springframework.r2dbc.connection.init.DatabasePopulator
Package
Description
Provides extensible support for initializing databases through scripts.
-
Uses of DatabasePopulator in org.springframework.r2dbc.connection.init
Modifier and TypeClassDescriptionclass
CompositeDatabasePopulator
that delegates to a list of givenDatabasePopulator
implementations, executing all scripts.class
Populates, initializes, or cleans up a database using SQL scripts defined in external resources.Modifier and TypeMethodDescriptionvoid
CompositeDatabasePopulator.addPopulators
(DatabasePopulator... populators) Add one or more populators to the list of delegates.void
ConnectionFactoryInitializer.setDatabaseCleaner
(DatabasePopulator databaseCleaner) Set theDatabasePopulator
to execute during the bean destruction phase, cleaning up the database and leaving it in a known state for others.void
ConnectionFactoryInitializer.setDatabasePopulator
(DatabasePopulator databasePopulator) Set theDatabasePopulator
to execute during the bean initialization phase.void
CompositeDatabasePopulator.setPopulators
(DatabasePopulator... populators) Specify one or more populators to delegate to.ModifierConstructorDescriptionCompositeDatabasePopulator
(DatabasePopulator... populators) Create aCompositeDatabasePopulator
with the given populators.ModifierConstructorDescriptionCompositeDatabasePopulator
(Collection<DatabasePopulator> populators) Create aCompositeDatabasePopulator
.