org.jboss.jca.core.tx.noopts
Class UserTransactionImpl

java.lang.Object
  extended by org.jboss.jca.core.tx.noopts.UserTransactionImpl
All Implemented Interfaces:
Serializable, UserTransaction

public class UserTransactionImpl
extends Object
implements UserTransaction, Serializable

A transaction manager implementation

Author:
Jesper Pedersen
See Also:
Serialized Form

Constructor Summary
UserTransactionImpl()
          Constructor
 
Method Summary
 void begin()
          
 void commit()
          
 int getStatus()
          
 void rollback()
          
 void setRegistry(TxRegistry v)
          Set the registry
 void setRollbackOnly()
          
 void setTransactionTimeout(int seconds)
          
 void start()
          Start
 void stop()
          Stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserTransactionImpl

public UserTransactionImpl()
Constructor

Method Detail

setRegistry

public void setRegistry(TxRegistry v)
Set the registry

Parameters:
v - The value

begin

public void begin()
           throws NotSupportedException,
                  SystemException

Specified by:
begin in interface UserTransaction
Throws:
NotSupportedException
SystemException

commit

public void commit()
            throws RollbackException,
                   HeuristicMixedException,
                   HeuristicRollbackException,
                   SecurityException,
                   IllegalStateException,
                   SystemException

Specified by:
commit in interface UserTransaction
Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
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

getStatus

public int getStatus()
              throws SystemException

Specified by:
getStatus in interface UserTransaction
Throws:
SystemException

setTransactionTimeout

public void setTransactionTimeout(int seconds)
                           throws SystemException

Specified by:
setTransactionTimeout in interface UserTransaction
Throws:
SystemException

start

public void start()
           throws Throwable
Start

Throws:
Throwable - Thrown if an error occurs

stop

public void stop()
          throws Throwable
Stop

Throws:
Throwable - Thrown if an error occurs


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)