org.apache.geronimo.transaction
Class UserTransactionImpl

java.lang.Object
  extended byorg.apache.geronimo.transaction.UserTransactionImpl
All Implemented Interfaces:
Serializable, UserTransaction

public class UserTransactionImpl
extends Object
implements UserTransaction, Serializable

Implementation of UserTransaction for use in an EJB. This adds the ability to enable or disable the operations depending on the lifecycle of the EJB instance.

Version:
$Revision: 1.5 $ $Date: 2004/07/18 22:02:01 $
See Also:
Serialized Form

Constructor Summary
UserTransactionImpl()
           
 
Method Summary
 void begin()
           
 void commit()
           
 int getStatus()
           
 boolean isOnline()
           
 void rollback()
           
 void setOnline(boolean online)
           
 void setRollbackOnly()
           
 void setTransactionTimeout(int timeout)
           
 void setUp(TransactionContextManager transactionContextManager, TrackedConnectionAssociator trackedConnectionAssociator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserTransactionImpl

public UserTransactionImpl()
Method Detail

setUp

public void setUp(TransactionContextManager transactionContextManager,
                  TrackedConnectionAssociator trackedConnectionAssociator)

isOnline

public boolean isOnline()

setOnline

public void setOnline(boolean online)

begin

public void begin()
           throws NotSupportedException,
                  SystemException
Specified by:
begin in interface UserTransaction
Throws:
NotSupportedException
SystemException

commit

public void commit()
            throws HeuristicMixedException,
                   HeuristicRollbackException,
                   IllegalStateException,
                   RollbackException,
                   SecurityException,
                   SystemException
Specified by:
commit in interface UserTransaction
Throws:
HeuristicMixedException
HeuristicRollbackException
IllegalStateException
RollbackException
SecurityException
SystemException

getStatus

public int getStatus()
              throws SystemException
Specified by:
getStatus in interface UserTransaction
Throws:
SystemException

rollback

public void rollback()
              throws IllegalStateException,
                     SecurityException,
                     SystemException
Specified by:
rollback in interface UserTransaction
Throws:
IllegalStateException
SecurityException
SystemException

setRollbackOnly

public void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException
Specified by:
setRollbackOnly in interface UserTransaction
Throws:
IllegalStateException
SystemException

setTransactionTimeout

public void setTransactionTimeout(int timeout)
                           throws SystemException
Specified by:
setTransactionTimeout in interface UserTransaction
Throws:
SystemException


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