isql.builder
Class WhereBuilder

java.lang.Object
  extended by isql.builder.WhereBuilder

public class WhereBuilder
extends java.lang.Object

Builds the where clause. It is composed by sub-clauses connected with the operators AND, OR and negated with the operator NOT The expressions are similar to the ones in the select part of the query. but with small differences (no CASE expressions).

Author:
SHZ Oct 10, 2007

Constructor Summary
WhereBuilder(ColumnValues values)
           
 
Method Summary
 IPredicate build(ISQLSelectParser.ISearchCondition condition)
          The method to call to evaluate a whole where clause
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhereBuilder

public WhereBuilder(ColumnValues values)
Method Detail

build

public IPredicate build(ISQLSelectParser.ISearchCondition condition)
                 throws ISQLException
The method to call to evaluate a whole where clause

Parameters:
condition - the original where clause coming from ANTLR
Returns:
the built predicate tree resulting
Throws:
ISQLException