|
||||||||||
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()
|
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 javax.servlet.jsp.JspException
Connection
and preparing it for
the transaction.
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public void doCatch(Throwable t) throws Throwable
doCatch
in interface javax.servlet.jsp.tagext.TryCatchFinally
Throwable
public void doFinally()
Connection
to its initial state and
closes it.
doFinally
in interface javax.servlet.jsp.tagext.TryCatchFinally
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
public void setIsolation(String iso) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public Connection getSharedConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |