org.jboss.jca.core.tx.jbossts
Class TransactionManagerDelegator

java.lang.Object
  extended by org.jboss.jca.core.tx.jbossts.TransactionManagerDelegator
All Implemented Interfaces:
TransactionManager, org.jboss.jca.core.spi.transaction.TransactionTimeoutConfiguration

public class TransactionManagerDelegator
extends Object
implements TransactionManager, org.jboss.jca.core.spi.transaction.TransactionTimeoutConfiguration

This class provide a delegator implementation of the transaction manager

Author:
Jesper Pedersen

Constructor Summary
TransactionManagerDelegator(TransactionManager tm)
          Constructor
 
Method Summary
 void begin()
          
 void commit()
          
 int getStatus()
          
 long getTimeLeftBeforeTransactionTimeout(boolean errorRollback)
          
 Transaction getTransaction()
          
 int getTransactionTimeout()
          
 void resume(Transaction tobj)
          
 void rollback()
          
 void setRollbackOnly()
          
 void setTransactionTimeout(int seconds)
          
 Transaction suspend()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionManagerDelegator

public TransactionManagerDelegator(TransactionManager tm)
Constructor

Parameters:
tm - The transaction manager
Method Detail

begin

public void begin()
           throws NotSupportedException,
                  SystemException

Specified by:
begin in interface TransactionManager
Throws:
NotSupportedException
SystemException

commit

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

Specified by:
commit in interface TransactionManager
Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException

getStatus

public int getStatus()
              throws SystemException

Specified by:
getStatus in interface TransactionManager
Throws:
SystemException

getTransaction

public Transaction getTransaction()
                           throws SystemException

Specified by:
getTransaction in interface TransactionManager
Throws:
SystemException

resume

public void resume(Transaction tobj)
            throws InvalidTransactionException,
                   IllegalStateException,
                   SystemException

Specified by:
resume in interface TransactionManager
Throws:
InvalidTransactionException
IllegalStateException
SystemException

rollback

public void rollback()
              throws IllegalStateException,
                     SecurityException,
                     SystemException

Specified by:
rollback in interface TransactionManager
Throws:
IllegalStateException
SecurityException
SystemException

setRollbackOnly

public void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException

Specified by:
setRollbackOnly in interface TransactionManager
Throws:
IllegalStateException
SystemException

setTransactionTimeout

public void setTransactionTimeout(int seconds)
                           throws SystemException

Specified by:
setTransactionTimeout in interface TransactionManager
Throws:
SystemException

suspend

public Transaction suspend()
                    throws SystemException

Specified by:
suspend in interface TransactionManager
Throws:
SystemException

getTransactionTimeout

public int getTransactionTimeout()
                          throws SystemException

Specified by:
getTransactionTimeout in interface org.jboss.jca.core.spi.transaction.TransactionTimeoutConfiguration
Throws:
SystemException

getTimeLeftBeforeTransactionTimeout

public long getTimeLeftBeforeTransactionTimeout(boolean errorRollback)
                                         throws RollbackException

Specified by:
getTimeLeftBeforeTransactionTimeout in interface org.jboss.jca.core.spi.transaction.TransactionTimeoutConfiguration
Throws:
RollbackException


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)