public class DatabaseInitializationSettings
extends java.lang.Object
Constructor and Description |
---|
DatabaseInitializationSettings() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getDataLocations()
Returns the locations of data (DML) scripts to apply to the database.
|
java.nio.charset.Charset |
getEncoding()
Returns the encoding to use when reading the schema and data scripts.
|
DatabaseInitializationMode |
getMode()
Gets the mode to use when determining whether database initialization should be
performed.
|
java.util.List<java.lang.String> |
getSchemaLocations()
Returns the locations of the schema (DDL) scripts to apply to the database.
|
java.lang.String |
getSeparator()
Returns the statement separator used in the schema and data scripts.
|
boolean |
isContinueOnError()
Returns whether to continue when an error occurs while applying a schema or data
script.
|
void |
setContinueOnError(boolean continueOnError)
Sets whether initialization should continue when an error occurs when applying a
schema or data script.
|
void |
setDataLocations(java.util.List<java.lang.String> dataLocations)
Sets the locations of data (DML) scripts to apply to the database.
|
void |
setEncoding(java.nio.charset.Charset encoding)
Sets the encoding to use when reading the schema and data scripts.
|
void |
setMode(DatabaseInitializationMode mode)
Sets the mode the use when determining whether database initialization should be
performed.
|
void |
setSchemaLocations(java.util.List<java.lang.String> schemaLocations)
Sets the locations of schema (DDL) scripts to apply to the database.
|
void |
setSeparator(java.lang.String separator)
Sets the statement separator to use when reading the schema and data scripts.
|
public java.util.List<java.lang.String> getSchemaLocations()
public void setSchemaLocations(java.util.List<java.lang.String> schemaLocations)
optional:
.schemaLocations
- locations of the schema scriptspublic java.util.List<java.lang.String> getDataLocations()
public void setDataLocations(java.util.List<java.lang.String> dataLocations)
optional:
.dataLocations
- locations of the data scriptspublic boolean isContinueOnError()
public void setContinueOnError(boolean continueOnError)
continueOnError
- whether to continue when an error occurs.public java.lang.String getSeparator()
public void setSeparator(java.lang.String separator)
separator
- statement separator used in the schema and data scriptspublic java.nio.charset.Charset getEncoding()
public void setEncoding(java.nio.charset.Charset encoding)
encoding
- encoding to use when reading the schema and data scriptspublic DatabaseInitializationMode getMode()
public void setMode(DatabaseInitializationMode mode)
mode
- the initialization mode