|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.sql.lang.Criteria
com.metamatrix.query.sql.lang.PredicateCriteria
com.metamatrix.query.sql.lang.AbstractSetCriteria
public abstract class AbstractSetCriteria
This is an abstract class to define some common functionality in the two varieties of
IN criteria: SetCriteria
(where values are specified) and SubquerySetCriteria
(where a subquery is defined and will supply the values for the IN set).
Constructor Summary | |
---|---|
protected |
AbstractSetCriteria()
Constructor for AbstractSetCriteria. |
Method Summary | |
---|---|
abstract java.lang.Object |
clone()
Deep copy of object |
Expression |
getExpression()
Gets the membership expression to be compared. |
abstract ValueIterator |
getValueIterator()
Returns a ValueIterator over the Collection of values that the Criteria tests the Expression for inclusion in. |
boolean |
isNegated()
Returns whether this criteria is negated. |
void |
setExpression(Expression expression)
Sets the membership expression |
void |
setNegated(boolean negationFlag)
Sets the negation flag for this criteria. |
abstract void |
setValueIterator(ValueIterator valueIterator)
Sets the ValueIterator instance on this object. |
Methods inherited from class com.metamatrix.query.sql.lang.Criteria |
---|
combineCriteria, combineCriteria, combineCriteria, separateCriteriaByAnd, toConjunctiveNormalForm, toDisjunctiveNormalForm, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.metamatrix.query.sql.LanguageObject |
---|
acceptVisitor |
Constructor Detail |
---|
protected AbstractSetCriteria()
Method Detail |
---|
public Expression getExpression()
public void setExpression(Expression expression)
expression
- The membership expressionpublic boolean isNegated()
public void setNegated(boolean negationFlag)
negationFlag
- true if this criteria contains a NOT; false otherwisepublic abstract ValueIterator getValueIterator()
Returns a ValueIterator over the Collection of values that the Criteria tests the Expression for inclusion in. This method allows implementors leeway in how the Collection of values of this Criteria are stored.
Subclasses must take care that a ValueIterator returned from
this method is always reset
to the
beginning of the iteration.
Also note that no guarantee is made as to whether or not the same ValueIterator instance is returned by multiple calls to this method, or if a new ValueIterator instance is returned. Clients must be aware that the same instance might be returned multiple times, and modifying the state of one will affect anything else using that reference.
getValueIterator
in interface ValueIteratorProvider
public abstract void setValueIterator(ValueIterator valueIterator)
setValueIterator
in interface ValueIteratorProvider
valueIterator
- an instance of ValueIterator to be set
on this ValueIterator provider (as in the case of subquery
containers whose results are provided externally).ValueIteratorProvider.setValueIterator(com.metamatrix.query.sql.util.ValueIterator)
public abstract java.lang.Object clone()
clone
in interface LanguageObject
clone
in class PredicateCriteria
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |