Java org.springframework.jdbc.datasource.init ResourceDatabasePopulator fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.jdbc.datasource.init ResourceDatabasePopulator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.jdbc.datasource.init ResourceDatabasePopulator.

The text is from its open source code.

Subclass

org.springframework.jdbc.datasource.init.ResourceDatabasePopulator has subclasses.
Click this link to see all its subclasses.

Constructor

ResourceDatabasePopulator(Resource... scripts)
Construct a new ResourceDatabasePopulator with default settings for the supplied scripts.
ResourceDatabasePopulator()
Construct a new ResourceDatabasePopulator with default settings.
ResourceDatabasePopulator(boolean continueOnError, boolean ignoreFailedDrops, @Nullable String sqlScriptEncoding, Resource... scripts)
Construct a new ResourceDatabasePopulator with the supplied values.

Method

voidaddScript(Resource script)
Add a script to execute to initialize or clean up the database.
voidexecute(DataSource dataSource)
Execute this ResourceDatabasePopulator against the given DataSource .
voidpopulate(Connection connection)
voidsetBlockCommentEndDelimiter(String blockCommentEndDelimiter)
Set the end delimiter that identifies block comments within the SQL scripts.
voidsetBlockCommentStartDelimiter(String blockCommentStartDelimiter)
Set the start delimiter that identifies block comments within the SQL scripts.
voidsetCommentPrefix(String commentPrefix)
Set the prefix that identifies single-line comments within the SQL scripts.
voidsetContinueOnError(boolean continueOnError)
Flag to indicate that all failures in SQL should be logged but not cause a failure.
voidsetIgnoreFailedDrops(boolean ignoreFailedDrops)
Flag to indicate that a failed SQL DROP statement can be ignored.
voidsetScripts(Resource... scripts)
Set the scripts to execute to initialize or clean up the database, replacing any previously added scripts.
voidsetSeparator(String separator)
Specify the statement separator, if a custom one.
voidsetSqlScriptEncoding(@Nullable String sqlScriptEncoding)
Specify the encoding for the configured SQL scripts, if different from the platform encoding.