tyrex.resource.jdbc.xa
Class TxConnection
final
class
TxConnection
extends Object
Describes an open connection associated with a transaction. When a
transaction is opened for a connection, this record is created for
the connection. It indicates the underlying JDBC connection and
transaction Xid. Multiple XA connection that fall under the same
transaction Xid will share the same TxConnection object.
Version: 1.0
Author: Assaf Arkin
See Also: Xid XAConnectionImpl
Field Summary |
Connection | conn
Holds the underlying JDBC connection for as long as this
connection is useable. |
int | count
Reference counter indicates how many XA connections share this
underlying connection and transaction. |
String | password
The password for the underlying connection.
|
boolean | prepared
True if the transaction has already been prepared. |
boolean | readOnly
True if the transaction has been prepared and found out to be
read-only. |
long | started
Indicates the clock time (in ms) when the transaction started. |
boolean | timedOut
True if the transaction has failed due to time out. |
long | timeout
Indicates the clock time (in ms) when the transaction should
time out. |
String | userName
The user name for the underlying connection.
|
Xid | xid
The Xid of the transactions. |
Connection conn
Holds the underlying JDBC connection for as long as this
connection is useable. If the connection has been rolled back,
timed out or had any other error, this variable will null
and the connection is considered failed.
int count
Reference counter indicates how many XA connections share this
underlying connection and transaction. Always one or more.
String password
The password for the underlying connection.
Can be null.
boolean prepared
True if the transaction has already been prepared.
boolean readOnly
True if the transaction has been prepared and found out to be
read-only. Read-only transactions do not require commit/rollback.
long started
Indicates the clock time (in ms) when the transaction started.
boolean timedOut
True if the transaction has failed due to time out.
long timeout
Indicates the clock time (in ms) when the transaction should
time out. The transaction times out when
System.currentTimeMillis() > timeout.
String userName
The user name for the underlying connection.
Can be null.
Xid xid
The Xid of the transactions. Connections that are not
associated with a transaction are not represented here.
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.