com.p6spy.engine.spy
Class P6SpyDriverCore

java.lang.Object
  |
  +--com.p6spy.engine.spy.P6SpyDriverCore
All Implemented Interfaces:
java.sql.Driver
Direct Known Subclasses:
P6LogSpyDriver, P6LogSpyDriver2, P6LogSpyDriver3, P6OutageSpyDriver, P6OutageSpyDriver2, P6OutageSpyDriver3, P6SpyDriver, P6SpyDriver2, P6SpyDriver3

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


Field Summary
protected static java.util.HashSet driversRegistered
           
protected static java.lang.String DRIVERSTACK_KEY
           
static java.util.HashMap driverStacks
           
protected static java.lang.Object lock
           
protected  P6Factory p6factory
           
protected  java.sql.Driver passthru
           
protected  java.lang.String suffix
           
 
Constructor Summary
P6SpyDriverCore(java.lang.String _spydriver, P6Factory _p6factory)
           
 
Method Summary
 boolean acceptsURL(java.lang.String p0)
           
protected static java.util.Stack buildDriverStack(java.lang.String suffixString)
           
 java.sql.Connection connect(java.lang.String p0, java.util.Properties p1)
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String p0, java.util.Properties p1)
           
protected  void getRealDriver()
           
static java.lang.String getSuffix(java.lang.String realdriver)
           
static void initMethod(java.lang.String spydriver)
           
 boolean jdbcCompliant()
           
 
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

suffix

protected java.lang.String suffix

p6factory

protected P6Factory p6factory

lock

protected static java.lang.Object lock

driverStacks

public static java.util.HashMap driverStacks

driversRegistered

protected static java.util.HashSet driversRegistered

DRIVERSTACK_KEY

protected static java.lang.String DRIVERSTACK_KEY
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)

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

acceptsURL

public boolean acceptsURL(java.lang.String p0)
                   throws java.sql.SQLException
Specified by:
acceptsURL in interface java.sql.Driver

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

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

getRealDriver

protected void getRealDriver()
                      throws java.sql.SQLException

buildDriverStack

protected static java.util.Stack buildDriverStack(java.lang.String suffixString)
                                           throws java.sql.SQLException

getSuffix

public static java.lang.String getSuffix(java.lang.String realdriver)