com.caucho.sql.spy
Class SpyXAConnection

java.lang.Object
  extended by com.caucho.sql.spy.SpyPooledConnection
      extended by com.caucho.sql.spy.SpyXAConnection
All Implemented Interfaces:
javax.sql.PooledConnection, javax.sql.XAConnection

public class SpyXAConnection
extends SpyPooledConnection
implements javax.sql.XAConnection

Spying on a connection.


Field Summary
protected static L10N L
           
protected static java.util.logging.Logger log
           
 
Fields inherited from class com.caucho.sql.spy.SpyPooledConnection
_id
 
Constructor Summary
SpyXAConnection(javax.sql.XAConnection conn, java.lang.String id)
          Creates a new SpyConnection.
 
Method Summary
 XAResource getXAResource()
          Returns the XAResource.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.sql.spy.SpyPooledConnection
addConnectionEventListener, addStatementEventListener, close, getConnection, log, removeConnectionEventListener, removeStatementEventListener, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.sql.PooledConnection
addConnectionEventListener, addStatementEventListener, close, getConnection, removeConnectionEventListener, removeStatementEventListener
 

Field Detail

log

protected static final java.util.logging.Logger log

L

protected static final L10N L
Constructor Detail

SpyXAConnection

public SpyXAConnection(javax.sql.XAConnection conn,
                       java.lang.String id)
Creates a new SpyConnection.

Method Detail

getXAResource

public XAResource getXAResource()
                         throws java.sql.SQLException
Returns the XAResource.

Specified by:
getXAResource in interface javax.sql.XAConnection
Throws:
java.sql.SQLException

toString

public java.lang.String toString()
Overrides:
toString in class SpyPooledConnection