|
||||||||||
| 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 java.lang.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(java.lang.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. |
java.sql.Connection |
getSharedConnection()
Called by nested parameter elements to get a reference to the Connection. |
void |
release()
|
void |
setIsolation(java.lang.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 java.lang.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
public int doEndTag()
throws JspException
doEndTag in interface TagdoEndTag in class TagSupportJspException
public void doCatch(java.lang.Throwable t)
throws java.lang.Throwable
doCatch in interface TryCatchFinallyjava.lang.Throwablepublic void doFinally()
Connection to its initial state and
closes it.
doFinally in interface TryCatchFinallypublic void release()
release in interface Tagrelease in class TagSupport
public void setIsolation(java.lang.String iso)
throws JspTagException
JspTagExceptionpublic java.sql.Connection getSharedConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||