org.apache.geronimo.transaction.manager
Class TransactionImpl
java.lang.Object
org.apache.geronimo.transaction.manager.TransactionImpl
- All Implemented Interfaces:
- Transaction
- public class TransactionImpl
- extends Object
- implements Transaction
Basic local transaction with support for multiple resources.
- Version:
- $Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $
TransactionImpl
public TransactionImpl(Xid xid,
TransactionLog txLog)
getStatus
public int getStatus()
throws SystemException
- Specified by:
getStatus
in interface Transaction
- Throws:
SystemException
setRollbackOnly
public void setRollbackOnly()
throws IllegalStateException,
SystemException
- Specified by:
setRollbackOnly
in interface Transaction
- Throws:
IllegalStateException
SystemException
registerSynchronization
public void registerSynchronization(Synchronization synch)
throws IllegalStateException,
RollbackException,
SystemException
- Specified by:
registerSynchronization
in interface Transaction
- Throws:
IllegalStateException
RollbackException
SystemException
enlistResource
public boolean enlistResource(XAResource xaRes)
throws IllegalStateException,
RollbackException,
SystemException
- Specified by:
enlistResource
in interface Transaction
- Throws:
IllegalStateException
RollbackException
SystemException
delistResource
public boolean delistResource(XAResource xaRes,
int flag)
throws IllegalStateException,
SystemException
- Specified by:
delistResource
in interface Transaction
- Throws:
IllegalStateException
SystemException
commit
public void commit()
throws HeuristicMixedException,
HeuristicRollbackException,
RollbackException,
SecurityException,
SystemException
- Specified by:
commit
in interface Transaction
- Throws:
HeuristicMixedException
HeuristicRollbackException
RollbackException
SecurityException
SystemException
rollback
public void rollback()
throws IllegalStateException,
SystemException
- Specified by:
rollback
in interface Transaction
- Throws:
IllegalStateException
SystemException
equals
public boolean equals(Object obj)
addBranchXid
public org.apache.geronimo.transaction.manager.TransactionImpl.TransactionBranch addBranchXid(XAResource xaRes,
Xid branchId)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.