org.apache.taglibs.dbtags.preparedstatement
Class BaseSetterBodyTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.taglibs.dbtags.preparedstatement.BaseSetterBodyTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
SetColumnTag

public class BaseSetterBodyTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Base class for all the setter body tags in the preparedstatement package.

Author:
Morgan Delagrange
See Also:
Serialized Form

Field Summary
protected  java.lang.String _attributeName
           
protected  int _position
           
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
BaseSetterBodyTag()
           
 
Method Summary
protected  java.lang.Object getAttribute(java.lang.String name)
          Gets the page attribute for the tag
protected  java.sql.PreparedStatement getPreparedStatement()
          get the PreparedStatement from the enclosing tag
 void release()
           
 void setName(java.lang.String attributeName)
          Name of the page attribute that will be assigned to the statement.
 void setPosition(int position)
          Sets the column number of the prepared statement.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

_position

protected int _position

_attributeName

protected java.lang.String _attributeName
Constructor Detail

BaseSetterBodyTag

public BaseSetterBodyTag()
Method Detail

setPosition

public void setPosition(int position)
Sets the column number of the prepared statement.

Parameters:
position - column index

setName

public void setName(java.lang.String attributeName)
Name of the page attribute that will be assigned to the statement.

Parameters:
attributeName - attribute name

getAttribute

protected java.lang.Object getAttribute(java.lang.String name)
                                 throws javax.servlet.jsp.JspTagException
Gets the page attribute for the tag

Parameters:
name - name of the attribute
Returns:
the page attribute
Throws:
javax.servlet.jsp.JspTagException - thrown when the page attribute does not exist

getPreparedStatement

protected java.sql.PreparedStatement getPreparedStatement()
                                                   throws javax.servlet.jsp.JspTagException
get the PreparedStatement from the enclosing tag

Returns:
the PreparedStatement
Throws:
javax.servlet.jsp.JspTagException - thrown if no PreparedStatement exists

release

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


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.