com.caucho.jstl.el
Class SqlQueryTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.caucho.jstl.el.SqlQueryTag
- All Implemented Interfaces:
- java.io.Serializable, SQLExecutionTag, BodyTag, IterationTag, JspTag, Tag
public class SqlQueryTag
- extends BodyTagSupport
- implements SQLExecutionTag
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlQueryTag
public SqlQueryTag()
setSql
public void setSql(Expr sql)
- Sets the JSP-EL expression for the SQL.
setVar
public void setVar(java.lang.String var)
- Sets the variable name.
setScope
public void setScope(java.lang.String scope)
- Sets the scope.
setDataSource
public void setDataSource(Expr dataSource)
- Sets the data source.
setMaxRows
public void setMaxRows(Expr maxRows)
- Sets the maximum number of rows.
setStartRow
public void setStartRow(Expr startRow)
- Sets the start row.
addSQLParameter
public void addSQLParameter(java.lang.Object value)
- Adds a parameter.
- Specified by:
addSQLParameter
in interface SQLExecutionTag
doEndTag
public int doEndTag()
throws JspException
- Description copied from class:
TagSupport
- Processed at the end of the tag. The default behavior continues
with the rest of the JSP.
- Specified by:
doEndTag
in interface Tag
- Overrides:
doEndTag
in class TagSupport
- Returns:
- EVAL_PAGE to continue the page SKIP_PAGE to stop.
- Throws:
JspException
getDataSource
public static javax.sql.DataSource getDataSource(PageContext pageContext,
java.lang.Object ds)
throws JspException
- Throws:
JspException