public abstract class TransactionTagSupport extends TagSupport implements TryCatchFinally
Tag handler for <Transaction> in JSTL.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dataSourceSpecified |
protected Object |
rawDataSource |
id, pageContextEVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| 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()
Release state.
|
void |
setIsolation(String iso)
Setter method for the transaction isolation level.
|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected Object rawDataSource
protected boolean dataSourceSpecified
public int doStartTag()
throws JspException
Connection and preparing it for
the transaction.doStartTag in interface TagdoStartTag in class TagSupportJspException - if an error occurs while processing this tagTag.doStartTag()public int doEndTag()
throws JspException
doEndTag in interface TagdoEndTag in class TagSupportJspException - if an error occurs while processing this tagTag.doEndTag()public void doCatch(Throwable t) throws Throwable
doCatch in interface TryCatchFinallyt - The throwable exception navigating through this tag.Throwable - if the exception is to be rethrown further up
the nest chain.public void doFinally()
Connection to its initial state and
closes it.doFinally in interface TryCatchFinallypublic void release()
TagSupportrelease in interface Tagrelease in class TagSupportTag.release()public void setIsolation(String iso) throws JspTagException
JspTagExceptionpublic Connection getSharedConnection()
Copyright © 2018 JBoss by Red Hat. All rights reserved.