tyrex.tm
Interface TyrexTransactionManager
public
interface
TyrexTransactionManager
extends TransactionManager
Tyrex extensions for TransactionManager. All Tyrex
transaction managers implement this interface, which supports
transaction resolving from an Xid, and means to obtain extended
transaction status.
Author: Riad Mohammed
Method Summary |
abstract void | delistResource(XAResource xaResource, int flag)
Called to delist a resource from the current thread.
|
abstract void | dumpCurrentTransaction(PrintWriter writer)
Convenience method. |
abstract void | dumpTransactionList(PrintWriter writer)
Convenience method. |
abstract void | enlistResource(XAResource xaResource)
Called to enlist a resource with the current thread.
|
abstract void | enlistResource(XAResource xaResource, XAResourceCallback callback)
Called to enlist a resource with the current thread.
|
abstract Transaction | getTransaction(Xid xid)
Returns a transaction based on the transaction identifier.
|
abstract Transaction | getTransaction(String xid)
Returns a transaction based on the transaction identifier.
|
public abstract void delistResource(XAResource xaResource, int flag)
Called to delist a resource from the current thread.
If this method is called within an active transaction,
the connection will be delisted using the success flag.
The connection will not be enlisted in any future transaction
associated with the same thread context.
Parameters: xaRes The XA resource flag The delist flag
public abstract void dumpCurrentTransaction(PrintWriter writer)
Convenience method. Dumps information about the transaction
associated with the current thread.
Parameters: writer The writer to use
public abstract void dumpTransactionList(PrintWriter writer)
Convenience method. Dumps information about all active transactions
created by this transaction manager.
Parameters: writer The writer to use
public abstract void enlistResource(XAResource xaResource)
Called to enlist a resource with the current thread.
If this method is called within an active transaction,
the connection will be enlisted in that transaction.
The connection will be enlisted in any future transaction
associated with the same thread context.
Parameters: xaRes The XA resource
Throws: SystemException The resource cannot be enlisted with
the current transaction
Called to enlist a resource with the current thread.
If this method is called within an active transaction,
the connection will be enlisted in that transaction.
The connection will be enlisted in any future transaction
associated with the same thread context.
Parameters: xaRes The XA resource callback The callback (optional)
Throws: SystemException The resource cannot be enlisted with
the current transaction
See Also: XAResourceCallback
public abstract Transaction getTransaction(Xid xid)
Returns a transaction based on the transaction identifier.
Parameters: xid The transaction identifier
Returns: The transaction, or null if no such transaction exists
public abstract Transaction getTransaction(String xid)
Returns a transaction based on the transaction identifier.
Parameters: xid The transaction identifier
Returns: The transaction, or null if no such transaction exists
Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.