|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonas.resource.MCInfo
A ManagedConnection and its Information
| Field Summary | |
boolean |
connectionEventListener
Has the ConnectionEventListener been set |
java.lang.Object |
ctx
The Context linked to the managedConnection instance There are three state possible global transaction : ctx= the reference to the transaction instance local transaction: ctx=null / localTransaction = true other ctx = null; |
boolean |
localTransaction
Is the the managedConnection is inside a local transaction |
LocalXAWrapper |
lw
If local transaction is used, then here is the LocalXAWrapper to use instead of an XA object |
javax.resource.spi.ManagedConnection |
mc
The managedConnection |
java.util.List |
pStmts
This vector will hold any necessary preparedStatements for this ManagedConnection. |
org.objectweb.jonas.resource.RMEImpl |
rme
The event used for the later enlisting into transaction |
boolean |
rmeCalled
Has the ResourceManagerEvent Listener been called |
javax.transaction.Synchronization |
synchro
The current Synchronisation object used for the later enlisting into the global transaction |
java.util.Vector |
usedCs
The list of used Connections |
| Constructor Summary | |
MCInfo(javax.resource.spi.ManagedConnection mc)
Constructor for the MCInfo object |
|
| Method Summary | |
void |
destroy()
Fowards the detroy call on the ManagedConnection |
int |
findFreeStmt()
Determine if there is a pStmt to remove The method calling this code should use synchronized block |
java.lang.String |
getState()
Gets the State attribute of the MCInfo object |
java.lang.String |
getState(java.lang.String prefix)
Gets the State attribute of the MCInfo object |
javax.transaction.xa.XAResource |
getXAResource()
Gets the associated XAResource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public javax.resource.spi.ManagedConnection mc
public java.util.Vector usedCs
public org.objectweb.jonas.resource.RMEImpl rme
public boolean rmeCalled
public boolean localTransaction
public LocalXAWrapper lw
public java.lang.Object ctx
public javax.transaction.Synchronization synchro
public java.util.List pStmts
public boolean connectionEventListener
| Constructor Detail |
public MCInfo(javax.resource.spi.ManagedConnection mc)
mc - ManagedConnection to associate with| Method Detail |
public java.lang.String getState(java.lang.String prefix)
prefix - String to print out
public java.lang.String getState()
public int findFreeStmt()
public void destroy()
throws java.lang.Exception
java.lang.Exception - if an Exception occurs
public javax.transaction.xa.XAResource getXAResource()
throws javax.resource.ResourceException
javax.resource.ResourceException - if an Exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||