com.p6spy.engine.spy

Class P6SpyDriverCore

public abstract class P6SpyDriverCore extends Object implements Driver

Description: Wrapper class for Driver $Author: cheechq $ $Revision: 1.15 $ $Date: 2003/06/03 19:20:26 $ $Id: P6SpyDriverCore.java,v 1.15 2003/06/03 19:20:26 cheechq Exp $ $Log: P6SpyDriverCore.java,v $ Revision 1.15 2003/06/03 19:20:26 cheechq removed unused imports Revision 1.14 2003/04/10 18:17:57 aarvesen always check to see if there are drivers to dereg. Then, either deregister them or warn that they'll prevent you from functioning properly Revision 1.13 2003/03/07 22:08:09 aarvesen added deregistration code Revision 1.12 2003/02/24 17:56:28 dlukeparker Removed debug output Revision 1.11 2003/02/24 17:45:05 dlukeparker Clarified error reporting when spy.properties is not found Revision 1.10 2003/01/28 19:32:31 jeffgoke fixed bug exposed by test framework where option reloading was having problems if options were manipulated before the driver was created. Revision 1.9 2003/01/28 17:01:13 jeffgoke rewrote options to the ability for a module to have its own option set Revision 1.8 2003/01/18 00:26:35 jeffgoke fixed a bug where new instances of the driver (not using driver manager but creating instances of the driver yourself) were causing the connection to be null Revision 1.7 2003/01/16 00:50:03 jeffgoke changed Error call to use syntax compatible prior to 1.4 Revision 1.6 2003/01/15 22:11:52 aarvesen do some stronger error trapping and die on error Revision 1.5 2003/01/10 21:40:11 jeffgoke changed to use new error handling facility Revision 1.4 2003/01/03 21:18:03 aarvesen use the new P6Util.forName Revision 1.3 2002/12/20 00:04:09 aarvesen New style of driver! Revision 1.2 2002/10/06 18:23:25 jeffgoke no message Revision 1.1 2002/05/24 07:31:13 jeffgoke version 1 rewrite Revision 1.1 2002/05/16 04:58:40 jeffgoke Viktor Szathmary added multi-driver support. Rewrote P6SpyOptions to be easier to manage. Fixed several bugs. Revision 1.6 2002/05/05 00:43:00 jeffgoke Added Philip's reload code. Revision 1.5 2002/04/15 05:13:32 jeffgoke Simon Sadedin added timing support. Fixed bug where batch execute was not getting logged. Added result set timing. Updated the log format to include categories, and updated options to control the categories. Updated documentation. Revision 1.4 2002/04/10 06:49:26 jeffgoke added more debug information and a new property for setting the log's date format Revision 1.3 2002/04/10 05:22:09 jeffgoke included debug option and a message at driver initialization time Revision 1.2 2002/04/07 20:43:59 jeffgoke fixed bug that caused null connection to return an empty connection instead of null. added an option allowing the user to truncate. added a release target to the build to create the release files. Revision 1.1.1.1 2002/04/07 04:52:25 jeffgoke no message Revision 1.3 2001-08-02 07:52:44-05 andy <> Revision 1.2 2001-07-30 23:37:33-05 andy <> Revision 1.1 2001-07-30 23:03:31-05 andy <> Revision 1.0 2001-07-30 17:46:23-05 andy Initial revision
Field Summary
protected static ArrayListfactories
protected static booleanfoundSpyProperties
protected static booleaninitialized
protected Driverpassthru
protected static ArrayListrealDrivers
Constructor Summary
P6SpyDriverCore(String _spydriver, P6Factory _p6factory)
Method Summary
booleanacceptsURL(String p0)
for some reason the passthru is null, go create one
Connectionconnect(String p0, Properties p1)
protected voidfindPassthru(String url)
intgetMajorVersion()
intgetMinorVersion()
DrivergetPassthru()
DriverPropertyInfo[]getPropertyInfo(String p0, Properties p1)
static voidinitMethod(String spydriver)
booleanjdbcCompliant()
voidsetPassthru(Driver inVar)
static ConnectionwrapConnection(Connection realConnection)

Field Detail

factories

protected static ArrayList factories

foundSpyProperties

protected static boolean foundSpyProperties

initialized

protected static boolean initialized

passthru

protected Driver passthru

realDrivers

protected static ArrayList realDrivers

Constructor Detail

P6SpyDriverCore

public P6SpyDriverCore(String _spydriver, P6Factory _p6factory)

Method Detail

acceptsURL

public boolean acceptsURL(String p0)
for some reason the passthru is null, go create one

connect

public Connection connect(String p0, Properties p1)

findPassthru

protected void findPassthru(String url)

getMajorVersion

public int getMajorVersion()

getMinorVersion

public int getMinorVersion()

getPassthru

public Driver getPassthru()

getPropertyInfo

public DriverPropertyInfo[] getPropertyInfo(String p0, Properties p1)

initMethod

public static void initMethod(String spydriver)

jdbcCompliant

public boolean jdbcCompliant()

setPassthru

public void setPassthru(Driver inVar)

wrapConnection

public static Connection wrapConnection(Connection realConnection)