org.apache.geronimo.transaction.context
Class BeanTransactionContext

java.lang.Object
  extended byorg.apache.geronimo.transaction.context.TransactionContext
      extended byorg.apache.geronimo.transaction.context.InheritableTransactionContext
          extended byorg.apache.geronimo.transaction.context.BeanTransactionContext

public class BeanTransactionContext
extends InheritableTransactionContext

Version:
$Revision: 1.1 $ $Date: 2004/07/18 22:02:01 $

Field Summary
 
Fields inherited from class org.apache.geronimo.transaction.context.TransactionContext
log
 
Constructor Summary
BeanTransactionContext(TransactionManager txnManager, UnspecifiedTransactionContext oldContext)
           
 
Method Summary
 void begin()
           
 void commit()
           
 UnspecifiedTransactionContext getOldContext()
           
 Transaction getTransaction()
           
 boolean isActive()
           
 void resume()
           
 void rollback()
           
 void suspend()
           
 
Methods inherited from class org.apache.geronimo.transaction.context.TransactionContext
afterCommit, associate, beforeCommit, beginInvocation, connectorAfterCommit, endInvocation, flushState, getContext, getContext, getInTxCache, getManagedConnectionInfo, setContext, setManagedConnectionInfo, unassociate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanTransactionContext

public BeanTransactionContext(TransactionManager txnManager,
                              UnspecifiedTransactionContext oldContext)
Method Detail

getOldContext

public UnspecifiedTransactionContext getOldContext()

begin

public void begin()
           throws SystemException,
                  NotSupportedException
Specified by:
begin in class TransactionContext
Throws:
SystemException
NotSupportedException

suspend

public void suspend()
             throws SystemException
Specified by:
suspend in class TransactionContext
Throws:
SystemException

resume

public void resume()
            throws SystemException,
                   InvalidTransactionException
Specified by:
resume in class TransactionContext
Throws:
SystemException
InvalidTransactionException

commit

public void commit()
            throws HeuristicMixedException,
                   HeuristicRollbackException,
                   RollbackException,
                   SystemException
Specified by:
commit in class TransactionContext
Throws:
HeuristicMixedException
HeuristicRollbackException
RollbackException
SystemException

rollback

public void rollback()
              throws SystemException
Specified by:
rollback in class TransactionContext
Throws:
SystemException

isActive

public boolean isActive()
Specified by:
isActive in class TransactionContext

getTransaction

public Transaction getTransaction()
Specified by:
getTransaction in class TransactionContext


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.