org.hibernate.testing.tm
Class SimpleJtaTransactionImpl
java.lang.Object
   org.hibernate.testing.tm.SimpleJtaTransactionImpl
org.hibernate.testing.tm.SimpleJtaTransactionImpl
- All Implemented Interfaces: 
- Transaction
- public class SimpleJtaTransactionImpl 
- extends Object- implements Transaction
SimpleJtaTransactionImpl implementation
- Author:
- Steve Ebersole
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SimpleJtaTransactionImpl
public SimpleJtaTransactionImpl(SimpleJtaTransactionManagerImpl jtaTransactionManager)
getStatus
public int getStatus()
- 
- Specified by:
- getStatusin interface- Transaction
 
- 
 
commit
public void commit()
            throws RollbackException,
                   HeuristicMixedException,
                   HeuristicRollbackException,
                   IllegalStateException,
                   SystemException
- 
- Specified by:
- commitin interface- Transaction
 
- 
- Throws:
- RollbackException
- HeuristicMixedException
- HeuristicRollbackException
- IllegalStateException
- SystemException
 
rollback
public void rollback()
              throws IllegalStateException,
                     SystemException
- 
- Specified by:
- rollbackin interface- Transaction
 
- 
- Throws:
- IllegalStateException
- SystemException
 
setRollbackOnly
public void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException
- 
- Specified by:
- setRollbackOnlyin interface- Transaction
 
- 
- Throws:
- IllegalStateException
- SystemException
 
registerSynchronization
public void registerSynchronization(Synchronization synchronization)
                             throws RollbackException,
                                    IllegalStateException,
                                    SystemException
- 
- Specified by:
- registerSynchronizationin interface- Transaction
 
- 
- Throws:
- RollbackException
- IllegalStateException
- SystemException
 
enlistConnection
public void enlistConnection(Connection connection)
- 
 
- 
 
getEnlistedConnection
public Connection getEnlistedConnection()
- 
 
- 
 
enlistResource
public boolean enlistResource(XAResource xaResource)
                       throws RollbackException,
                              IllegalStateException,
                              SystemException
- 
- Specified by:
- enlistResourcein interface- Transaction
 
- 
- Throws:
- RollbackException
- IllegalStateException
- SystemException
 
delistResource
public boolean delistResource(XAResource xaResource,
                              int i)
                       throws IllegalStateException,
                              SystemException
- 
- Specified by:
- delistResourcein interface- Transaction
 
- 
- Throws:
- IllegalStateException
- SystemException
 
Copyright © 2001-2010 Red Hat, Inc.  All Rights Reserved.