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(java.lang.String script)
Add an SQL script to execute to initialize or populate the database.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.addScripts(java.lang.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(java.lang.String blockCommentEndDelimiter)
Specify the end delimiter for block comments in all SQL scripts.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setBlockCommentStartDelimiter(java.lang.String blockCommentStartDelimiter)
Specify the start delimiter for block comments in all SQL scripts.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setCommentPrefix(java.lang.String commentPrefix)
Specify the single-line comment prefix used in 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(java.lang.String databaseName)
Set the name of the embedded database.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setScriptEncoding(java.lang.String scriptEncoding)
Specify the character encoding used in all SQL scripts, if different from
the platform encoding.
|
EmbeddedDatabaseBuilder |
EmbeddedDatabaseBuilder.setSeparator(java.lang.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.
|