Top Description Interfaces Classes
module spring.jdbc

Package org.springframework.jdbc.datasource.init

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Provides extensible support for initializing databases through scripts.

Interface Summary

Modifier and TypeInterface and Description
public interface
DatabasePopulator

Strategy used to populate, initialize, or clean up a database.

Class Summary

Modifier and TypeClass and Description
public class
CannotReadScriptException

Thrown by ScriptUtils if an SQL script cannot be read.

public class
CompositeDatabasePopulator

Composite DatabasePopulator that delegates to a list of given DatabasePopulator implementations, executing all scripts.

public abstract class
DatabasePopulatorUtils

Utility methods for executing a DatabasePopulator.

public class
DataSourceInitializer

Used to set up a database during initialization and clean up a database during destruction.

public class
ResourceDatabasePopulator

Populates, initializes, or cleans up a database using SQL scripts defined in external resources.

public abstract class
ScriptException

Root of the hierarchy of data access exceptions that are related to processing of SQL scripts.

public class
ScriptParseException

Thrown by ScriptUtils if an SQL script cannot be properly parsed.

public class
ScriptStatementFailedException

Thrown by ScriptUtils if a statement in an SQL script failed when executing it against the target database.

public abstract class
ScriptUtils

Generic utility methods for working with SQL scripts in conjunction with JDBC.

public class
UncategorizedScriptException

Thrown when we cannot determine anything more specific than "something went wrong while processing an SQL script": for example, a java.sql.SQLException from JDBC that we cannot pinpoint more precisely.