com.caucho.jstl.rt
Class SqlTransactionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.caucho.jstl.rt.SqlTransactionTag
All Implemented Interfaces:
java.io.Serializable, IterationTag, JspTag, Tag, TryCatchFinally

public class SqlTransactionTag
extends TagSupport
implements TryCatchFinally

See Also:
Serialized Form

Field Summary
 
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
SqlTransactionTag()
           
 
Method Summary
 void doCatch(java.lang.Throwable t)
          Invoked if any exception is thrown while evaluating the tag.
 void doFinally()
          Invoked after doEndTag even with an exception.
 int doStartTag()
          Processed at the beginning of the tag.
 void setDataSource(java.lang.Object dataSource)
          Sets the data source
 void setIsolation(java.lang.String isolation)
          Sets the JSP-EL expression for the isolation.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlTransactionTag

public SqlTransactionTag()
Method Detail

setDataSource

public void setDataSource(java.lang.Object dataSource)
Sets the data source


setIsolation

public void setIsolation(java.lang.String isolation)
Sets the JSP-EL expression for the isolation.


doStartTag

public int doStartTag()
               throws JspException
Description copied from class: TagSupport
Processed at the beginning of the tag.

The default behavior returns SKIP_BODY to skip the tag's body.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Returns:
SKIP_BODY to ignore the body and EVAL_BODY_INCLUDE to evaluate the body.
Throws:
JspException

doCatch

public void doCatch(java.lang.Throwable t)
             throws java.lang.Throwable
Description copied from interface: TryCatchFinally
Invoked if any exception is thrown while evaluating the tag.

Specified by:
doCatch in interface TryCatchFinally
Parameters:
t - the thrown exception
Throws:
java.lang.Throwable

doFinally

public void doFinally()
Description copied from interface: TryCatchFinally
Invoked after doEndTag even with an exception.

Specified by:
doFinally in interface TryCatchFinally