com.p6spy.engine.spy
Class P6SpyDriverCore

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

public abstract class P6SpyDriverCore
extends Object
implements Driver


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

Field Detail

passthru

protected Driver passthru

initialized

protected static boolean initialized

factories

protected static ArrayList factories

realDrivers

protected static ArrayList realDrivers

foundSpyProperties

protected static boolean foundSpyProperties
Constructor Detail

P6SpyDriverCore

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

initMethod

public static void initMethod(String spydriver)

wrapConnection

public static Connection wrapConnection(Connection realConnection)
                                 throws SQLException
Throws:
SQLException

getPassthru

public Driver getPassthru()

setPassthru

public void setPassthru(Driver inVar)

connect

public Connection connect(String p0,
                          Properties p1)
                   throws SQLException
Specified by:
connect in interface Driver
Throws:
SQLException

findPassthru

protected void findPassthru(String url)

acceptsURL

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

Specified by:
acceptsURL in interface Driver
Throws:
SQLException

getPropertyInfo

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

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface Driver

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface Driver

jdbcCompliant

public boolean jdbcCompliant()
Specified by:
jdbcCompliant in interface Driver