org.teiid.query.sql.proc
Class HasCriteria

java.lang.Object
  extended by org.teiid.query.sql.lang.Criteria
      extended by org.teiid.query.sql.lang.PredicateCriteria
          extended by org.teiid.query.sql.proc.HasCriteria
All Implemented Interfaces:
java.lang.Cloneable, LanguageObject, Expression

public class HasCriteria
extends PredicateCriteria

This object represents the criteria used in the stored procedure language to determine if a type of criteria is specified on a user's query.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.teiid.query.sql.lang.PredicateCriteria
PredicateCriteria.Negatable
 
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject
LanguageObject.Util
 
Constructor Summary
HasCriteria()
          Constructor for HasCriteria.
HasCriteria(CriteriaSelector selector)
          Constructor for HasCriteria.
 
Method Summary
 void acceptVisitor(LanguageVisitor visitor)
          Method for accepting a visitor.
 java.lang.Object clone()
          Deep clone statement to produce a new identical statement.
 boolean equals(java.lang.Object obj)
          Compare two HasCriteria for equality.
 CriteriaSelector getSelector()
          Get the CriteriaSelector
 int hashCode()
          Get hashcode for HasCriteria.
 void setSelector(CriteriaSelector selector)
          Set the CriteriaSelector
 java.lang.String toString()
          Returns a string representation of an instance of this class.
 
Methods inherited from class org.teiid.query.sql.lang.Criteria
combineCriteria, combineCriteria, combineCriteria, getType, isResolved, separateCriteriaByAnd, toConjunctiveNormalForm, toDisjunctiveNormalForm
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HasCriteria

public HasCriteria()
Constructor for HasCriteria.


HasCriteria

public HasCriteria(CriteriaSelector selector)
Constructor for HasCriteria.

Parameters:
selector - The CriteriaSelector of this obj
Method Detail

getSelector

public CriteriaSelector getSelector()
Get the CriteriaSelector

Returns:
CriteriaSelector of this obj

setSelector

public void setSelector(CriteriaSelector selector)
Set the CriteriaSelector

Parameters:
selector - The CriteriaSelector of this obj

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

clone

public java.lang.Object clone()
Deep clone statement to produce a new identical statement.

Specified by:
clone in interface LanguageObject
Specified by:
clone in class PredicateCriteria
Returns:
Deep clone

equals

public boolean equals(java.lang.Object obj)
Compare two HasCriteria for equality. They will only evaluate to equal if they are IDENTICAL: the criteriaSelectors are equal.

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

hashCode

public int hashCode()
Get hashcode for HasCriteria. WARNING: This hash code relies on the hash codes of the CriteriaSelector on this object. Hash code is only valid after the CriteriaSelector has been set on this object.

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

toString

public java.lang.String toString()
Returns a string representation of an instance of this class.

Overrides:
toString in class Criteria
Returns:
String representation of object


Copyright © 2011. All Rights Reserved.