Package com.tonbeller.wcf.param

Implements Session Parameters.

See:
          Description

Interface Summary
ParamLinkTag.Action Actions may be added to the link.
SqlExpr  
SqlExprVisitor  
 

Class Summary
ParamLinkActionTag calls a method on a bean when invoked.
ParamLinkGroupTag Groups several ParamLink Tags.
ParamLinkNestedTag  
ParamLinkParamTag Tag nested inside a ParamLinkTag.
ParamLinkTag produces an <a href="..."
ParamLinkTag.InvokeMethodAction invokes a Method with the signature methodName(RequestContext context) throws Exception;
ParamSqlMappingTag  
ParamSqlTag outputs SQL for a SessionParam.
PushParamTag Overrides a session param between start and end tag.
SessionParam  
SessionParamPool A pool that contains all SessionParam instances of a session.
SessionParamPoolTag ensures the SessionParamPool exists
SetParamTag creates or replaces a session parameter
SetParamTagBase  
SqlAndExpr  
SqlBetweenExpr  
SqlColumnConstraint  
SqlDummyExpr Dummy SQL Expression like "1=1"
SqlEqualExpr generates WHERE COLUMN = 'VALUE-LITERAL'
SqlGenerator  
SqlInExpr generates WHERE COLUMN IN ('VALUE-LITERAL-1', ...)
SqlOrExpr  
SqlValueMap implements a map that maps to the sqlValue property of the SessionParam's in the SessionParamPool.
 

Exception Summary
MissingParameterException indicates that a parameter was expected in the paramPool but was not found.
 

Package com.tonbeller.wcf.param Description

Implements Session Parameters.

A SessionParam is a parameter that can modify MDX and SQL queries. The parameters are held in a SessionParamPool. There is one pool per HttpSession.

SessionParam may be created in several ways:

Parameters may be used in sql queries. Example for JSTL's sql tag:
<wcf:paramPool/>

<sql:query var="result" dataSource="${myDataSource}">
  SELECT ...
  FROM CUSTOMERS T1, ...
  WHERE <wcf:paramSql param="CUSTOMERID" qname="T1.CUSTOMER_PK"/>
</sql:query>
See unit tests and paramtest.jsp for more examples.