org.hibernate.testing.tm
Class SimpleJtaTransactionManagerImpl
java.lang.Object
   org.hibernate.testing.tm.SimpleJtaTransactionManagerImpl
org.hibernate.testing.tm.SimpleJtaTransactionManagerImpl
- All Implemented Interfaces: 
- TransactionManager
- public class SimpleJtaTransactionManagerImpl 
- extends Object- implements TransactionManager
TransactionManager implementation specifically designed for use in test suite and simple usage
 scenarios.  For example, it assumes that there is only ever a single transaction active at a
 given time.
- Author:
- Gavin King, Steve Ebersole
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SimpleJtaTransactionManagerImpl
public SimpleJtaTransactionManagerImpl()
getInstance
public static SimpleJtaTransactionManagerImpl getInstance()
- 
 
- 
 
getStatus
public int getStatus()
              throws SystemException
- 
- Specified by:
- getStatusin interface- TransactionManager
 
- 
- Throws:
- SystemException
 
getTransaction
public Transaction getTransaction()
                           throws SystemException
- 
- Specified by:
- getTransactionin interface- TransactionManager
 
- 
- Throws:
- SystemException
 
getCurrentTransaction
public SimpleJtaTransactionImpl getCurrentTransaction()
- 
 
- 
 
begin
public void begin()
           throws NotSupportedException,
                  SystemException
- 
- Specified by:
- beginin interface- TransactionManager
 
- 
- Throws:
- NotSupportedException
- SystemException
 
suspend
public Transaction suspend()
                    throws SystemException
- 
- Specified by:
- suspendin interface- TransactionManager
 
- 
- Throws:
- SystemException
 
resume
public void resume(Transaction transaction)
            throws InvalidTransactionException,
                   IllegalStateException,
                   SystemException
- 
- Specified by:
- resumein interface- TransactionManager
 
- 
- Throws:
- InvalidTransactionException
- IllegalStateException
- SystemException
 
commit
public void commit()
            throws RollbackException,
                   HeuristicMixedException,
                   HeuristicRollbackException,
                   SecurityException,
                   IllegalStateException,
                   SystemException
- 
- Specified by:
- commitin interface- TransactionManager
 
- 
- Throws:
- RollbackException
- HeuristicMixedException
- HeuristicRollbackException
- SecurityException
- IllegalStateException
- SystemException
 
rollback
public void rollback()
              throws IllegalStateException,
                     SecurityException,
                     SystemException
- 
- Specified by:
- rollbackin interface- TransactionManager
 
- 
- Throws:
- IllegalStateException
- SecurityException
- SystemException
 
setRollbackOnly
public void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException
- 
- Specified by:
- setRollbackOnlyin interface- TransactionManager
 
- 
- Throws:
- IllegalStateException
- SystemException
 
setTransactionTimeout
public void setTransactionTimeout(int i)
                           throws SystemException
- 
- Specified by:
- setTransactionTimeoutin interface- TransactionManager
 
- 
- Throws:
- SystemException
 
Copyright © 2001-2010 Red Hat, Inc.  All Rights Reserved.