Package | Description |
---|---|
org.springframework.jdbc.datasource.embedded |
Provides extensible support for creating embedded database instances.
|
Modifier and Type | Method and Description |
---|---|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.addDefaultScripts()
Add default SQL scripts to execute to populate the database.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.addScript(String script)
Add an SQL script to execute to initialize or populate the database.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.addScripts(String... scripts)
Add multiple SQL scripts to execute to initialize or populate the database.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.continueOnError(boolean flag)
Specify that all failures which occur while executing SQL scripts should
be logged but should not cause a failure.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.generateUniqueName(boolean flag)
Specify whether a unique ID should be generated and used as the database name.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.ignoreFailedDrops(boolean flag)
Specify that a failed SQL
DROP statement within an executed
script can be ignored. |
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setBlockCommentEndDelimiter(String blockCommentEndDelimiter)
Specify the end delimiter for block comments in all SQL scripts.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setBlockCommentStartDelimiter(String blockCommentStartDelimiter)
Specify the start delimiter for block comments in all SQL scripts.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setCommentPrefix(String commentPrefix)
Specify the single-line comment prefix used in all SQL scripts.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setCommentPrefixes(String... commentPrefixes)
Specify the prefixes that identify single-line comments within all SQL scripts.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setDataSourceFactory(DataSourceFactory dataSourceFactory)
Set the factory to use to create the
DataSource instance that
connects to the embedded database. |
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setName(String databaseName)
Set the name of the embedded database.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setScriptEncoding(String scriptEncoding)
Specify the character encoding used in all SQL scripts, if different from
the platform encoding.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setSeparator(String separator)
Specify the statement separator used in all SQL scripts, if a custom one.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setType(EmbeddedDatabaseType databaseType)
Set the type of embedded database.
|