类 DatabasePopulatorUtils
- java.lang.Object
- org.springframework.jdbc.datasource.init.DatabasePopulatorUtils
public abstract class DatabasePopulatorUtils extends Object
Utility methods for executing aDatabasePopulator
.- 从以下版本开始:
- 3.1
- 作者:
- Juergen Hoeller, Oliver Gierke, Sam Brannen
构造器概要
构造器 构造器 说明 DatabasePopulatorUtils()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static void
execute(DatabasePopulator populator, DataSource dataSource)
Execute the givenDatabasePopulator
against the givenDataSource
.
构造器详细资料
DatabasePopulatorUtils
public DatabasePopulatorUtils()
方法详细资料
execute
public static void execute(DatabasePopulator populator, DataSource dataSource) throws DataAccessException
Execute the givenDatabasePopulator
against the givenDataSource
.- 参数:
populator
- theDatabasePopulator
to executedataSource
- theDataSource
to execute against- 抛出:
DataAccessException
- if an error occurs, specifically aScriptException