org.dftproject.genesis.core.data.nodes
Class OrExpression

java.lang.Object
  extended by org.dftproject.genesis.core.data.nodes.OrExpression
All Implemented Interfaces:
IExpression

public class OrExpression
extends java.lang.Object
implements IExpression

An expression which takes the disjunction of one or more other expressions.


Constructor Summary
OrExpression()
           
 
Method Summary
 void addExpression(IExpression expression)
          Add an expression to the list.
 java.lang.String getSQL(DataConnection conn, java.lang.String table)
          Returns the SQL fragment this expression represents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrExpression

public OrExpression()
Method Detail

addExpression

public void addExpression(IExpression expression)
Add an expression to the list.

Parameters:
expression - the expression

getSQL

public java.lang.String getSQL(DataConnection conn,
                               java.lang.String table)
Description copied from interface: IExpression
Returns the SQL fragment this expression represents.

Specified by:
getSQL in interface IExpression
Parameters:
conn - a data connection
table - alias of the table this expression uses
Returns:
SQL fragment