Package net.ontopia.persistence.jdbcspy
Class SpyDriver
- java.lang.Object
-
- net.ontopia.persistence.jdbcspy.SpyDriver
-
-
Constructor Summary
Constructors Constructor Description SpyDriver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptsURL(String url)
static void
clearStats()
Connection
connect(String url, Properties info)
int
getMajorVersion()
int
getMinorVersion()
Logger
getParentLogger()
DriverPropertyInfo[]
getPropertyInfo(String url, Properties info)
protected String
getRealURL(String url)
boolean
jdbcCompliant()
static void
unregister()
static void
writeReport(Writer out)
static void
writeReport(String filename)
-
-
-
Method Detail
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interfaceDriver
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliant
in interfaceDriver
-
acceptsURL
public boolean acceptsURL(String url) throws SQLException
- Specified by:
acceptsURL
in interfaceDriver
- Throws:
SQLException
-
connect
public Connection connect(String url, Properties info) throws SQLException
- Specified by:
connect
in interfaceDriver
- Throws:
SQLException
-
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
- Specified by:
getPropertyInfo
in interfaceDriver
- Throws:
SQLException
-
unregister
public static void unregister()
-
clearStats
public static void clearStats()
-
writeReport
public static void writeReport(String filename) throws IOException
- Throws:
IOException
-
writeReport
public static void writeReport(Writer out) throws IOException
- Throws:
IOException
-
getParentLogger
public Logger getParentLogger() throws SQLFeatureNotSupportedException
- Specified by:
getParentLogger
in interfaceDriver
- Throws:
SQLFeatureNotSupportedException
-
-