com.metamatrix.query.processor.xml
Class CriteriaCondition

java.lang.Object
  extended by com.metamatrix.query.processor.xml.Condition
      extended by com.metamatrix.query.processor.xml.CriteriaCondition
Direct Known Subclasses:
RecurseProgramCondition

public class CriteriaCondition
extends Condition

A condition based on a sql Criteria Object.


Field Summary
protected  Criteria criteria
           
 
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 com.metamatrix.query.processor.xml.Condition
getThenProgram, isProgramRecursive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

criteria

protected Criteria criteria
Constructor Detail

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 Criteria
resultSetNames - zero or more String result set names which pertain to the criteria
thenProgram - Program which is the "then" clause
Method Detail

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.