com.p6spy.engine.spy

Class P6PooledConnection

public class P6PooledConnection extends Object implements PooledConnection

Support for PooledConnection interface $Log: P6PooledConnection.java,v $ Revision 1.4 2003/08/07 19:07:58 aarvesen removed needless imports, collapsed the sql imports Revision 1.3 2003/08/04 19:34:02 aarvesen radically changed this class to simply wrap a pooledconnection rather than maintain its own kludgy connection pool Revision 1.2 2003/06/03 19:20:25 cheechq removed unused imports Revision 1.1 2003/01/30 23:35:22 dlukeparker Added support for the javax.sql operations for pooled connections. This is required for support of WebSphere. Finished implementation of com/p6spy/engine/spy/P6DataSource.java Added com/p6spy/engine/spy/P6ConnectionPoolDataSource.java Added com/p6spy/engine/spy/P6DataSourceFactory.java Added com/p6spy/engine/spy/P6PooledConnection.java Added com/p6spy/engine/spy/P6ProxyConnection.java Made changes in spy.properties and com/p6spy/engine/common/P6SpyOptions.java to enable datasource name, driver and properties setting. Also added support for specifying the JNDI context for finding the real datasource.
Field Summary
protected PooledConnectionpassthru
Constructor Summary
P6PooledConnection(PooledConnection connection)
Method Summary
voidaddConnectionEventListener(ConnectionEventListener eventTarget)
voidclose()
ConnectiongetConnection()
voidremoveConnectionEventListener(ConnectionEventListener eventTarget)

Field Detail

passthru

protected PooledConnection passthru

Constructor Detail

P6PooledConnection

public P6PooledConnection(PooledConnection connection)

Method Detail

addConnectionEventListener

public void addConnectionEventListener(ConnectionEventListener eventTarget)

close

public void close()

getConnection

public Connection getConnection()

removeConnectionEventListener

public void removeConnectionEventListener(ConnectionEventListener eventTarget)