Class SQLQueryEvaluator

java.lang.Object
fr.inria.rules.integraal.storage.external.evaluator.SQLQueryEvaluator
All Implemented Interfaces:
NativeQueryEvaluator<String, List<Object[]>>

public class SQLQueryEvaluator extends Object implements NativeQueryEvaluator<String, List<Object[]>>
Evaluates a SQL query using the associated driver. This evaluator uses Apache's QueryRunner to execute the query on the database The result is a List<Object[]> which represents the list of all resulting tuples.
This evaluator also provides additional methods for inserting data on the database.
  • Constructor Details

    • SQLQueryEvaluator

      public SQLQueryEvaluator(RDBMSDriver driver) throws SQLException
      Construct a new evaluator over the database represented by the given driver
      Parameters:
      driver - representing the database to connect to
      Throws:
      SQLException - if the initial connection to the database cannot be performed
  • Method Details