org.edg.info.sqlutil.rdb
Class SQLExpEvaluator

java.lang.Object
  extended byorg.edg.info.sqlutil.rdb.SQLExpEvaluator

public class SQLExpEvaluator
extends java.lang.Object

Evaluate SQL expressions


Constructor Summary
SQLExpEvaluator()
           
 
Method Summary
 boolean eval(Tuple tuple, ExpSelConst exp)
          Evaluate a boolean expression to true or false (for example, SQL WHERE clauses are boolean expressions)
 java.lang.Object evalExpValue(Tuple tuple, ExpSelConst exp)
          Evaluate a numeric or string expression (example: a+1)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLExpEvaluator

public SQLExpEvaluator()
Method Detail

eval

public boolean eval(Tuple tuple,
                    ExpSelConst exp)
             throws java.sql.SQLException
Evaluate a boolean expression to true or false (for example, SQL WHERE clauses are boolean expressions)

Parameters:
tuple - The tuple on which to evaluate the expression
exp - The expression to evaluate
Returns:
true if the expression evaluate to true for this tuple, false if not.
Throws:
java.sql.SQLException - DOCUMENT ME!

evalExpValue

public java.lang.Object evalExpValue(Tuple tuple,
                                     ExpSelConst exp)
                              throws java.sql.SQLException
Evaluate a numeric or string expression (example: a+1)

Parameters:
tuple - The tuple on which to evaluate the expression
exp - The expression to evaluate
Returns:
The expression's value
Throws:
java.sql.SQLException - DOCUMENT ME!