Package org.teiid.query.sql.lang
Class IsDistinctCriteria
- java.lang.Object
-
- org.teiid.query.sql.lang.Criteria
-
- org.teiid.query.sql.lang.PredicateCriteria
-
- org.teiid.query.sql.lang.IsDistinctCriteria
-
- All Implemented Interfaces:
Cloneable
,PredicateCriteria.Negatable
,LanguageObject
,Expression
public class IsDistinctCriteria extends PredicateCriteria implements PredicateCriteria.Negatable
Represents criteria such as: "<expression> IS DISTINCT FROM <expression>". However due to a lack of direct support for new/old groups as row values, we reference group symbols here instead.
-
-
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
Constructors Constructor Description IsDistinctCriteria()
Constructs a default instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.Object
clone()
Deep copy of objectboolean
equals(Object obj)
Compares this criteria to another object for equalityLanguageObject
getLeftRowValue()
LanguageObject
getRightRowValue()
int
hashCode()
Get hash code.boolean
isNegated()
Returns whether this criteria is negated.void
negate()
void
setLeftRowValue(LanguageObject leftRowValue)
void
setNegated(boolean negationFlag)
Sets the negation flag for this criteria.void
setRightRowValue(LanguageObject rightRowValue)
-
Methods inherited from class org.teiid.query.sql.lang.Criteria
applyDemorgan, combineCriteria, combineCriteria, combineCriteria, getType, separateCriteriaByAnd, toString
-
-
-
-
Method Detail
-
setLeftRowValue
public void setLeftRowValue(LanguageObject leftRowValue)
-
setRightRowValue
public void setRightRowValue(LanguageObject rightRowValue)
-
getLeftRowValue
public LanguageObject getLeftRowValue()
-
getRightRowValue
public LanguageObject getRightRowValue()
-
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 interfacePredicateCriteria.Negatable
-
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.- Specified by:
acceptVisitor
in interfaceLanguageObject
- Parameters:
visitor
- Visitor being used
-
hashCode
public int hashCode()
Get hash code. WARNING: The hash code is based on data in the criteria. If data values are changed, the hash code will change - don't hash this object and change values.
-
equals
public boolean equals(Object obj)
Compares this criteria to another object for equality
-
clone
public Object clone()
Deep copy of object- Specified by:
clone
in interfaceLanguageObject
- Specified by:
clone
in classPredicateCriteria
- Returns:
- Deep copy of object
-
-