|
||||||||||
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 Transaction
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
public void rollback() throws IllegalStateException, SecurityException, SystemException
rollback
in interface Transaction
IllegalStateException
SecurityException
SystemException
public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
delistResource
in interface Transaction
IllegalStateException
SystemException
public boolean enlistResource(XAResource xaRes) throws RollbackException, IllegalStateException, SystemException
enlistResource
in interface Transaction
RollbackException
IllegalStateException
SystemException
public int getStatus() throws SystemException
getStatus
in interface Transaction
SystemException
public void registerSynchronization(Synchronization s) throws RollbackException, IllegalStateException, SystemException
registerSynchronization
in interface Transaction
RollbackException
IllegalStateException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface Transaction
IllegalStateException
SystemException
public int getAssociatedThreadCount()
public Set getAssociatedThreads()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public 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 |