declare namespace org { namespace springframework { namespace jdbc { namespace datasource { namespace init { /** * Populates, initializes, or cleans up a database using SQL scripts defined in * external resources. *
Defaults to {@code ";"} if not specified and falls back to {@code "\n"} * as a last resort; may be set to {@link ScriptUtils#EOF_STATEMENT_SEPARATOR} * to signal that each script contains a single statement without a separator. * @param separator the script statement separator */ // @ts-ignore public setSeparator(separator: java.lang.String | string): void /** * Set the prefix that identifies single-line comments within the SQL scripts. *
Defaults to {@code "--"}. * @param commentPrefix the prefix for single-line comments * @see #setCommentPrefixes(String...) */ // @ts-ignore public setCommentPrefix(commentPrefix: java.lang.String | string): void /** * Set the prefixes that identify single-line comments within the SQL scripts. *
Defaults to {@code ["--"]}. * @param commentPrefixes the prefixes for single-line comments * @since 5.2 */ // @ts-ignore public setCommentPrefixes(...commentPrefixes: java.lang.String[] | string[]): void /** * Set the start delimiter that identifies block comments within the SQL * scripts. *
Defaults to {@code "/*"}. * @param blockCommentStartDelimiter the start delimiter for block comments * (never {#code null} or empty) * @since 4.0.3 * @see #setBlockCommentEndDelimiter */ // @ts-ignore public setBlockCommentStartDelimiter(blockCommentStartDelimiter: java.lang.String | string): void /** * Set the end delimiter that identifies block comments within the SQL * scripts. *
Defaults to "*/".
* @param blockCommentEndDelimiter the end delimiter for block comments
* (never {#code null} or empty)
* @since 4.0.3
* @see #setBlockCommentStartDelimiter
*/
// @ts-ignore
public setBlockCommentEndDelimiter(blockCommentEndDelimiter: java.lang.String | string): void
/**
* Flag to indicate that all failures in SQL should be logged but not cause a failure.
*
Defaults to {@code false}. * @param continueOnError {#code true} if script execution should continue on error */ // @ts-ignore public setContinueOnError(continueOnError: boolean): void /** * Flag to indicate that a failed SQL {@code DROP} statement can be ignored. *
This is useful for a non-embedded database whose SQL dialect does not * support an {@code IF EXISTS} clause in a {@code DROP} statement. *
The default is {@code false} so that if the populator runs accidentally, it will * fail fast if a script starts with a {@code DROP} statement. * @param ignoreFailedDrops {#code true} if failed drop statements should be ignored */ // @ts-ignore public setIgnoreFailedDrops(ignoreFailedDrops: boolean): void /** * {@inheritDoc} * @see #execute(DataSource) */ // @ts-ignore public populate(connection: java.sql.Connection): void /** * Execute this {@code ResourceDatabasePopulator} against the given * {@link DataSource}. *
Delegates to {@link DatabasePopulatorUtils#execute}. * @param dataSource the {#code DataSource} to execute against (never {@code null}) * @throws ScriptException if an error occurs * @since 4.1 * @see #populate(Connection) */ // @ts-ignore public execute(dataSource: javax.sql.DataSource): void } } } } } }