|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.sql.TransactionTag
Tag handler for <Transaction> in JSTL.
Field Summary | |
protected boolean |
dataSourceSpecified
|
protected java.lang.Object |
rawDataSource
|
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
TransactionTag()
|
Method Summary | |
protected void |
doFinally()
Restores the Connection to its initial state and
closes it. |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
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 |
setDataSource(java.lang.Object dataSource)
Sets the SQL DataSource. |
void |
setIsolation(java.lang.String iso)
Sets the transaction isolation level. |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
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 TransactionTag()
Method Detail |
public void setDataSource(java.lang.Object dataSource)
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.JellyTagException
Connection
and preparing it for
the transaction.
org.apache.commons.jelly.JellyTagException
public void setIsolation(java.lang.String iso) throws org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.JellyTagException
public java.sql.Connection getSharedConnection()
protected void doFinally()
Connection
to its initial state and
closes it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |