|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jonas.ee.jdbc.ManagedConnectionImpl
public class ManagedConnectionImpl
| Field Summary | |
|---|---|
protected HashSet |
cels
|
protected DataSource |
factory
|
protected boolean |
inLocalTransaction
|
protected PrintWriter |
out
|
org.objectweb.util.monolog.api.Logger |
trace
|
| Constructor Summary | |
|---|---|
ManagedConnectionImpl(ManagedConnectionFactoryImpl _mcf,
PasswordCredential _pc,
Connection _con,
PooledConnection _pcon,
XAConnection _xa,
org.ow2.jonas.ee.jdbc.DriverWrapper wrp)
|
|
| Method Summary | |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener)
Adds a connection event listener. |
void |
addSignature(long sig)
|
void |
associateConnection(Object con)
Change the association of a connection handle |
void |
begin()
|
void |
cleanup()
Cleanup the ManagedConnection instance. |
void |
clearSignature()
|
void |
clearSignature(long sig,
boolean clear)
|
void |
close(ConnectionImpl ch)
|
void |
commit()
|
void |
destroy()
Destroys the physical connection. |
boolean |
getAutoCommit()
|
Object |
getConnection(Subject subject,
ConnectionRequestInfo cxRequestInfo)
Create a connection handle |
LocalTransaction |
getLocalTransaction()
Returns an javax.resource.spi.LocalTransaction instance. |
PrintWriter |
getLogWriter()
Gets the log writer for this ManagedConnection instance. |
ManagedConnectionMetaData |
getMetaData()
Gets the metadata information for this connection's underlying EIS resource manager instance. |
long |
getNewSignature(boolean setSig)
Gets the next signature value |
long |
getSignature()
Gets the current signature value |
long |
getSignature(long sig)
Gets the signature value passed in if found in the signature hash table |
XAResource |
getXAResource()
Check if the mc is in local transaction |
void |
removeConnectionEventListener(ConnectionEventListener listener)
Removes an already registered connection event listener from the ManagedConnection instance |
void |
rollback()
|
void |
setAutoCommit(boolean ac)
|
void |
setLogWriter(PrintWriter _out)
Sets the log writer for this ManagedConnection instance. |
void |
setSignature(long sig)
|
void |
signalEvent(int code,
Object ch,
Exception ex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public org.objectweb.util.monolog.api.Logger trace
protected PrintWriter out
protected DataSource factory
protected HashSet cels
protected boolean inLocalTransaction
| Constructor Detail |
|---|
public ManagedConnectionImpl(ManagedConnectionFactoryImpl _mcf,
PasswordCredential _pc,
Connection _con,
PooledConnection _pcon,
XAConnection _xa,
org.ow2.jonas.ee.jdbc.DriverWrapper wrp)
| Method Detail |
|---|
public void signalEvent(int code,
Object ch,
Exception ex)
public boolean getAutoCommit()
throws ResourceException
ResourceException
public void setAutoCommit(boolean ac)
throws ResourceException
ResourceExceptionpublic void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener in interface ManagedConnection
public void associateConnection(Object con)
throws ResourceException
associateConnection in interface ManagedConnectionResourceException
public void cleanup()
throws ResourceException
cleanup in interface ManagedConnectionResourceException
public void destroy()
throws ResourceException
destroy in interface ManagedConnectionResourceException
public Object getConnection(Subject subject,
ConnectionRequestInfo cxRequestInfo)
throws ResourceException
getConnection in interface ManagedConnectionResourceException
public LocalTransaction getLocalTransaction()
throws ResourceException
getLocalTransaction in interface ManagedConnectionResourceExceptionpublic PrintWriter getLogWriter()
getLogWriter in interface ManagedConnection
public ManagedConnectionMetaData getMetaData()
throws ResourceException
getMetaData in interface ManagedConnectionResourceException
public XAResource getXAResource()
throws ResourceException
getXAResource in interface ManagedConnectionResourceExceptionpublic void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener in interface ManagedConnectionpublic void setLogWriter(PrintWriter _out)
setLogWriter in interface ManagedConnectionpublic void addSignature(long sig)
public void clearSignature()
public void clearSignature(long sig,
boolean clear)
public void setSignature(long sig)
public long getSignature(long sig)
long - sig value to find in signature table
public long getSignature()
public long getNewSignature(boolean setSig)
public void close(ConnectionImpl ch)
throws ResourceException
ResourceException
public void begin()
throws ResourceException
begin in interface LocalTransactionResourceException
public void commit()
throws ResourceException
commit in interface LocalTransactionResourceException
public void rollback()
throws ResourceException
rollback in interface LocalTransactionResourceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||