Class SQL
java.lang.Object
uk.ac.manchester.spinnaker.alloc.db.SQL
public class SQL extends Object
Some sort of SQL that can be executed as part of a query or an update.
-
Constructor Summary
Constructors Constructor Description SQL(String sql)
Create a new SQL string.SQL(String sql, List<String> parameters, List<String> values)
Create a new SQL string with parameters that can be replaced.SQL(Resource resource)
Create a new SQL string from a resource.SQL(Resource resource, List<String> parameters, List<String> values)
Create a new SQL string with parameters that can be replaced. -
Method Summary
-
Constructor Details
-
SQL
Create a new SQL string.- Parameters:
sql
- The String containing SQL
-
SQL
Create a new SQL string from a resource.- Parameters:
resource
- The resource containing
-
SQL
Create a new SQL string with parameters that can be replaced.- Parameters:
sql
- The String containing SQL with replaceable partsparameters
- The parameters that are to be replacedvalues
- The values that the parameters are to be replaced with
-
SQL
Create a new SQL string with parameters that can be replaced.- Parameters:
resource
- The resource containing SQL with replaceable partsparameters
- The parameters that are to be replacedvalues
- The values that the parameters are to be replaced with
-
-
Method Details
-
getSQL
Get the SQL to be executed.- Returns:
- The SQL.
-