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 booleanacceptsURL(String url)static voidclearStats()Connectionconnect(String url, Properties info)intgetMajorVersion()intgetMinorVersion()LoggergetParentLogger()DriverPropertyInfo[]getPropertyInfo(String url, Properties info)protected StringgetRealURL(String url)booleanjdbcCompliant()static voidunregister()static voidwriteReport(Writer out)static voidwriteReport(String filename)
-
-
-
Method Detail
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfaceDriver
-
acceptsURL
public boolean acceptsURL(String url) throws SQLException
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
connect
public Connection connect(String url, Properties info) throws SQLException
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
- Specified by:
getPropertyInfoin 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:
getParentLoggerin interfaceDriver- Throws:
SQLFeatureNotSupportedException
-
-