com.metamatrix.query.sql.lang
Class DependentSetCriteria

java.lang.Object
  extended by com.metamatrix.query.sql.lang.Criteria
      extended by com.metamatrix.query.sql.lang.PredicateCriteria
          extended by com.metamatrix.query.sql.lang.AbstractSetCriteria
              extended by com.metamatrix.query.sql.lang.DependentSetCriteria
All Implemented Interfaces:
PredicateCriteria.Negatable, LanguageObject, ContextReference, java.io.Serializable, java.lang.Cloneable

public class DependentSetCriteria
extends AbstractSetCriteria
implements ContextReference

The DependentSetCriteria is missing the value set until it is filled during processing. This allows a criteria to contain a dynamic set of values provided by a separate processing node.

Since:
5.0.1
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.metamatrix.query.sql.lang.PredicateCriteria
PredicateCriteria.Negatable
 
Constructor Summary
DependentSetCriteria(Expression expr, java.lang.String id)
          Construct with the left expression
 
Method Summary
 void acceptVisitor(LanguageVisitor visitor)
          Method for accepting a visitor.
 java.lang.Object clone()
          Deep copy of object.
 boolean equals(java.lang.Object obj)
          Override equals() method.
 java.lang.String getContextSymbol()
           
 Expression getValueExpression()
          Get the independent value expression
 int hashCode()
          Get hash code.
 void setValueExpression(Expression valueExpression)
          Set the independent value expression
 
Methods inherited from class com.metamatrix.query.sql.lang.AbstractSetCriteria
getExpression, isNegated, negate, setExpression, setNegated
 
Methods inherited from class com.metamatrix.query.sql.lang.Criteria
combineCriteria, combineCriteria, combineCriteria, separateCriteriaByAnd, toConjunctiveNormalForm, toDisjunctiveNormalForm, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DependentSetCriteria

public DependentSetCriteria(Expression expr,
                            java.lang.String id)
Construct with the left expression

Method Detail

getContextSymbol

public java.lang.String getContextSymbol()
Specified by:
getContextSymbol in interface ContextReference

getValueExpression

public Expression getValueExpression()
Get the independent value expression

Specified by:
getValueExpression in interface ContextReference
Returns:
Returns the valueExpression.

setValueExpression

public void setValueExpression(Expression valueExpression)
Set the independent value expression

Parameters:
valueExpression - The valueExpression to set.

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 interface LanguageObject
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.

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

equals

public boolean equals(java.lang.Object obj)
Override equals() method.

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

clone

public java.lang.Object clone()
Deep copy of object. The values iterator source of this object will not be cloned - it will be passed over as is and shared with the original object, just like Reference.

Specified by:
clone in interface LanguageObject
Specified by:
clone in class AbstractSetCriteria
Returns:
Deep copy of object


Copyright © 2009. All Rights Reserved.