| java.lang.Object org.jboss.tm.TransactionImpl
timeoutFactory | static TimeoutFactory timeoutFactory(Code) | | The timeout factory
|
xidFactory | static XidFactoryMBean xidFactory(Code) | | Factory for Xid instances of specified class.
This is set from the TransactionManagerService
MBean.
|
TransactionImpl | TransactionImpl(long timeout)(Code) | | |
associateCurrentThread | void associateCurrentThread()(Code) | | |
commit | void commit(boolean onePhase) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SystemException(Code) | | Commit an external transaction
Parameters: onePhase - whether the commit is one or two phase |
defaultXidFactory | static void defaultXidFactory()(Code) | | This static code is only present for testing purposes so a
tm can be usable without a lot of setup.
|
disassociateCurrentThread | void disassociateCurrentThread()(Code) | | |
getAssociatedThreadCount | public int getAssociatedThreadCount()(Code) | | |
getAssociatedThreads | public Set getAssociatedThreads()(Code) | | |
getGlobalId | public GlobalId getGlobalId()(Code) | | Returns the global id of this transaction. Ths global id is used in
the TxManager, which keeps a map from global ids to transactions.
|
getLocalId | public LocalId getLocalId()(Code) | | Returns the local id of this transaction. The local id is used as
a transaction propagation context within the JBoss server, and
in the TxManager for mapping local transaction ids to transactions.
|
getLocalIdValue | public long getLocalIdValue()(Code) | | Returns the local id of this transaction. The local id is used as
a transaction propagation context within the JBoss server, and
in the TxManager for mapping local transaction ids to transactions.
|
getStatus | public int getStatus() throws SystemException(Code) | | |
getTimeLeftBeforeTimeout | public long getTimeLeftBeforeTimeout(boolean errorRollback) throws RollbackException(Code) | | |
getWork | Work getWork()(Code) | | Get the work
the work |
getXid | public XidImpl getXid()(Code) | | Returns the xid of this transaction.
|
hashCode | public int hashCode()(Code) | | |
isDone | boolean isDone()(Code) | | Getter for property done.
|
lock | synchronized void lock()(Code) | | Lock this instance.
|
prepare | int prepare() throws HeuristicMixedException, HeuristicRollbackException, RollbackException(Code) | | Prepare an external transaction
XAResource.XA_RDONLY or XAResource.XA_OK |
setWork | void setWork(Work work) throws WorkCompletedException(Code) | | Set the work
Parameters: work - the work throws: WorkCompletedException - with error code WorkException.TX_CONCURRENT_WORK_DISALLOWEDwhen work is already present for the xid or whose completion is in progress, onlythe global part of the xid must be used for this check. Or with error codeWorkException.TX_RECREATE_FAILED if it is unable to recreate the transaction context |
timedOut | public void timedOut(Timeout timeout)(Code) | | Called when our timeout expires.
|
unlock | synchronized void unlock()(Code) | | Unlock this instance.
|
|
|