com.metamatrix.query.sql.lang
Class NotCriteria

java.lang.Object
  extended by com.metamatrix.query.sql.lang.Criteria
      extended by com.metamatrix.query.sql.lang.LogicalCriteria
          extended by com.metamatrix.query.sql.lang.AtomicCriteria
              extended by com.metamatrix.query.sql.lang.NotCriteria
All Implemented Interfaces:
LanguageObject, java.io.Serializable, java.lang.Cloneable

public class NotCriteria
extends AtomicCriteria

A logical criteria that takes the logical NOT of the contained criteria. That is, if the contained criteria returns true, this criteria returns false. For example: "NOT (element = 5)"

See Also:
Serialized Form

Constructor Summary
NotCriteria()
          Constructs a default instance of this class.
NotCriteria(Criteria crit)
          Constructs an instance of this class with sub-criteria.
 
Method Summary
 void acceptVisitor(LanguageVisitor visitor)
          Method for accepting a visitor.
 java.lang.Object clone()
          Deep copy of object
 boolean equals(java.lang.Object obj)
          Compare equality of two AtomicCriteria.
 int hashCode()
          Get hash code
 
Methods inherited from class com.metamatrix.query.sql.lang.AtomicCriteria
getCriteria, setCriteria
 
Methods inherited from class com.metamatrix.query.sql.lang.Criteria
combineCriteria, combineCriteria, combineCriteria, separateCriteriaByAnd, toConjunctiveNormalForm, toDisjunctiveNormalForm, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotCriteria

public NotCriteria()
Constructs a default instance of this class.


NotCriteria

public NotCriteria(Criteria crit)
Constructs an instance of this class with sub-criteria.

Parameters:
crit - Contained criteria
Method Detail

acceptVisitor

public void acceptVisitor(LanguageVisitor visitor)
Description copied from interface: LanguageObject
Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.

Parameters:
visitor - Visitor being used

equals

public boolean equals(java.lang.Object obj)
Compare equality of two AtomicCriteria.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Other object
Returns:
True if equivalent

hashCode

public int hashCode()
Get hash code

Overrides:
hashCode in class java.lang.Object
Returns:
Hash code

clone

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

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


Copyright © 2009. All Rights Reserved.