public abstract class DatabasePopulatorUtils extends Object
DatabasePopulator.| Constructor and Description |
|---|
DatabasePopulatorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
execute(DatabasePopulator populator,
DataSource dataSource)
Execute the given
DatabasePopulator against the given DataSource. |
public static void execute(DatabasePopulator populator, DataSource dataSource) throws DataAccessException
DatabasePopulator against the given DataSource.
As of Spring Framework 5.3.11, the Connection for the supplied
DataSource will be committed if
it is not configured for auto-commit and
is not transactional.
populator - the DatabasePopulator to executedataSource - the DataSource to execute againstDataAccessException - if an error occurs, specifically a ScriptExceptionDataSourceUtils.isConnectionTransactional(Connection, DataSource)