net.sf.jameleon.sql
Class SqlParamTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by net.sf.jameleon.ParamTag
          extended by net.sf.jameleon.sql.SqlParamTag
All Implemented Interfaces:
Tag

public class SqlParamTag
extends ParamTag

Used to set binding parameter to the parent sql-update tag. An example might be:


 <sql-update 
   functionId="Insert a row into test table via a prepared statement with multiple param values"
     sqlUpdateSql="insert into test(test_str, test_str2) values(?,?)"/>
       <sql-param>
         <sql-param-value>text2>/sql-param-value>
         <sql-param-value>text3>/sql-param-value>
       </sql-param>
 </sql-update>
 

Tag Name: <sql-param>

Field Summary
 
Fields inherited from class net.sf.jameleon.ParamTag
fromVariable, name, paramType, values
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
SqlParamTag()
           
 
Method Summary
protected  void validate()
          Used to validate everything is set up correctly.
 
Methods inherited from class net.sf.jameleon.ParamTag
addParamValue, doTag, getFromVariable, getName, getParamName, getParamType, getParamValues, getValue, setFromVariable, setParamName, setParamType, setParamValue
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlParamTag

public SqlParamTag()
Method Detail

validate

protected void validate()
                 throws MissingAttributeException,
                        JellyTagException
Used to validate everything is set up correctly.

Overrides:
validate in class ParamTag
Throws:
MissingAttributeException - - When a required attribute isn't set.
JellyTagException - - When this tag is used out of context.


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.