public class SqlTransactionTag extends TagSupport implements TryCatchFinally
id, pageContextEVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
SqlTransactionTag() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValuepublic void setDataSource(java.lang.Object dataSource)
public void setIsolation(java.lang.String isolation)
public int doStartTag()
throws JspException
TagSupportThe default behavior returns SKIP_BODY to skip the tag's body.
doStartTag in interface TagdoStartTag in class TagSupportJspExceptionpublic void doCatch(java.lang.Throwable t)
throws java.lang.Throwable
TryCatchFinallydoCatch in interface TryCatchFinallyt - the thrown exceptionjava.lang.Throwablepublic void doFinally()
TryCatchFinallydoFinally in interface TryCatchFinally