com.p6spy.engine.spy

Class P6DataSource

public class P6DataSource extends P6Base implements DataSource, Referenceable, Serializable

$Author: aarvesen $ $Revision: 1.5 $ $Date: 2003/08/07 19:07:21 $ $Id: P6DataSource.java,v 1.5 2003/08/07 19:07:21 aarvesen Exp $ $Source: /cvsroot/p6spy/p6spy/com/p6spy/engine/spy/P6DataSource.java,v $ $Log: P6DataSource.java,v $ Revision 1.5 2003/08/07 19:07:21 aarvesen moved the existing constructor to the top of the file added a new constructor for wrapping a datasource on instantiation Revision 1.4 2003/06/03 16:07:33 aarvesen renamed setDataSourceName to setRealDataSource Revision 1.3 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. Revision 1.2 2002/12/20 00:29:45 aarvesen removed the unneeded factory Revision 1.1 2002/12/19 23:51:45 aarvesen Data Source implementation
Field Summary
protected DataSourcerds
protected StringrdsName
Constructor Summary
P6DataSource()
Default no-arg constructor for Serialization
P6DataSource(DataSource source)
Method Summary
protected voidbindDataSource()
ConnectiongetConnection()
ConnectiongetConnection(String username, String password)
intgetLoginTimeout()
PrintWritergetLogWriter()
StringgetRealDataSource()
ReferencegetReference()
Required method to support this class as a Referenceable.
static voidinitMethod()
voidsetLoginTimeout(int inVar)
voidsetLogWriter(PrintWriter inVar)
voidsetRealDataSource(String inVar)

Field Detail

rds

protected DataSource rds

rdsName

protected String rdsName

Constructor Detail

P6DataSource

public P6DataSource()
Default no-arg constructor for Serialization

P6DataSource

public P6DataSource(DataSource source)

Method Detail

bindDataSource

protected void bindDataSource()

getConnection

public Connection getConnection()

getConnection

public Connection getConnection(String username, String password)

getLoginTimeout

public int getLoginTimeout()

getLogWriter

public PrintWriter getLogWriter()

getRealDataSource

public String getRealDataSource()

getReference

public Reference getReference()
Required method to support this class as a Referenceable.

initMethod

public static void initMethod()

setLoginTimeout

public void setLoginTimeout(int inVar)

setLogWriter

public void setLogWriter(PrintWriter inVar)

setRealDataSource

public void setRealDataSource(String inVar)