org.apache.openjpa.ee
Class RegistryManagedRuntime.TransactionManagerRegistryFacade
java.lang.Object
   org.apache.openjpa.ee.RegistryManagedRuntime.TransactionManagerRegistryFacade
org.apache.openjpa.ee.RegistryManagedRuntime.TransactionManagerRegistryFacade
- All Implemented Interfaces: 
- Transaction, TransactionManager
- Enclosing class:
- RegistryManagedRuntime
- public static class RegistryManagedRuntime.TransactionManagerRegistryFacade 
- extends Object- implements TransactionManager, Transaction
A TransactionManager and Transaction facade
  that delegates the appropriate methods to the internally-held
  TransactionSynchronizationRegistry. Since the
  registry is not able to start or end transactions, all transaction
  control methods will just throw a SystemException.
- Author:
- Marc Prud'hommeaux
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RegistryManagedRuntime.TransactionManagerRegistryFacade
public RegistryManagedRuntime.TransactionManagerRegistryFacade(TransactionSynchronizationRegistry registry)
getTransaction
public Transaction getTransaction()
                           throws SystemException
- 
- Specified by:
- getTransactionin interface- TransactionManager
 
- 
- Throws:
- SystemException
 
registerSynchronization
public void registerSynchronization(Synchronization sync)
                             throws RollbackException,
                                    IllegalStateException,
                                    SystemException
- 
- Specified by:
- registerSynchronizationin interface- Transaction
 
- 
- Throws:
- RollbackException
- IllegalStateException
- SystemException
 
setRollbackOnly
public void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException
- 
- Specified by:
- setRollbackOnlyin interface- Transaction
- Specified by:
- setRollbackOnlyin interface- TransactionManager
 
- 
- Throws:
- IllegalStateException
- SystemException
 
getStatus
public int getStatus()
              throws SystemException
- 
- Specified by:
- getStatusin interface- Transaction
- Specified by:
- getStatusin interface- TransactionManager
 
- 
- Throws:
- SystemException
 
getTransactionKey
public Object getTransactionKey()
- 
 
- 
 
begin
public void begin()
           throws NotSupportedException,
                  SystemException
- 
- Specified by:
- beginin interface- TransactionManager
 
- 
- Throws:
- NotSupportedException
- SystemException
 
commit
public void commit()
            throws RollbackException,
                   HeuristicMixedException,
                   SystemException,
                   HeuristicRollbackException,
                   SecurityException,
                   IllegalStateException
- 
- Specified by:
- commitin interface- Transaction
- Specified by:
- commitin interface- TransactionManager
 
- 
- Throws:
- RollbackException
- HeuristicMixedException
- SystemException
- HeuristicRollbackException
- SecurityException
- IllegalStateException
 
resume
public void resume(Transaction tobj)
            throws InvalidTransactionException,
                   IllegalStateException,
                   SystemException
- 
- Specified by:
- resumein interface- TransactionManager
 
- 
- Throws:
- InvalidTransactionException
- IllegalStateException
- SystemException
 
rollback
public void rollback()
              throws IllegalStateException,
                     SecurityException,
                     SystemException
- 
- Specified by:
- rollbackin interface- Transaction
- Specified by:
- rollbackin interface- TransactionManager
 
- 
- Throws:
- IllegalStateException
- SecurityException
- SystemException
 
setTransactionTimeout
public void setTransactionTimeout(int seconds)
                           throws SystemException
- 
- Specified by:
- setTransactionTimeoutin interface- TransactionManager
 
- 
- Throws:
- SystemException
 
suspend
public Transaction suspend()
                    throws SystemException
- 
- Specified by:
- suspendin interface- TransactionManager
 
- 
- Throws:
- SystemException
 
delistResource
public boolean delistResource(XAResource xaRes,
                              int flag)
                       throws IllegalStateException,
                              SystemException
- 
- Specified by:
- delistResourcein interface- Transaction
 
- 
- Throws:
- IllegalStateException
- SystemException
 
enlistResource
public boolean enlistResource(XAResource xaRes)
                       throws RollbackException,
                              IllegalStateException,
                              SystemException
- 
- Specified by:
- enlistResourcein interface- Transaction
 
- 
- Throws:
- RollbackException
- IllegalStateException
- SystemException
 
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.