public abstract class TransactionTagSupport
extends javax.servlet.jsp.tagext.TagSupport
implements javax.servlet.jsp.tagext.TryCatchFinally
Tag handler for <Transaction> in JSTL.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dataSourceSpecified |
protected Object |
rawDataSource |
| Constructor and Description |
|---|
TransactionTagSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
doCatch(Throwable t)
Rollbacks the transaction and rethrows the Throwable.
|
int |
doEndTag()
Commits the transaction.
|
void |
doFinally()
Restores the
Connection to its initial state and
closes it. |
int |
doStartTag()
Prepares for execution by setting the initial state, such as
getting the
Connection and preparing it for
the transaction. |
Connection |
getSharedConnection()
Called by nested parameter elements to get a reference to
the Connection.
|
void |
release() |
void |
setIsolation(String iso)
Setter method for the transaction isolation level.
|
protected Object rawDataSource
protected boolean dataSourceSpecified
public int doStartTag()
throws javax.servlet.jsp.JspException
Connection and preparing it for
the transaction.doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic void doCatch(Throwable t) throws Throwable
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinallyThrowablepublic void doFinally()
Connection to its initial state and
closes it.doFinally in interface javax.servlet.jsp.tagext.TryCatchFinallypublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportpublic void setIsolation(String iso) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic Connection getSharedConnection()
Copyright © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.