org.springframework.jdbc.datasource.embedded
Interface DatabasePopulator

All Known Implementing Classes:
ResourceDatabasePopulator

public interface DatabasePopulator

Strategy used to populate an embedded database during initialization.

Since:
3.0
Author:
Keith Donald
See Also:
ResourceDatabasePopulator

Method Summary
 void populate(Connection connection)
          Populate the database using the JDBC-based data access template provided.
 

Method Detail

populate

void populate(Connection connection)
              throws SQLException
Populate the database using the JDBC-based data access template provided.

Parameters:
connection - the JDBC connection to use to populate the db; already configured and ready to use
Throws:
SQLException - if an unrecoverable data access exception occurs during database population