@ -29,9 +29,9 @@ import javax.sql.DataSource;
@@ -29,9 +29,9 @@ import javax.sql.DataSource;
* /
public class DataSourceInitializationSettings {
private List < String > ddlScript Locations;
private List < String > schema Locations;
private List < String > dmlScript Locations ;
private List < String > data Locations ;
private boolean continueOnError = false ;
@ -40,43 +40,43 @@ public class DataSourceInitializationSettings {
@@ -40,43 +40,43 @@ public class DataSourceInitializationSettings {
private Charset encoding ;
/ * *
* Returns the locations of the DDL ( schema ) scripts to apply to the database .
* @return the locations of the DDL scripts
* Returns the locations of the schema ( DDL ) scripts to apply to the database .
* @return the locations of the schema scripts
* /
public List < String > getDdlScript Locations ( ) {
return this . ddlScript Locations;
public List < String > getSchema Locations ( ) {
return this . schema Locations;
}
/ * *
* Sets the locations of DDL ( schema ) scripts to apply to the database . By default ,
* Sets the locations of schema ( DDL ) scripts to apply to the database . By default ,
* initialization will fail if a location does not exist . To prevent a failure , a
* location can be made optional by prefixing it with { @code optional : } .
* @param ddlScript Locations locations of the DDL scripts
* @param schema Locations locations of the schema scripts
* /
public void setDdlScript Locations ( List < String > ddlScript Locations) {
this . ddlScriptLocations = ddlScript Locations;
public void setSchema Locations ( List < String > schema Locations) {
this . schemaLocations = schema Locations;
}
/ * *
* Returns the locations of the DML ( data ) scripts to apply to the database .
* @return the locations of the DML scripts
* Returns the locations of data ( DML ) scripts to apply to the database .
* @return the locations of the data scripts
* /
public List < String > getDmlScript Locations ( ) {
return this . dmlScript Locations ;
public List < String > getData Locations ( ) {
return this . data Locations ;
}
/ * *
* Sets the locations of DML ( data ) scripts to apply to the database . By default ,
* Sets the locations of data ( DML ) scripts to apply to the database . By default ,
* initialization will fail if a location does not exist . To prevent a failure , a
* location can be made optional by prefixing it with { @code optional : } .
* @param dmlScript Locations locations of the DML scripts
* @param data Locations locations of the data scripts
* /
public void setDmlScript Locations ( List < String > dmlScript Locations ) {
this . dmlScriptLocations = dmlScript Locations ;
public void setData Locations ( List < String > data Locations ) {
this . dataLocations = data Locations ;
}
/ * *
* Returns whether to continue when an error occurs while applying a DDL or DML
* Returns whether to continue when an error occurs while applying a schema or data
* script .
* @return whether to continue on error
* /
@ -86,7 +86,7 @@ public class DataSourceInitializationSettings {
@@ -86,7 +86,7 @@ public class DataSourceInitializationSettings {
/ * *
* Sets whether initialization should continue when an error occurs when applying a
* DDL or DML script .
* schema or data script .
* @param continueOnError whether to continue when an error occurs .
* /
public void setContinueOnError ( boolean continueOnError ) {
@ -94,7 +94,7 @@ public class DataSourceInitializationSettings {
@@ -94,7 +94,7 @@ public class DataSourceInitializationSettings {
}
/ * *
* Returns the statement separator used in the DDL and DML scripts .
* Returns the statement separator used in the schema and data scripts .
* @return the statement separator
* /
public String getSeparator ( ) {
@ -102,15 +102,15 @@ public class DataSourceInitializationSettings {
@@ -102,15 +102,15 @@ public class DataSourceInitializationSettings {
}
/ * *
* Sets the statement separator to use when reading the DDL and DML scripts .
* @param separator statement separator used in DDL and DML scripts
* Sets the statement separator to use when reading the schema and data scripts .
* @param separator statement separator used in the schema and data scripts
* /
public void setSeparator ( String separator ) {
this . separator = separator ;
}
/ * *
* Returns the encoding to use when reading the DDL and DML scripts .
* Returns the encoding to use when reading the schema and data scripts .
* @return the script encoding
* /
public Charset getEncoding ( ) {
@ -118,8 +118,8 @@ public class DataSourceInitializationSettings {
@@ -118,8 +118,8 @@ public class DataSourceInitializationSettings {
}
/ * *
* Sets the encoding to use when reading the DDL and DML scripts .
* @param encoding encoding to use when reading the DDL and DML scripts
* Sets the encoding to use when reading the schema and data scripts .
* @param encoding encoding to use when reading the schema and data scripts
* /
public void setEncoding ( Charset encoding ) {
this . encoding = encoding ;