com.p6spy.engine.spy
Class P6SpyDriverCore

java.lang.Object
  extended bycom.p6spy.engine.spy.P6SpyDriverCore
All Implemented Interfaces:
java.sql.Driver
Direct Known Subclasses:
P6SpyDriver, P6SpyDriver2, P6SpyDriver3

public abstract class P6SpyDriverCore
extends java.lang.Object
implements java.sql.Driver


Field Summary
protected static java.util.ArrayList factories
           
protected static boolean foundSpyProperties
           
protected static boolean initialized
           
protected  java.sql.Driver passthru
           
protected static java.util.ArrayList realDrivers
           
 
Constructor Summary
P6SpyDriverCore(java.lang.String _spydriver, P6Factory _p6factory)
           
 
Method Summary
 boolean acceptsURL(java.lang.String p0)
          for some reason the passthru is null, go create one
 java.sql.Connection connect(java.lang.String p0, java.util.Properties p1)
           
protected  void findPassthru(java.lang.String url)
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 java.sql.Driver getPassthru()
           
 java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String p0, java.util.Properties p1)
           
static void initMethod(java.lang.String spydriver)
           
 boolean jdbcCompliant()
           
 void setPassthru(java.sql.Driver inVar)
           
static java.sql.Connection wrapConnection(java.sql.Connection realConnection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

passthru

protected java.sql.Driver passthru

initialized

protected static boolean initialized

factories

protected static java.util.ArrayList factories

realDrivers

protected static java.util.ArrayList realDrivers

foundSpyProperties

protected static boolean foundSpyProperties
Constructor Detail

P6SpyDriverCore

public P6SpyDriverCore(java.lang.String _spydriver,
                       P6Factory _p6factory)
                throws java.lang.ClassNotFoundException,
                       java.lang.InstantiationException,
                       java.lang.IllegalAccessException,
                       java.sql.SQLException
Method Detail

initMethod

public static void initMethod(java.lang.String spydriver)

wrapConnection

public static java.sql.Connection wrapConnection(java.sql.Connection realConnection)
                                          throws java.sql.SQLException
Throws:
java.sql.SQLException

getPassthru

public java.sql.Driver getPassthru()

setPassthru

public void setPassthru(java.sql.Driver inVar)

connect

public java.sql.Connection connect(java.lang.String p0,
                                   java.util.Properties p1)
                            throws java.sql.SQLException
Specified by:
connect in interface java.sql.Driver
Throws:
java.sql.SQLException

findPassthru

protected void findPassthru(java.lang.String url)

acceptsURL

public boolean acceptsURL(java.lang.String p0)
                   throws java.sql.SQLException
for some reason the passthru is null, go create one

Specified by:
acceptsURL in interface java.sql.Driver
Throws:
java.sql.SQLException

getPropertyInfo

public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String p0,
                                                     java.util.Properties p1)
                                              throws java.sql.SQLException
Specified by:
getPropertyInfo in interface java.sql.Driver
Throws:
java.sql.SQLException

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface java.sql.Driver

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface java.sql.Driver

jdbcCompliant

public boolean jdbcCompliant()
Specified by:
jdbcCompliant in interface java.sql.Driver