tyrex.resource.jdbc
final class PoolEntry extends Object implements XAResourceCallback
Version: $Revision: 1.4 $
Field Summary | |
---|---|
protected int | _enlistCount
The reference count to track the number of times the
XA resource is enlisted in a transaction. |
protected boolean | _enlistedInTransaction
True if the XA resource has been enlisted in a transaction |
protected int | _hashCode
The hash code for this entry. |
protected PoolEntry | _nextEntry
Reference to the next connection entry in hash table. |
protected String | _password
The password. |
protected PooledConnection | _pooled
The pooled connection associated with this entry. |
protected int | _state
The state of the pooled connection. |
protected long | _timeStamp
The timestamp for a used connection returns the clock time at which
the connection was made available to the application. |
protected String | _user
The user name. |
protected XAResource | _xaResource
The XA resource associated with this connection. |
Constructor Summary | |
---|---|
protected | PoolEntry(ConnectionPool connectionPool, PooledConnection pooled, int hashCode, XAResource xaResource, String user, String password)
Constructs a new pool entry. |
Method Summary | |
---|---|
void | boundary(Xid xid, boolean commit)
Called when the XA resource associated with this callback
has been committed/rolledback in a transaction,i.e.
javax.transaction.XA.XAResource.commit() or
javax.transaction.XA.XAResource.rollback()
has been called.
|
void | enlist(Xid xid)
Called when the XA resource associated with this callback
has been enlisted in a transaction,i.e.
javax.transaction.XA.XAResource.start(javax.transaction.XA.XAResource.TMSTART)
has been called.
|
void | fail(Xid xid)
Called when the XA resource associated with this callback
has been delisted from a transaction,i.e.
javax.transaction.XA.XAResource.end(javax.transaction.XA.XAResource.TMFAIL)
has been called.
|
Parameters: connectionPool the connection pool to which this pool entry belongs pooled The pooled connection hashCode The managed connection hash code xaResource The XA resource interface, or null txManager The transaction manager in which this resource is enlisted user The user name or null password The password or null
Parameters: xid the xid that was used to enlist the XA resource (required) commit True if the XA resource has been committed. False if the XA resource has been rolled back.
Parameters: xid the xid that was used to enlist the XA resource (required)
Parameters: xid the xid that was used to enlist the XA resource (required)