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

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

public class TransactionImpl
extends Object
implements Transaction, Serializable

A transaction implementation

Author:
Jesper Pedersen
See Also:
Serialized Form

Constructor Summary
TransactionImpl()
          Constructor
 
Method Summary
 void commit()
          
 boolean delistResource(XAResource xaRes, int flag)
          
 boolean enlistResource(XAResource xaRes)
          
 int getStatus()
          
 void registerSynchronization(Synchronization sync)
          
 void rollback()
          
 void setRollbackOnly()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionImpl

public TransactionImpl()
Constructor

Method Detail

commit

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

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

delistResource

public boolean delistResource(XAResource xaRes,
                              int flag)
                       throws IllegalStateException,
                              SystemException

Specified by:
delistResource in interface Transaction
Throws:
IllegalStateException
SystemException

enlistResource

public boolean enlistResource(XAResource xaRes)
                       throws RollbackException,
                              IllegalStateException,
                              SystemException

Specified by:
enlistResource in interface Transaction
Throws:
RollbackException
IllegalStateException
SystemException

getStatus

public int getStatus()
              throws SystemException

Specified by:
getStatus in interface Transaction
Throws:
SystemException

registerSynchronization

public void registerSynchronization(Synchronization sync)
                             throws RollbackException,
                                    IllegalStateException,
                                    SystemException

Specified by:
registerSynchronization in interface Transaction
Throws:
RollbackException
IllegalStateException
SystemException

rollback

public void rollback()
              throws IllegalStateException,
                     SystemException

Specified by:
rollback in interface Transaction
Throws:
IllegalStateException
SystemException

setRollbackOnly

public void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException

Specified by:
setRollbackOnly in interface Transaction
Throws:
IllegalStateException
SystemException


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