public class SqlQueryTag extends BodyTagSupport implements SQLExecutionTag
bodyContentid, pageContextEVAL_BODY_BUFFERED, EVAL_BODY_TAGEVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
SqlQueryTag() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSQLParameter(java.lang.Object value)
Adds a parameter.
|
int |
doEndTag()
Processed at the end of the tag.
|
static java.sql.Connection |
getConnection(PageContext pageContext,
java.lang.Object ds) |
static javax.sql.DataSource |
getDataSource(PageContext pageContext,
java.lang.Object ds) |
void |
setDataSource(java.lang.Object dataSource)
Sets the data source.
|
void |
setMaxRows(int maxRows)
Sets the maximum number of rows.
|
void |
setScope(java.lang.String scope)
Sets the scope.
|
void |
setSql(java.lang.String sql)
Sets the SQL.
|
void |
setStartRow(int startRow)
Sets the start row.
|
void |
setVar(java.lang.String var)
Sets the variable name.
|
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParent, setPageContext, setParentpublic void setSql(java.lang.String sql)
public void setVar(java.lang.String var)
public void setScope(java.lang.String scope)
public void setDataSource(java.lang.Object dataSource)
throws JspException
JspExceptionpublic void setMaxRows(int maxRows)
throws JspException
JspExceptionpublic void setStartRow(int startRow)
public void addSQLParameter(java.lang.Object value)
addSQLParameter in interface SQLExecutionTagpublic int doEndTag()
throws JspException
TagSupportdoEndTag in interface TagdoEndTag in class TagSupportJspExceptionpublic static javax.sql.DataSource getDataSource(PageContext pageContext, java.lang.Object ds) throws JspException
JspExceptionpublic static java.sql.Connection getConnection(PageContext pageContext, java.lang.Object ds) throws JspException
JspException