public class CompositeDatabasePopulator extends Object implements DatabasePopulator
DatabasePopulator implementation that delegates to a list of other
DatabasePopulator implementations, executing all scripts.| Constructor and Description |
|---|
CompositeDatabasePopulator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPopulators(DatabasePopulator... populators)
Add a populator to the list of delegates.
|
void |
populate(Connection connection)
Populate the database using the JDBC connection provided.
|
void |
setPopulators(DatabasePopulator... populators)
Specify a list of populators to delegate to.
|
public void setPopulators(DatabasePopulator... populators)
public void addPopulators(DatabasePopulator... populators)
public void populate(Connection connection) throws SQLException
DatabasePopulatorpopulate in interface DatabasePopulatorconnection - the JDBC connection to use to populate the db; already configured and ready to useSQLException - if an unrecoverable data access exception occurs during database population