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
Modifier and Type | Method and Description |
---|---|
void |
check(ADQLQuery query)
Checks the given
ADQLQuery . |
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.
query
- The query to check.ParseException
- If the given query is not correct.