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 ADQLQuery 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

Version:
1.2 (12/2013)
Author:
Grégory Mantelet (CDS;ARI)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Checks the given ADQLQuery.
  • Method Details

    • check

      void check(ADQLQuery query) throws ParseException

      Checks the given ADQLQuery.

      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.