Package adql.parser

Interface QueryChecker

All Known Implementing Classes:
DBChecker

public interface QueryChecker
Used at the end of the parsing of each ADQL query by the ADQLParser, to check the generated ADQLSet object.

Usually, it consists to check the existence of referenced columns and tables. In this case, one default implementation of this interface can be used: DBChecker

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    check(ADQLSet query)
    Checks the given ADQLSet.
  • Method Details

    • check

      void check(ADQLSet query) throws ParseException
      Checks the given ADQLSet.

      IMPORTANT NOTE: All subqueries must also be checked when calling this function!

      If the query is correct, nothing happens. However at the first detected error, a ParseException is thrown.

      Parameters:
      query - The query to check.
      Throws:
      ParseException - If the given query is not correct.