org.springframework.jdbc.datasource.init
Interface DatabasePopulator
- All Known Implementing Classes:
- ResourceDatabasePopulator
public interface DatabasePopulator
Strategy used to populate a database during initialization.
- Since:
- 3.0
- Author:
- Keith Donald
- See Also:
ResourceDatabasePopulator
Method Summary |
void |
populate(java.sql.Connection connection)
Populate the database using the JDBC connection provided. |
populate
void populate(java.sql.Connection connection)
throws java.sql.SQLException
- Populate the database using the JDBC connection provided.
- Parameters:
connection
- the JDBC connection to use to populate the db; already configured and ready to use
- Throws:
java.sql.SQLException
- if an unrecoverable data access exception occurs during database population