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 Details

    • SQL

      public SQL​(String sql)
      Create a new SQL string.
      Parameters:
      sql - The String containing SQL
    • SQL

      public SQL​(Resource resource)
      Create a new SQL string from a resource.
      Parameters:
      resource - The resource containing
    • SQL

      public SQL​(String sql, List<String> parameters, List<String> values)
      Create a new SQL string with parameters that can be replaced.
      Parameters:
      sql - The String containing SQL with replaceable parts
      parameters - The parameters that are to be replaced
      values - The values that the parameters are to be replaced with
    • SQL

      public SQL​(Resource resource, List<String> parameters, List<String> values)
      Create a new SQL string with parameters that can be replaced.
      Parameters:
      resource - The resource containing SQL with replaceable parts
      parameters - The parameters that are to be replaced
      values - The values that the parameters are to be replaced with
  • Method Details

    • getSQL

      public String getSQL()
      Get the SQL to be executed.
      Returns:
      The SQL.