|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.standard.tag.common.sql.TransactionTagSupport
public abstract class TransactionTagSupport
Tag handler for <Transaction> in JSTL.
| Field Summary | |
|---|---|
protected boolean |
dataSourceSpecified
|
protected Object |
rawDataSource
|
| 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 | |
|---|---|
TransactionTagSupport()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object rawDataSource
protected boolean dataSourceSpecified
| Constructor Detail |
|---|
public TransactionTagSupport()
| Method Detail |
|---|
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()
TagSupport
release in interface Tagrelease in class TagSupportTag.release()
public void setIsolation(String iso)
throws JspTagException
JspTagExceptionpublic Connection getSharedConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||