|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.resource.internal.cm.ManagedConnectionInfo
public class ManagedConnectionInfo
A ManagedConnection and its Information
Field Summary | |
---|---|
boolean |
connectionEventListener
Has the ConnectionEventListener been set |
boolean |
localTransaction
Is the the managedConnection is inside a local transaction |
protected static org.objectweb.util.monolog.api.Logger |
logger
|
LocalXAResource |
lw
If local transaction is used, then here is the LocalXAWrapper to use instead of an XA object |
ManagedConnection |
mc
The managedConnection |
List |
pStmts
This vector will hold any necessary preparedStatements for this ManagedConnection. |
JResourceManagerEvent |
rme
The event used for the later enlisting into transaction |
boolean |
rmeCalled
Has the ResourceManagerEvent Listener been called |
Synchronization |
synchro
The current Synchronisation object used for the later enlisting into the global transaction |
Vector |
usedCs
The list of used Connections |
Constructor Summary | |
---|---|
ManagedConnectionInfo(ManagedConnection mc)
Constructor for the ManagedConnectionInfo 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 |
Object |
getGlobalTx()
|
JResourceManagerEvent |
getResourceManagementEvent()
|
String |
getState()
Gets the State attribute of the ManagedConnectionInfo object |
String |
getState(String prefix)
Gets the State attribute of the ManagedConnectionInfo object |
XAResource |
getXAResource()
Gets the associated XAResource |
void |
setGlobalTx(Object tx)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ManagedConnection mc
public Vector usedCs
public JResourceManagerEvent rme
public boolean rmeCalled
public boolean localTransaction
public LocalXAResource lw
public Synchronization synchro
public List pStmts
protected static org.objectweb.util.monolog.api.Logger logger
public boolean connectionEventListener
Constructor Detail |
---|
public ManagedConnectionInfo(ManagedConnection mc)
mc
- ManagedConnection to associate withMethod Detail |
---|
public void setGlobalTx(Object tx)
public Object getGlobalTx()
public String getState(String prefix)
prefix
- String to print out
public String getState()
public int findFreeStmt()
public void destroy() throws Exception
Exception
- if an Exception occurspublic XAResource getXAResource() throws ResourceException
ResourceException
- if an Exception occurspublic JResourceManagerEvent getResourceManagementEvent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |