Class DatabasePopulatorUtils
java.lang.Object
org.springframework.jdbc.datasource.init.DatabasePopulatorUtils
Utility methods for executing a 
DatabasePopulator.- Since:
- 3.1
- Author:
- Juergen Hoeller, Oliver Gierke, Sam Brannen
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidexecute(DatabasePopulator populator, DataSource dataSource) Execute the givenDatabasePopulatoragainst the givenDataSource.
- 
Constructor Details- 
DatabasePopulatorUtilspublic DatabasePopulatorUtils()
 
- 
- 
Method Details- 
executepublic static void execute(DatabasePopulator populator, DataSource dataSource) throws DataAccessException Execute the givenDatabasePopulatoragainst the givenDataSource.The Connectionfor the suppliedDataSourcewill be committed if it is not configured forauto-commitand is not transactional.- Parameters:
- populator- the- DatabasePopulatorto execute
- dataSource- the- DataSourceto execute against
- Throws:
- DataAccessException- if an error occurs, specifically a- ScriptException
- See Also:
 
 
-