public class DatabaseInitializationSettings extends Object
Constructor and Description |
---|
DatabaseInitializationSettings() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getDataLocations()
Returns the locations of data (DML) scripts to apply to the database.
|
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.
|
List<String> |
getSchemaLocations()
Returns the locations of the schema (DDL) scripts to apply to the database.
|
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(List<String> dataLocations)
Sets the locations of data (DML) scripts to apply to the database.
|
void |
setEncoding(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(List<String> schemaLocations)
Sets the locations of schema (DDL) scripts to apply to the database.
|
void |
setSeparator(String separator)
Sets the statement separator to use when reading the schema and data scripts.
|
public List<String> getSchemaLocations()
public void setSchemaLocations(List<String> schemaLocations)
optional:
.schemaLocations
- locations of the schema scriptspublic List<String> getDataLocations()
public void setDataLocations(List<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 String getSeparator()
public void setSeparator(String separator)
separator
- statement separator used in the schema and data scriptspublic Charset getEncoding()
public void setEncoding(Charset encoding)
encoding
- encoding to use when reading the schema and data scriptspublic DatabaseInitializationMode getMode()
public void setMode(DatabaseInitializationMode mode)
mode
- the initialization mode