diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/DatabasePopulator.java b/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/DatabasePopulator.java index d7e6d550f6..b6b9f2d205 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/DatabasePopulator.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/DatabasePopulator.java @@ -20,18 +20,20 @@ import java.sql.Connection; import java.sql.SQLException; /** - * Strategy used to populate a database during initialization. + * Strategy used to populate, initialize, or clean up a database. * * @author Keith Donald * @author Sam Brannen * @since 3.0 * @see ResourceDatabasePopulator * @see DatabasePopulatorUtils + * @see DataSourceInitializer */ public interface DatabasePopulator { /** - * Populate the database using the provided JDBC connection. + * Populate, initialize, or clean up the database using the provided JDBC + * connection. *

Concrete implementations may throw an {@link SQLException} if * an error is encountered but are strongly encouraged to throw a * specific {@link ScriptException} instead. For example, Spring's