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