BEA Systems, Inc.

com.beasys.commerce.axiom.tags
Class PreparedStatementTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--com.beasys.commerce.axiom.tags.PreparedStatementTag

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

Implements the methods necessary to support the preparedStatement tag.

See Also:
Serialized Form

Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Constructor Summary
PreparedStatementTag()
           
 
Method Summary
 int doAfterBody()
          Pushes output to the JSP page from the buffered BodyContent.
 int doStartTag()
          Gets the requested Portlet property and output to Jsp page.
 java.lang.String getId()
          Get the value of the id.
 java.lang.String getSql()
          Get the value of the sql statement.
 java.lang.String getTransactionIsolationLevel()
          Get the database transaction isolation level.
 void setId(java.lang.String theId)
          Set the value of id.
 void setSql(java.lang.String theSql)
          Set the value of the sql statement.
 void setTransactionIsolationLevel(java.lang.String aLevel)
          Set the database transaction isolation level.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparedStatementTag

public PreparedStatementTag()
Method Detail

setId

public void setId(java.lang.String theId)
Set the value of id.
Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport
Parameters:
theId - Value to assign to id.

getId

public java.lang.String getId()
Get the value of the id.
Overrides:
getId in class javax.servlet.jsp.tagext.TagSupport
Returns:
Value of id.

setSql

public void setSql(java.lang.String theSql)
Set the value of the sql statement.
Parameters:
theSql - Value to assign.

getSql

public java.lang.String getSql()
Get the value of the sql statement.
Returns:
Value of sql statement.

setTransactionIsolationLevel

public void setTransactionIsolationLevel(java.lang.String aLevel)
                                  throws javax.servlet.jsp.JspTagException
Set the database transaction isolation level.
Parameters:
aLevel - - valid values are (default is 2): 0 = TRANSACTION_NONE 1 = TRANSACTION_READ_UNCOMMITTED 2 = TRANSACTION_READ_COMMITTED 4 = TRANSACTION_REPEATABLE_READ 8 = TRANSACTION_SERIALIZABLE

getTransactionIsolationLevel

public java.lang.String getTransactionIsolationLevel()
Get the database transaction isolation level.
Returns:
int

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Gets the requested Portlet property and output to Jsp page.
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
a value telling the JSP engine to skip the body of the tag or to skip it.

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Pushes output to the JSP page from the buffered BodyContent.
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
a value telling the JSP engine we are done evaluating the body and no more iterations are necessary.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved