Package org.teiid.query.sql.lang
Class ImmutableCompareCriteria
- java.lang.Object
-
- org.teiid.query.sql.lang.Criteria
-
- org.teiid.query.sql.lang.PredicateCriteria
-
- org.teiid.query.sql.lang.AbstractCompareCriteria
-
- org.teiid.query.sql.lang.CompareCriteria
-
- org.teiid.query.sql.lang.ImmutableCompareCriteria
-
- All Implemented Interfaces:
Cloneable
,BinaryComparison
,PredicateCriteria.Negatable
,LanguageObject
,Expression
public class ImmutableCompareCriteria extends CompareCriteria
-
-
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 ImmutableCompareCriteria(Expression leftExpression, int operator, Expression rightExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setLeftExpression(Expression expression)
Set left expression.void
setOperator(int operator)
Sets the operator.void
setOptional(Boolean isOptional)
Set during planning to indicate that this criteria is no longer needed to correctly process a joinvoid
setRightExpression(Expression expression)
Set right expression.-
Methods inherited from class org.teiid.query.sql.lang.CompareCriteria
acceptVisitor, clone, equals, getIsOptional, getReverseOperator, getRightExpression, hashCode, isOptional, set
-
Methods inherited from class org.teiid.query.sql.lang.AbstractCompareCriteria
getInverseOperator, getLeftExpression, getOperator, getOperator, getOperatorAsString, negate
-
Methods inherited from class org.teiid.query.sql.lang.Criteria
applyDemorgan, combineCriteria, combineCriteria, combineCriteria, getType, separateCriteriaByAnd, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teiid.query.sql.lang.BinaryComparison
getLeftExpression
-
-
-
-
Constructor Detail
-
ImmutableCompareCriteria
public ImmutableCompareCriteria(Expression leftExpression, int operator, Expression rightExpression)
-
-
Method Detail
-
setLeftExpression
public void setLeftExpression(Expression expression)
Description copied from class:AbstractCompareCriteria
Set left expression.- Specified by:
setLeftExpression
in interfaceBinaryComparison
- Overrides:
setLeftExpression
in classAbstractCompareCriteria
- Parameters:
expression
- Left expression
-
setRightExpression
public void setRightExpression(Expression expression)
Description copied from class:CompareCriteria
Set right expression.- Specified by:
setRightExpression
in interfaceBinaryComparison
- Overrides:
setRightExpression
in classCompareCriteria
- Parameters:
expression
- Right expression
-
setOperator
public void setOperator(int operator)
Description copied from class:AbstractCompareCriteria
Sets the operator.- Overrides:
setOperator
in classAbstractCompareCriteria
-
setOptional
public void setOptional(Boolean isOptional)
Description copied from class:CompareCriteria
Set during planning to indicate that this criteria is no longer needed to correctly process a join- Overrides:
setOptional
in classCompareCriteria
-
-