Package adql.query

Class ClauseConstraints

All Implemented Interfaces:
ADQLObject, Iterable<ADQLConstraint>
Direct Known Subclasses:
ConstraintsGroup

public class ClauseConstraints extends ClauseADQL<ADQLConstraint>

Represents a clause which deals with ADQLConstraints (i.e. WHERE, HAVING).

The logical operators AND (see AND) and OR (see OR) are managed in a separated list by this class. To add a constraint you can use the default add functions or use the one defined by this class:

  • add(String, ADQLConstraint: which lets you specify the logical operator between the added constraint (index=size()) and the previous one (index=size()-1) in the list.
  • add(int, String, ADQLConstraint: which lets you specify the logical operator between the added constraint (index) and the previous one (index-1) in the list.

If no logical separator is specified the default one is used (see getDefaultSeparator()). The only way to set this default separator is during the ClauseConstraints creation (see ClauseConstraints(String, String)).

Version:
01/2012
Author:
Grégory Mantelet (CDS)
See Also: