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, pageContext
EVAL_BODY_AGAIN
EVAL_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, setValue
protected Object rawDataSource
protected boolean dataSourceSpecified
public int doStartTag() throws JspException
Connection
and preparing it for
the transaction.doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
- if an error occurs while processing this tagTag.doStartTag()
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
- if an error occurs while processing this tagTag.doEndTag()
public void doCatch(Throwable t) throws Throwable
doCatch
in interface TryCatchFinally
t
- 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 TryCatchFinally
public void release()
TagSupport
release
in interface Tag
release
in class TagSupport
Tag.release()
public void setIsolation(String iso) throws JspTagException
JspTagException
public Connection getSharedConnection()
Copyright © 2016 JBoss by Red Hat. All rights reserved.