com.metamatrix.query.processor.xml
Class CriteriaCondition
java.lang.Object
com.metamatrix.query.processor.xml.Condition
com.metamatrix.query.processor.xml.CriteriaCondition
- Direct Known Subclasses:
- RecurseProgramCondition
public class CriteriaCondition
- extends Condition
A condition based on a sql Criteria Object.
Constructor Summary |
CriteriaCondition(Criteria criteria,
Program thenProgram)
The constructor takes the sql criteria object, the list of result set names which
the Criteria pertains to, and a sub Program which is the "then" clause if this
Condition {link #evaluate evaluates} to true. |
Method Summary |
boolean |
evaluate(XMLProcessorEnvironment env,
com.metamatrix.query.processor.xml.XMLContext context)
This method causes the Condition to evaluate itself. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
criteria
protected Criteria criteria
CriteriaCondition
public CriteriaCondition(Criteria criteria,
Program thenProgram)
- The constructor takes the sql criteria object, the list of result set names which
the Criteria pertains to, and a sub Program which is the "then" clause if this
Condition {link #evaluate evaluates} to true.
- Parameters:
criteria
- sql CriteriaresultSetNames
- zero or more String result set names which pertain to the
criteriathenProgram
- Program which is the "then" clause
evaluate
public boolean evaluate(XMLProcessorEnvironment env,
com.metamatrix.query.processor.xml.XMLContext context)
throws MetaMatrixComponentException,
MetaMatrixProcessingException
- Description copied from class:
Condition
- This method causes the Condition to evaluate itself.
- Specified by:
evaluate
in class Condition
- Parameters:
env
- ProcessorEnvironment of the XMLPlan, maintains state of the running
XML Processor Plan
- Throws:
MetaMatrixComponentException
MetaMatrixProcessingException
- See Also:
com.metamatrix.query.processor.xml.Condition#evaluate(Map, List, ProcessorEnvironment)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2009. All Rights Reserved.