org.teiid.query.processor.xml
Class CriteriaCondition
java.lang.Object
org.teiid.query.processor.xml.Condition
org.teiid.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. |
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,
org.teiid.query.processor.xml.XMLContext context)
throws TeiidComponentException,
TeiidProcessingException
- Description copied from class:
Condition
- This method causes the Condition to evaluate itself.
- Specified by:
evaluate
in class Condition
- Parameters:
env
- XMLProcessorEnvironment of the XMLPlan, maintains state of the running
XML Processor Plan
- Throws:
TeiidComponentException
TeiidProcessingException
- See Also:
org.teiid.query.processor.xml.Condition#evaluate(Map, List, ProcessorEnvironment)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.