com.servingxml.components.sql
Class WhenSqlStatement

java.lang.Object
  extended by com.servingxml.components.sql.WhenSqlStatement
All Implemented Interfaces:
AlternativeSqlStatement

public class WhenSqlStatement
extends java.lang.Object
implements AlternativeSqlStatement


Constructor Summary
WhenSqlStatement(Environment env, XPathBooleanExpressionFactory factory, AbstractSqlStatement sqlStatement)
           
 
Method Summary
 void buildSql(ServiceContext context, Flow flow, java.lang.StringBuilder buf)
           
 boolean testsTrue(ServiceContext context, Flow flow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhenSqlStatement

public WhenSqlStatement(Environment env,
                        XPathBooleanExpressionFactory factory,
                        AbstractSqlStatement sqlStatement)
Method Detail

testsTrue

public boolean testsTrue(ServiceContext context,
                         Flow flow)
Specified by:
testsTrue in interface AlternativeSqlStatement

buildSql

public void buildSql(ServiceContext context,
                     Flow flow,
                     java.lang.StringBuilder buf)
Specified by:
buildSql in interface AlternativeSqlStatement