|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttyrex.resource.jdbc.PoolEntry
Represents an entry in the connection pool.
| 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 java.lang.String |
_password
The password. |
protected javax.sql.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 java.lang.String |
_user
The user name. |
protected javax.transaction.xa.XAResource |
_xaResource
The XA resource associated with this connection. |
| Constructor Summary | |
protected |
PoolEntry(ConnectionPool connectionPool,
javax.sql.PooledConnection pooled,
int hashCode,
javax.transaction.xa.XAResource xaResource,
java.lang.String user,
java.lang.String password)
Constructs a new pool entry. |
| Method Summary | |
void |
boundary(javax.transaction.xa.Xid xid,
boolean commit)
Called when the XA resource associated with this callback has been committed/rolledback in a transaction,i.e. |
void |
enlist(javax.transaction.xa.Xid xid)
Called when the XA resource associated with this callback has been enlisted in a transaction,i.e. |
void |
fail(javax.transaction.xa.Xid xid)
Called when the XA resource associated with this callback has been delisted from a transaction,i.e. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final javax.sql.PooledConnection _pooled
protected final int _hashCode
protected PoolEntry _nextEntry
protected int _state
#AVAILABLE,
#IN_USE or #CLOSED.
protected final javax.transaction.xa.XAResource _xaResource
protected long _timeStamp
protected final java.lang.String _user
protected final java.lang.String _password
protected int _enlistCount
protected boolean _enlistedInTransaction
| Constructor Detail |
protected PoolEntry(ConnectionPool connectionPool,
javax.sql.PooledConnection pooled,
int hashCode,
javax.transaction.xa.XAResource xaResource,
java.lang.String user,
java.lang.String password)
connectionPool - the connection pool to which this pool
entry belongspooled - The pooled connectionhashCode - The managed connection hash codexaResource - The XA resource interface, or nulluser - The user name or nullpassword - The password or null| Method Detail |
public void enlist(javax.transaction.xa.Xid xid)
enlist in interface XAResourceCallbackxid - the xid that was used to enlist the XA resource
(required)public void fail(javax.transaction.xa.Xid xid)
fail in interface XAResourceCallbackxid - the xid that was used to enlist the XA resource
(required)XAResourceCallback.enlist(javax.transaction.xa.Xid)
public void boundary(javax.transaction.xa.Xid xid,
boolean commit)
boundary in interface XAResourceCallbackxid - 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.XAResourceCallback.enlist(javax.transaction.xa.Xid)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||