com.metamatrix.query.sql.lang
Class AbstractSetCriteria

java.lang.Object
  extended by com.metamatrix.query.sql.lang.Criteria
      extended by com.metamatrix.query.sql.lang.PredicateCriteria
          extended by com.metamatrix.query.sql.lang.AbstractSetCriteria
All Implemented Interfaces:
PredicateCriteria.Negatable, LanguageObject, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
DependentSetCriteria, SetCriteria, SubquerySetCriteria

public abstract class AbstractSetCriteria
extends PredicateCriteria
implements PredicateCriteria.Negatable

This is an abstract class to define some common functionality in the two varieties of IN criteria: SetCriteria (where values are specified) and SubquerySetCriteria (where a subquery is defined and will supply the values for the IN set).

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.metamatrix.query.sql.lang.PredicateCriteria
PredicateCriteria.Negatable
 
Constructor Summary
protected AbstractSetCriteria()
          Constructor for AbstractSetCriteria.
 
Method Summary
abstract  java.lang.Object clone()
          Deep copy of object
 Expression getExpression()
          Gets the membership expression to be compared.
 boolean isNegated()
          Returns whether this criteria is negated.
 void negate()
           
 void setExpression(Expression expression)
          Sets the membership expression
 void setNegated(boolean negationFlag)
          Sets the negation flag for this criteria.
 
Methods inherited from class com.metamatrix.query.sql.lang.Criteria
combineCriteria, combineCriteria, combineCriteria, separateCriteriaByAnd, toConjunctiveNormalForm, toDisjunctiveNormalForm, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.metamatrix.query.sql.LanguageObject
acceptVisitor
 

Constructor Detail

AbstractSetCriteria

protected AbstractSetCriteria()
Constructor for AbstractSetCriteria.

Method Detail

getExpression

public Expression getExpression()
Gets the membership expression to be compared.

Returns:
The membership expression

setExpression

public void setExpression(Expression expression)
Sets the membership expression

Parameters:
expression - The membership expression

isNegated

public boolean isNegated()
Returns whether this criteria is negated.

Returns:
flag indicating whether this criteria contains a NOT

setNegated

public void setNegated(boolean negationFlag)
Sets the negation flag for this criteria.

Parameters:
negationFlag - true if this criteria contains a NOT; false otherwise

negate

public void negate()
Specified by:
negate in interface PredicateCriteria.Negatable

clone

public abstract java.lang.Object clone()
Deep copy of object

Specified by:
clone in interface LanguageObject
Specified by:
clone in class PredicateCriteria
Returns:
Deep copy of object


Copyright © 2009. All Rights Reserved.