Package org.teiid.query.sql.lang
Class AbstractSetCriteria
- java.lang.Object
-
- org.teiid.query.sql.lang.Criteria
-
- org.teiid.query.sql.lang.PredicateCriteria
-
- org.teiid.query.sql.lang.AbstractSetCriteria
-
- All Implemented Interfaces:
Cloneable,PredicateCriteria.Negatable,LanguageObject,Expression
- 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) andSubquerySetCriteria(where a subquery is defined and will supply the values for the IN set).
-
-
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 Modifier Constructor Description protectedAbstractSetCriteria()Constructor for AbstractSetCriteria.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Objectclone()Deep copy of objectExpressiongetExpression()Gets the membership expression to be compared.booleanisNegated()Returns whether this criteria is negated.voidnegate()voidsetExpression(Expression expression)Sets the membership expressionvoidsetNegated(boolean negationFlag)Sets the negation flag for this criteria.-
Methods inherited from class org.teiid.query.sql.lang.Criteria
applyDemorgan, combineCriteria, combineCriteria, combineCriteria, getType, separateCriteriaByAnd, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teiid.query.sql.LanguageObject
acceptVisitor
-
-
-
-
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:
negatein interfacePredicateCriteria.Negatable
-
clone
public abstract Object clone()
Deep copy of object- Specified by:
clonein interfaceLanguageObject- Specified by:
clonein classPredicateCriteria- Returns:
- Deep copy of object
-
-