public class QueryTag extends QueryTagSupport
dataSourceSpecified, maxRows, maxRowsSpecified, rawDataSource, sql, startRow| Constructor and Description |
|---|
QueryTag()
Constructs a new QueryTag.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doStartTag()
Prepares for execution by setting the initial state, such as
getting the
Connection |
void |
setDataSource(String dataSourceEL) |
void |
setMaxRows(String maxRowsEL)
Query result can be limited by specifying
the maximum number of rows returned.
|
void |
setSql(String sqlEL)
Setter method for the SQL statement to use for the
query.
|
void |
setStartRow(String startRowEL)
The index of the first row returned can be
specified using startRow.
|
addSQLParameter, doCatch, doEndTag, doFinally, setScope, setVardoAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic QueryTag()
public void setDataSource(String dataSourceEL)
public void setStartRow(String startRowEL)
public void setMaxRows(String maxRowsEL)
public void setSql(String sqlEL)
public int doStartTag()
throws javax.servlet.jsp.JspException
QueryTagSupportConnectiondoStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class QueryTagSupportjavax.servlet.jsp.JspExceptionCopyright © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.