|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.datasource.init.CompositeDatabasePopulator
public class CompositeDatabasePopulator
DatabasePopulator
implementation that delegates to a list of other
DatabasePopulator implementations, executing all scripts.
Constructor Summary | |
---|---|
CompositeDatabasePopulator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeDatabasePopulator()
Method Detail |
---|
public void setPopulators(DatabasePopulator... populators)
public void addPopulators(DatabasePopulator... populators)
public void populate(Connection connection) throws SQLException
DatabasePopulator
populate
in interface DatabasePopulator
connection
- the JDBC connection to use to populate the db; already configured and ready to use
SQLException
- if an unrecoverable data access exception occurs during database population
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |