|
||||||||||
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 | |
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.Vector |
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 |
java.util.HashSet |
stmtHash
This HashSet contains the currently used preparedStatements for this ManagedConnection. |
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 |
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()
Fowards the getResource call to the associated ConnectionManager |
boolean |
isFreeStmt()
Determine if the first pStmt is free to remove |
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 localTransaction
public LocalXAWrapper lw
public java.lang.Object ctx
public javax.transaction.Synchronization synchro
public java.util.Vector pStmts
public java.util.HashSet stmtHash
Constructor Detail |
public MCInfo(javax.resource.spi.ManagedConnection _mc)
Method Detail |
public java.lang.String getState(java.lang.String prefix)
public java.lang.String getState()
public boolean isFreeStmt()
public void destroy() throws java.lang.Exception
java.lang.Exception
public javax.transaction.xa.XAResource getXAResource() throws javax.resource.ResourceException
javax.resource.ResourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |