blob: 4f2fbf0019bfb618abb87aa58049c8f9b4e6df13 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>PseudoTransactionService</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="PseudoTransactionService";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/openejb/ri/sp/PseudoSecurityService.html" title="class in org.apache.openejb.ri.sp"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.MyTransaction.html" title="class in org.apache.openejb.ri.sp"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/openejb/ri/sp/PseudoTransactionService.html" target="_top">Frames</a></li>
<li><a href="PseudoTransactionService.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.openejb.ri.sp</div>
<h2 title="Class PseudoTransactionService" class="title">Class PseudoTransactionService</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.openejb.ri.sp.PseudoTransactionService</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a>, <a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html" title="interface in javax.transaction">TransactionSynchronizationRegistry</a>, <a href="../../../../../org/apache/openejb/spi/Service.html" title="interface in org.apache.openejb.spi">Service</a>, <a href="../../../../../org/apache/openejb/spi/TransactionService.html" title="interface in org.apache.openejb.spi">TransactionService</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">PseudoTransactionService</span>
extends java.lang.Object
implements <a href="../../../../../org/apache/openejb/spi/TransactionService.html" title="interface in org.apache.openejb.spi">TransactionService</a>, <a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a>, <a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html" title="interface in javax.transaction">TransactionSynchronizationRegistry</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.MyTransaction.html" title="class in org.apache.openejb.ri.sp">PseudoTransactionService.MyTransaction</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#PseudoTransactionService--">PseudoTransactionService</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#begin--">begin</a></span>()</code>
<div class="block">Create a new transaction and associate it with the current thread.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#commit--">commit</a></span>()</code>
<div class="block">Complete the transaction associated with the current thread.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#getResource-java.lang.Object-">getResource</a></span>(java.lang.Object&nbsp;key)</code>
<div class="block">Get an object from the Map of resources being managed for
the transaction bound to the current thread at the time this
method is called.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#getRollbackOnly--">getRollbackOnly</a></span>()</code>
<div class="block">Get the rollbackOnly status of the transaction bound to the
current thread at the time this method is called.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#getStatus--">getStatus</a></span>()</code>
<div class="block">Obtain the status of the transaction associated with the current thread.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../../javax/transaction/Transaction.html" title="interface in javax.transaction">Transaction</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#getTransaction--">getTransaction</a></span>()</code>
<div class="block">Get the transaction object that represents the transaction
context of the calling thread.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#getTransactionKey--">getTransactionKey</a></span>()</code>
<div class="block">Return an opaque object to represent the transaction bound to the
current thread at the time this method is called.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#getTransactionManager--">getTransactionManager</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#getTransactionStatus--">getTransactionStatus</a></span>()</code>
<div class="block">Return the status of the transaction bound to the
current thread at the time this method is called.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html" title="interface in javax.transaction">TransactionSynchronizationRegistry</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#getTransactionSynchronizationRegistry--">getTransactionSynchronizationRegistry</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#init-java.util.Properties-">init</a></span>(java.util.Properties&nbsp;props)</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#putResource-java.lang.Object-java.lang.Object-">putResource</a></span>(java.lang.Object&nbsp;key,
java.lang.Object&nbsp;value)</code>
<div class="block">Add or replace an object in the Map of resources being managed for
the transaction bound to the current thread at the time this
method is called.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#registerInterposedSynchronization-javax.transaction.Synchronization-">registerInterposedSynchronization</a></span>(<a href="../../../../../javax/transaction/Synchronization.html" title="interface in javax.transaction">Synchronization</a>&nbsp;synchronization)</code>
<div class="block">Register a Synchronization instance with special ordering
semantics.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#resume-javax.transaction.Transaction-">resume</a></span>(<a href="../../../../../javax/transaction/Transaction.html" title="interface in javax.transaction">Transaction</a>&nbsp;tx)</code>
<div class="block">Resume the transaction context association of the calling thread
with the transaction represented by the supplied Transaction object.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#rollback--">rollback</a></span>()</code>
<div class="block">Roll back the transaction associated with the current thread.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#setRollbackOnly--">setRollbackOnly</a></span>()</code>
<div class="block">Modify the transaction associated with the current thread such that
the only possible outcome of the transaction is to roll back the
transaction.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#setTransactionTimeout-int-">setTransactionTimeout</a></span>(int&nbsp;seconds)</code>
<div class="block">Modify the timeout value that is associated with transactions started
by the current thread with the begin method.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../../../javax/transaction/Transaction.html" title="interface in javax.transaction">Transaction</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.html#suspend--">suspend</a></span>()</code>
<div class="block">Suspend the transaction currently associated with the calling
thread and return a Transaction object that represents the
transaction context being suspended.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="PseudoTransactionService--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>PseudoTransactionService</h4>
<pre>public&nbsp;PseudoTransactionService()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="init-java.util.Properties-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public&nbsp;void&nbsp;init(java.util.Properties&nbsp;props)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/openejb/spi/Service.html#init-java.util.Properties-">init</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/openejb/spi/Service.html" title="interface in org.apache.openejb.spi">Service</a></code></dd>
</dl>
</li>
</ul>
<a name="getTransactionManager--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTransactionManager</h4>
<pre>public&nbsp;<a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a>&nbsp;getTransactionManager()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/openejb/spi/TransactionService.html#getTransactionManager--">getTransactionManager</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/openejb/spi/TransactionService.html" title="interface in org.apache.openejb.spi">TransactionService</a></code></dd>
</dl>
</li>
</ul>
<a name="getTransactionSynchronizationRegistry--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTransactionSynchronizationRegistry</h4>
<pre>public&nbsp;<a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html" title="interface in javax.transaction">TransactionSynchronizationRegistry</a>&nbsp;getTransactionSynchronizationRegistry()</pre>
</li>
</ul>
<a name="getStatus--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStatus</h4>
<pre>public&nbsp;int&nbsp;getStatus()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html#getStatus--">TransactionManager</a></code></span></div>
<div class="block">Obtain the status of the transaction associated with the current thread.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionManager.html#getStatus--">getStatus</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The transaction status. If no transaction is associated with
the current thread, this method returns the Status.NoTransaction
value.</dd>
</dl>
</li>
</ul>
<a name="getTransaction--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTransaction</h4>
<pre>public&nbsp;<a href="../../../../../javax/transaction/Transaction.html" title="interface in javax.transaction">Transaction</a>&nbsp;getTransaction()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html#getTransaction--">TransactionManager</a></code></span></div>
<div class="block">Get the transaction object that represents the transaction
context of the calling thread.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionManager.html#getTransaction--">getTransaction</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>Transaction</code> object representing the
transaction associated with the calling thread.</dd>
</dl>
</li>
</ul>
<a name="getRollbackOnly--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRollbackOnly</h4>
<pre>public&nbsp;boolean&nbsp;getRollbackOnly()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#getRollbackOnly--">TransactionSynchronizationRegistry</a></code></span></div>
<div class="block">Get the rollbackOnly status of the transaction bound to the
current thread at the time this method is called.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#getRollbackOnly--">getRollbackOnly</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html" title="interface in javax.transaction">TransactionSynchronizationRegistry</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the rollbackOnly status.</dd>
</dl>
</li>
</ul>
<a name="setRollbackOnly--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRollbackOnly</h4>
<pre>public&nbsp;void&nbsp;setRollbackOnly()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html#setRollbackOnly--">TransactionManager</a></code></span></div>
<div class="block">Modify the transaction associated with the current thread such that
the only possible outcome of the transaction is to roll back the
transaction.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionManager.html#setRollbackOnly--">setRollbackOnly</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#setRollbackOnly--">setRollbackOnly</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html" title="interface in javax.transaction">TransactionSynchronizationRegistry</a></code></dd>
</dl>
</li>
</ul>
<a name="begin--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>begin</h4>
<pre>public&nbsp;void&nbsp;begin()
throws <a href="../../../../../javax/transaction/NotSupportedException.html" title="class in javax.transaction">NotSupportedException</a></pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html#begin--">TransactionManager</a></code></span></div>
<div class="block">Create a new transaction and associate it with the current thread.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionManager.html#begin--">begin</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../javax/transaction/NotSupportedException.html" title="class in javax.transaction">NotSupportedException</a></code> - Thrown if the thread is already
associated with a transaction and the Transaction Manager
implementation does not support nested transactions.</dd>
</dl>
</li>
</ul>
<a name="commit--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>commit</h4>
<pre>public&nbsp;void&nbsp;commit()
throws <a href="../../../../../javax/transaction/RollbackException.html" title="class in javax.transaction">RollbackException</a></pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html#commit--">TransactionManager</a></code></span></div>
<div class="block">Complete the transaction associated with the current thread. When this
method completes, the thread is no longer associated with a transaction.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionManager.html#commit--">commit</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../javax/transaction/RollbackException.html" title="class in javax.transaction">RollbackException</a></code> - Thrown to indicate that
the transaction has been rolled back rather than committed.</dd>
</dl>
</li>
</ul>
<a name="rollback--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rollback</h4>
<pre>public&nbsp;void&nbsp;rollback()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html#rollback--">TransactionManager</a></code></span></div>
<div class="block">Roll back the transaction associated with the current thread. When this
method completes, the thread is no longer associated with a
transaction.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionManager.html#rollback--">rollback</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a></code></dd>
</dl>
</li>
</ul>
<a name="suspend--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>suspend</h4>
<pre>public&nbsp;<a href="../../../../../javax/transaction/Transaction.html" title="interface in javax.transaction">Transaction</a>&nbsp;suspend()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html#suspend--">TransactionManager</a></code></span></div>
<div class="block">Suspend the transaction currently associated with the calling
thread and return a Transaction object that represents the
transaction context being suspended. If the calling thread is
not associated with a transaction, the method returns a null
object reference. When this method returns, the calling thread
is not associated with a transaction.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionManager.html#suspend--">suspend</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Transaction object representing the suspended transaction.</dd>
</dl>
</li>
</ul>
<a name="resume-javax.transaction.Transaction-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resume</h4>
<pre>public&nbsp;void&nbsp;resume(<a href="../../../../../javax/transaction/Transaction.html" title="interface in javax.transaction">Transaction</a>&nbsp;tx)
throws <a href="../../../../../javax/transaction/InvalidTransactionException.html" title="class in javax.transaction">InvalidTransactionException</a></pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html#resume-javax.transaction.Transaction-">TransactionManager</a></code></span></div>
<div class="block">Resume the transaction context association of the calling thread
with the transaction represented by the supplied Transaction object.
When this method returns, the calling thread is associated with the
transaction context specified.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionManager.html#resume-javax.transaction.Transaction-">resume</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>tx</code> - The <code>Transaction</code> object that represents the
transaction to be resumed.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../javax/transaction/InvalidTransactionException.html" title="class in javax.transaction">InvalidTransactionException</a></code> - Thrown if the parameter
transaction object contains an invalid transaction.</dd>
</dl>
</li>
</ul>
<a name="getTransactionKey--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTransactionKey</h4>
<pre>public&nbsp;java.lang.Object&nbsp;getTransactionKey()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#getTransactionKey--">TransactionSynchronizationRegistry</a></code></span></div>
<div class="block">Return an opaque object to represent the transaction bound to the
current thread at the time this method is called. This object
overrides hashCode and equals to allow its use as the key in a
hashMap for use by the caller. If there is no transaction currently
active, return null.
<P>This object will return the same hashCode and compare equal to
all other objects returned by calling this method
from any component executing in the same transaction context in the
same application server.
<P>The toString method returns a String that might be usable by a
human reader to usefully understand the transaction context. The
toString result is otherwise not defined. Specifically, there is no
forward or backward compatibility guarantee of the results of
toString.
<P>The object is not necessarily serializable, and has no defined
behavior outside the virtual machine whence it was obtained.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#getTransactionKey--">getTransactionKey</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html" title="interface in javax.transaction">TransactionSynchronizationRegistry</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an opaque object representing the transaction bound to the
current thread at the time this method is called.</dd>
</dl>
</li>
</ul>
<a name="getTransactionStatus--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTransactionStatus</h4>
<pre>public&nbsp;int&nbsp;getTransactionStatus()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#getTransactionStatus--">TransactionSynchronizationRegistry</a></code></span></div>
<div class="block">Return the status of the transaction bound to the
current thread at the time this method is called.
This is the result of executing TransactionManager.getStatus() in
the context of the transaction bound to the current thread at the time
this method is called.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#getTransactionStatus--">getTransactionStatus</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html" title="interface in javax.transaction">TransactionSynchronizationRegistry</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the status of the transaction bound to the current thread
at the time this method is called.</dd>
</dl>
</li>
</ul>
<a name="getResource-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getResource</h4>
<pre>public&nbsp;java.lang.Object&nbsp;getResource(java.lang.Object&nbsp;key)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#getResource-java.lang.Object-">TransactionSynchronizationRegistry</a></code></span></div>
<div class="block">Get an object from the Map of resources being managed for
the transaction bound to the current thread at the time this
method is called. The key should have been supplied earlier
by a call to putResouce in the same transaction. If the key
cannot be found in the current resource Map, null is returned.
The general contract of this method
is that of <code>Map.get(Object)</code> for a Map that
supports non-null keys and null values. For example,
the returned value is null if there is no entry for the parameter
key or if the value associated with the key is actually null.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#getResource-java.lang.Object-">getResource</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html" title="interface in javax.transaction">TransactionSynchronizationRegistry</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the key for the Map entry.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the value associated with the key.</dd>
</dl>
</li>
</ul>
<a name="putResource-java.lang.Object-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putResource</h4>
<pre>public&nbsp;void&nbsp;putResource(java.lang.Object&nbsp;key,
java.lang.Object&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#putResource-java.lang.Object-java.lang.Object-">TransactionSynchronizationRegistry</a></code></span></div>
<div class="block">Add or replace an object in the Map of resources being managed for
the transaction bound to the current thread at the time this
method is called. The supplied key should be of an caller-
defined class so as not to conflict with other users. The class
of the key must guarantee that the hashCode and equals methods are
suitable for use as keys in a map. The key and value are not examined
or used by the implementation. The general contract of this method
is that of <code>Map.put(Object, Object)</code> for a Map that
supports non-null keys and null values. For example,
if there is already an value associated with the key, it is replaced
by the value parameter.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#putResource-java.lang.Object-java.lang.Object-">putResource</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html" title="interface in javax.transaction">TransactionSynchronizationRegistry</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the key for the Map entry.</dd>
<dd><code>value</code> - the value for the Map entry.</dd>
</dl>
</li>
</ul>
<a name="registerInterposedSynchronization-javax.transaction.Synchronization-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>registerInterposedSynchronization</h4>
<pre>public&nbsp;void&nbsp;registerInterposedSynchronization(<a href="../../../../../javax/transaction/Synchronization.html" title="interface in javax.transaction">Synchronization</a>&nbsp;synchronization)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#registerInterposedSynchronization-javax.transaction.Synchronization-">TransactionSynchronizationRegistry</a></code></span></div>
<div class="block">Register a Synchronization instance with special ordering
semantics. Its beforeCompletion will be called after all
SessionSynchronization beforeCompletion callbacks and callbacks
registered directly with the Transaction, but before the 2-phase
commit process starts. Similarly, the afterCompletion
callback will be called after 2-phase commit completes but before
any SessionSynchronization and Transaction afterCompletion callbacks.
<P>The beforeCompletion callback will be invoked in the transaction
context of the transaction bound to the current thread at the time
this method is called.
Allowable methods include access to resources,
e.g. Connectors. No access is allowed to "user components" (e.g. timer
services or bean methods), as these might change the state of data
being managed by the caller, and might change the state of data that
has already been flushed by another caller of
registerInterposedSynchronization.
The general context is the component
context of the caller of registerInterposedSynchronization.
<P>The afterCompletion callback will be invoked in an undefined
context. No access is permitted to "user components"
as defined above. Resources can be closed but no transactional
work can be performed with them.
<P>If this method is invoked without an active transaction context, an
IllegalStateException is thrown.
<P>If this method is invoked after the two-phase commit processing has
started, an IllegalStateException is thrown.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html#registerInterposedSynchronization-javax.transaction.Synchronization-">registerInterposedSynchronization</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionSynchronizationRegistry.html" title="interface in javax.transaction">TransactionSynchronizationRegistry</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>synchronization</code> - the Synchronization instance.</dd>
</dl>
</li>
</ul>
<a name="setTransactionTimeout-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setTransactionTimeout</h4>
<pre>public&nbsp;void&nbsp;setTransactionTimeout(int&nbsp;seconds)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html#setTransactionTimeout-int-">TransactionManager</a></code></span></div>
<div class="block">Modify the timeout value that is associated with transactions started
by the current thread with the begin method.
<p> If an application has not called this method, the transaction
service uses some default value for the transaction timeout.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../javax/transaction/TransactionManager.html#setTransactionTimeout-int-">setTransactionTimeout</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../javax/transaction/TransactionManager.html" title="interface in javax.transaction">TransactionManager</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>seconds</code> - The value of the timeout in seconds. If the value is zero,
the transaction service restores the default value. If the value
is negative a SystemException is thrown.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/openejb/ri/sp/PseudoSecurityService.html" title="class in org.apache.openejb.ri.sp"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/openejb/ri/sp/PseudoTransactionService.MyTransaction.html" title="class in org.apache.openejb.ri.sp"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/openejb/ri/sp/PseudoTransactionService.html" target="_top">Frames</a></li>
<li><a href="PseudoTransactionService.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>