|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.sql.TransactionTag
Tag handler for <Transaction> in JSTL.
Field Summary | |
private java.sql.Connection |
conn
|
protected boolean |
dataSourceSpecified
|
private int |
isolation
|
private int |
origIsolation
|
protected java.lang.Object |
rawDataSource
|
private static java.lang.String |
TRANSACTION_READ_COMMITTED
|
private static java.lang.String |
TRANSACTION_READ_UNCOMMITTED
|
private static java.lang.String |
TRANSACTION_REPEATABLE_READ
|
private static java.lang.String |
TRANSACTION_SERIALIZABLE
|
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, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String TRANSACTION_READ_COMMITTED
private static final java.lang.String TRANSACTION_READ_UNCOMMITTED
private static final java.lang.String TRANSACTION_REPEATABLE_READ
private static final java.lang.String TRANSACTION_SERIALIZABLE
protected java.lang.Object rawDataSource
protected boolean dataSourceSpecified
private java.sql.Connection conn
private int isolation
private int origIsolation
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 |