org.jboss.tm
Class TransactionImpl
java.lang.Object
|
+--org.jboss.tm.TransactionImpl
- All Implemented Interfaces:
- java.io.Serializable, javax.transaction.Transaction
- public class TransactionImpl
- extends java.lang.Object
- implements javax.transaction.Transaction, java.io.Serializable
A light weight transaction.
It is the public face of the TxCapsule.
Many of these "transactions" can coexist representing the TxCap.
Access to the underlying txCap is done through the TransactionManager.
- Version:
- $Revision: 1.10 $
- Author:
- Rickard Öberg (rickard.oberg@telkel.com), Marc Fleury, Ole Husgaard
- See Also:
TxCapsule
, Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
commit
public void commit()
throws javax.transaction.RollbackException,
javax.transaction.HeuristicMixedException,
javax.transaction.HeuristicRollbackException,
java.lang.SecurityException,
java.lang.IllegalStateException,
javax.transaction.SystemException
- Specified by:
commit
in interface javax.transaction.Transaction
rollback
public void rollback()
throws java.lang.IllegalStateException,
java.lang.SecurityException,
javax.transaction.SystemException
- Specified by:
rollback
in interface javax.transaction.Transaction
delistResource
public boolean delistResource(javax.transaction.xa.XAResource xaRes,
int flag)
throws java.lang.IllegalStateException,
javax.transaction.SystemException
- Specified by:
delistResource
in interface javax.transaction.Transaction
enlistResource
public boolean enlistResource(javax.transaction.xa.XAResource xaRes)
throws javax.transaction.RollbackException,
java.lang.IllegalStateException,
javax.transaction.SystemException
- Specified by:
enlistResource
in interface javax.transaction.Transaction
getStatus
public int getStatus()
throws javax.transaction.SystemException
- Specified by:
getStatus
in interface javax.transaction.Transaction
registerSynchronization
public void registerSynchronization(javax.transaction.Synchronization s)
throws javax.transaction.RollbackException,
java.lang.IllegalStateException,
javax.transaction.SystemException
- Specified by:
registerSynchronization
in interface javax.transaction.Transaction
setRollbackOnly
public void setRollbackOnly()
throws java.lang.IllegalStateException,
javax.transaction.SystemException
- Specified by:
setRollbackOnly
in interface javax.transaction.Transaction
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
Copyright © 2000 The jBoss Organization. All Rights Reserved.