Class TransactionTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.apache.taglibs.standard.tag.common.sql.TransactionTagSupport
-
- org.apache.taglibs.standard.tag.rt.sql.TransactionTag
-
- All Implemented Interfaces:
java.io.Serializable,IterationTag,JspTag,Tag,TryCatchFinally
public class TransactionTag extends TransactionTagSupport
Subclass for the JSTL library with rtexprvalue support.- See Also:
- Serialized Form
-
-
Field Summary
-
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
Constructors Constructor Description TransactionTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoStartTag()Prepares for execution by setting the initial state, such as getting theConnectionand preparing it for the transaction.voidsetDataSource(java.lang.Object dataSource)Setter method for the SQL DataSource.voidsetIsolation(java.lang.String isolation)Setter method for the Transaction Isolation level.-
Methods inherited from class org.apache.taglibs.standard.tag.common.sql.TransactionTagSupport
doCatch, doEndTag, doFinally, getSharedConnection, release
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Method Detail
-
setDataSource
public void setDataSource(java.lang.Object dataSource)
Setter method for the SQL DataSource. DataSource can be a String or a DataSource object.
-
setIsolation
public void setIsolation(java.lang.String isolation)
Setter method for the Transaction Isolation level.- Overrides:
setIsolationin classTransactionTagSupport
-
doStartTag
public int doStartTag() throws JspExceptionDescription copied from class:TransactionTagSupportPrepares for execution by setting the initial state, such as getting theConnectionand preparing it for the transaction.- Specified by:
doStartTagin interfaceTag- Overrides:
doStartTagin classTransactionTagSupport- Returns:
- SKIP_BODY
- Throws:
JspException- if an error occurs while processing this tag- See Also:
Tag.doStartTag()
-
-