DatabasePopulator that delegates to a list of given
DatabasePopulator implementations, executing all scripts.
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CompositeDatabasePopulator(Collection<DatabasePopulator>
one or more populators to delegate to populators)Create a |
| public | CompositeDatabasePopulator(DatabasePopulator...
one or more populators to delegate to populators)Create a |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | populate(Connection
the JDBC connection to use; already configured and
ready to use; never connection)nullImplements org. |
| public void |
| populators | back to summary |
|---|---|
| private final List<DatabasePopulator> populators | |
| CompositeDatabasePopulator | back to summary |
|---|---|
| public CompositeDatabasePopulator() Create an empty
| |
| CompositeDatabasePopulator | back to summary |
|---|---|
| public CompositeDatabasePopulator(Collection<DatabasePopulator> populators) Create a
| |
| CompositeDatabasePopulator | back to summary |
|---|---|
| public CompositeDatabasePopulator(DatabasePopulator... populators) Create a
| |
| addPopulators | back to summary |
|---|---|
| public void addPopulators(DatabasePopulator... populators) Add one or more populators to the list of delegates. | |
| populate | back to summary |
|---|---|
| public void populate(Connection connection) throws SQLException, ScriptException Implements org. Doc from org. Populate, initialize, or clean up the database using the provided JDBC connection. Warning Concrete implementations should not close
the provided Concrete implementations may throw an
| |
| setPopulators | back to summary |
|---|---|
| public void setPopulators(DatabasePopulator... populators) Specify one or more populators to delegate to. | |