railo.runtime.tag
Class QueryParam

java.lang.Object
  extended by railo.runtime.ext.tag.TagImpl
      extended by railo.runtime.tag.QueryParam
All Implemented Interfaces:
javax.servlet.jsp.tagext.Tag

public final class QueryParam
extends TagImpl

Checks the data type of a query parameter. The cfqueryparam tag is nested within a cfquery tag. It is embedded within the query SQL statement. If you specify its optional parameters, cfqueryparam also performs data validation.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
QueryParam()
           
 
Method Summary
 int doStartTag()
           
 void release()
           
 void setCfsqltype(String type)
          set the value cfsqltype The SQL type that the parameter (any type) will be bound to.
 void setList(boolean list)
          set the value list Yes or No.
 void setMaxlength(double maxlength)
          set the value maxlength Maximum length of the parameter.
 void setNull(boolean nulls)
          set the value null Yes or No.
 void setScale(double scale)
          set the value scale Number of decimal places of the parameter.
 void setSeparator(String separator)
          set the value separator Specifies the character that separates values in the list of parameter values in the value attribute.
 void setValue(Object value)
          set the value value
 
Methods inherited from class railo.runtime.ext.tag.TagImpl
doEndTag, getParent, required, required, required, required, setPageContext, setPageContext, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryParam

public QueryParam()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class TagImpl
See Also:
Tag.release()

setList

public void setList(boolean list)
set the value list Yes or No. Indicates that the parameter value of the value attribute is a list of values, separated by a separator character. The default is No

Parameters:
list - value to set

setNull

public void setNull(boolean nulls)
set the value null Yes or No. Indicates whether the parameter is passed as a null. If Yes, the tag ignores the value attribute. The default is No.

Parameters:
nulls - value to set

setValue

public void setValue(Object value)
set the value value

Parameters:
value - value to set

setMaxlength

public void setMaxlength(double maxlength)
set the value maxlength Maximum length of the parameter. The default value is the length of the string specified in the value attribute.

Parameters:
maxlength - value to set

setSeparator

public void setSeparator(String separator)
set the value separator Specifies the character that separates values in the list of parameter values in the value attribute. The default is a comma. If you specify a list of values for the value attribute, you must also specify the list attribute.

Parameters:
separator - value to set

setScale

public void setScale(double scale)
set the value scale Number of decimal places of the parameter. The default value is zero.

Parameters:
scale - value to set

setCfsqltype

public void setCfsqltype(String type)
                  throws DatabaseException
set the value cfsqltype The SQL type that the parameter (any type) will be bound to.

Parameters:
type - value to set
Throws:
DatabaseException

doStartTag

public int doStartTag()
               throws PageException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class TagImpl
Throws:
PageException
See Also:
Tag.doStartTag()


Copyright © 2012 Railo