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:
Serializable,IterationTag,JspTag,Tag,TryCatchFinally
Subclass for the JSTL library with rtexprvalue support.
- See Also:
-
Field Summary
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintPrepares for execution by setting the initial state, such as getting theConnectionand preparing it for the transaction.voidsetDataSource(Object dataSource) Setter method for the SQL DataSource.voidsetIsolation(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, releaseMethods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
TransactionTag
public TransactionTag()
-
-
Method Details
-
setDataSource
Setter method for the SQL DataSource. DataSource can be a String or a DataSource object. -
setIsolation
Setter method for the Transaction Isolation level.- Overrides:
setIsolationin classTransactionTagSupport
-
doStartTag
Description 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:
-