|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.dbtags.resultset.BaseGetterTag
public class BaseGetterTag
Base class for all the getter tags in the resultset package.
| Field Summary | |
|---|---|
protected java.lang.String |
_attributeName
|
protected java.lang.String |
_locale
|
protected java.sql.ResultSetMetaData |
_metaData
|
protected java.lang.String |
_scope
|
protected ResultSetTag |
_tag
|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
BaseGetterTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
If I understand the new JSP spec correctly, release() is NOT called between invocations of a cached taglib, so I guess we do it manually or write a new method. |
protected java.util.Locale |
getLocale(java.lang.String strLocale)
Create a Locale for the formatting of dates, times, and numbers. |
protected java.sql.ResultSetMetaData |
getMetaData()
Get the MetaData object for this result set |
int |
getPosition()
Gets the column number for the result set. |
protected java.sql.ResultSet |
getResultSet()
Get the ResultSet object from the enclosing resultset tag |
protected ResultSetTag |
getResultSetTag()
Get the parent result set tag |
void |
release()
|
protected void |
setAttribute(java.lang.String name,
java.lang.Object object,
java.lang.String scope)
Set an attribute to the specified scope. |
void |
setColName(java.lang.String strName)
Sets the column name if the result set. |
void |
setLocale(java.lang.String strLocale)
|
void |
setPosition(int position)
Sets the column number of the result set. |
void |
setPosition(java.lang.String strPosition)
Sets the column number of the result set. |
void |
setScope(java.lang.String scope)
Scope of the attribute. |
void |
setTo(java.lang.String attributeName)
Name of the attribute. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _attributeName
protected java.lang.String _scope
protected ResultSetTag _tag
protected java.sql.ResultSetMetaData _metaData
protected java.lang.String _locale
| Constructor Detail |
|---|
public BaseGetterTag()
| Method Detail |
|---|
public void setLocale(java.lang.String strLocale)
public void setPosition(int position)
position - column index
public int getPosition()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public void setPosition(java.lang.String strPosition)
throws javax.servlet.jsp.JspTagException
position - column index
javax.servlet.jsp.JspTagExceptionpublic void setColName(java.lang.String strName)
strName - The column name.public void setTo(java.lang.String attributeName)
attributeName - attribute namepublic void setScope(java.lang.String scope)
scope - scope (page | request | session | application)
protected void setAttribute(java.lang.String name,
java.lang.Object object,
java.lang.String scope)
name - name of the attributeobject - the attributescope - attribute scope (page | request | session | application)
protected java.sql.ResultSet getResultSet()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
protected java.sql.ResultSetMetaData getMetaData()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
protected ResultSetTag getResultSetTag()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionprotected java.util.Locale getLocale(java.lang.String strLocale)
strLocale -
public int doEndTag()
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||