com.caucho.sql.spy
Class SpyDriver
java.lang.Object
com.caucho.sql.spy.SpyDriver
- All Implemented Interfaces:
- java.sql.Driver
public class SpyDriver
- extends java.lang.Object
- implements java.sql.Driver
Spying on a driver.
Field Summary |
protected static L10N |
L
|
protected static java.util.logging.Logger |
log
|
Constructor Summary |
SpyDriver(java.sql.Driver driver,
DriverConfig driverConfig)
Creates a new SpyDriver. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
protected static final java.util.logging.Logger log
L
protected static final L10N L
SpyDriver
public SpyDriver(java.sql.Driver driver,
DriverConfig driverConfig)
- Creates a new SpyDriver.
start
protected long start()
log
protected void log(long start,
java.lang.String msg)
acceptsURL
public boolean acceptsURL(java.lang.String url)
throws java.sql.SQLException
- Specified by:
acceptsURL
in interface java.sql.Driver
- Throws:
java.sql.SQLException
connect
public java.sql.Connection connect(java.lang.String url,
java.util.Properties fine)
throws java.sql.SQLException
- Specified by:
connect
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
getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties fine)
throws java.sql.SQLException
- Specified by:
getPropertyInfo
in interface java.sql.Driver
- Throws:
java.sql.SQLException
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliant
in interface java.sql.Driver
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object