|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.tm.TransactionImpl
public class TransactionImpl
Our Transaction implementation.
TxManager| Method Summary | |
|---|---|
void |
commit()
|
boolean |
delistResource(XAResource xaRes,
int flag)
|
boolean |
enlistResource(XAResource xaRes)
|
boolean |
equals(Object obj)
|
int |
getAssociatedThreadCount()
|
Set |
getAssociatedThreads()
|
GlobalId |
getGlobalId()
Returns the global id of this transaction. |
LocalId |
getLocalId()
Returns the local id of this transaction. |
long |
getLocalIdValue()
Returns the local id of this transaction. |
int |
getStatus()
|
long |
getTimeLeftBeforeTimeout(boolean errorRollback)
|
XidImpl |
getXid()
Returns the xid of this transaction. |
int |
hashCode()
|
void |
registerSynchronization(Synchronization s)
|
void |
rollback()
|
void |
setRollbackOnly()
|
void |
timedOut(org.jboss.util.timeout.Timeout timeout)
Called when our timeout expires. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void timedOut(org.jboss.util.timeout.Timeout timeout)
timedOut in interface org.jboss.util.timeout.TimeoutTarget
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface TransactionRollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
rollback in interface TransactionIllegalStateException
SecurityException
SystemException
public boolean delistResource(XAResource xaRes,
int flag)
throws IllegalStateException,
SystemException
delistResource in interface TransactionIllegalStateException
SystemException
public boolean enlistResource(XAResource xaRes)
throws RollbackException,
IllegalStateException,
SystemException
enlistResource in interface TransactionRollbackException
IllegalStateException
SystemException
public int getStatus()
throws SystemException
getStatus in interface TransactionSystemException
public void registerSynchronization(Synchronization s)
throws RollbackException,
IllegalStateException,
SystemException
registerSynchronization in interface TransactionRollbackException
IllegalStateException
SystemException
public void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionIllegalStateException
SystemExceptionpublic int getAssociatedThreadCount()
public Set getAssociatedThreads()
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic long getLocalIdValue()
public LocalId getLocalId()
public GlobalId getGlobalId()
public XidImpl getXid()
public long getTimeLeftBeforeTimeout(boolean errorRollback)
throws RollbackException
RollbackException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||