org.apache.geronimo.transaction.manager
Class TransactionManagerImpl
java.lang.Object
org.apache.geronimo.transaction.manager.TransactionManagerImpl
- All Implemented Interfaces:
- TransactionManager, XidImporter
- public class TransactionManagerImpl
- extends Object
- implements TransactionManager, XidImporter
Simple implementation of a transaction manager.
TODO timeout functionality
- Version:
- $Revision: 1.6 $ $Date: 2004/06/11 19:20:55 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionManagerImpl
public TransactionManagerImpl()
TransactionManagerImpl
public TransactionManagerImpl(TransactionLog txnLog,
XidFactory xidFactory)
getTransaction
public Transaction getTransaction()
throws SystemException
- Specified by:
getTransaction
in interface TransactionManager
- Throws:
SystemException
setTransactionTimeout
public void setTransactionTimeout(int seconds)
throws SystemException
- Specified by:
setTransactionTimeout
in interface TransactionManager
- Throws:
SystemException
getStatus
public int getStatus()
throws SystemException
- Specified by:
getStatus
in interface TransactionManager
- Throws:
SystemException
begin
public void begin()
throws NotSupportedException,
SystemException
- Specified by:
begin
in interface TransactionManager
- Throws:
NotSupportedException
SystemException
suspend
public Transaction suspend()
throws SystemException
- Specified by:
suspend
in interface TransactionManager
- Throws:
SystemException
resume
public void resume(Transaction tx)
throws IllegalStateException,
InvalidTransactionException,
SystemException
- Specified by:
resume
in interface TransactionManager
- Throws:
IllegalStateException
InvalidTransactionException
SystemException
setRollbackOnly
public void setRollbackOnly()
throws IllegalStateException,
SystemException
- Specified by:
setRollbackOnly
in interface TransactionManager
- Throws:
IllegalStateException
SystemException
commit
public void commit()
throws HeuristicMixedException,
HeuristicRollbackException,
IllegalStateException,
RollbackException,
SecurityException,
SystemException
- Specified by:
commit
in interface TransactionManager
- Throws:
HeuristicMixedException
HeuristicRollbackException
IllegalStateException
RollbackException
SecurityException
SystemException
rollback
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
- Specified by:
rollback
in interface TransactionManager
- Throws:
IllegalStateException
SecurityException
SystemException
importXid
public Transaction importXid(Xid xid)
throws XAException,
SystemException
- Specified by:
importXid
in interface XidImporter
- Throws:
XAException
SystemException
commit
public void commit(Transaction tx,
boolean onePhase)
throws XAException
- Specified by:
commit
in interface XidImporter
- Throws:
XAException
forget
public void forget(Transaction tx)
throws XAException
- Specified by:
forget
in interface XidImporter
- Throws:
XAException
prepare
public int prepare(Transaction tx)
throws XAException
- Specified by:
prepare
in interface XidImporter
- Throws:
XAException
rollback
public void rollback(Transaction tx)
throws XAException
- Specified by:
rollback
in interface XidImporter
- Throws:
XAException
setTransactionTimeout
public void setTransactionTimeout(long milliseconds)
- Specified by:
setTransactionTimeout
in interface XidImporter
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.