Example usage for Java org.springframework.jdbc.datasource.init ResourceDatabasePopulator fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
void | addScript(Resource script) Add a script to execute to initialize or clean up the database. |
void | execute(DataSource dataSource) Execute this ResourceDatabasePopulator against the given DataSource . |
void | populate(Connection connection) |
void | setBlockCommentEndDelimiter(String blockCommentEndDelimiter) Set the end delimiter that identifies block comments within the SQL scripts. |
void | setBlockCommentStartDelimiter(String blockCommentStartDelimiter) Set the start delimiter that identifies block comments within the SQL scripts. |
void | setCommentPrefix(String commentPrefix) Set the prefix that identifies single-line comments within the SQL scripts. |
void | setContinueOnError(boolean continueOnError) Flag to indicate that all failures in SQL should be logged but not cause a failure. |
void | setIgnoreFailedDrops(boolean ignoreFailedDrops) Flag to indicate that a failed SQL DROP statement can be ignored. |
void | setScripts(Resource... scripts) Set the scripts to execute to initialize or clean up the database, replacing any previously added scripts. |
void | setSeparator(String separator) Specify the statement separator, if a custom one. |
void | setSqlScriptEncoding(@Nullable String sqlScriptEncoding) Specify the encoding for the configured SQL scripts, if different from the platform encoding. |