be.eliwan.profiling.jdbc
Class ProfilingDriver
java.lang.Object
be.eliwan.profiling.jdbc.ProfilingDriver
- All Implemented Interfaces:
- Driver
public class ProfilingDriver
- extends Object
- implements Driver
Wrapping JDBC driver which can be used to profile the time spent communicating with the database.
ProfilingDriver
public ProfilingDriver()
addListener
public static void addListener(ProfilingListener listener)
- Add a new listener to the list of profiling listeners.
- Parameters:
listener - listener to add
connect
public Connection connect(String s,
Properties properties)
throws SQLException
- Specified by:
connect in interface Driver
- Throws:
SQLException
acceptsURL
public boolean acceptsURL(String s)
throws SQLException
- Specified by:
acceptsURL in interface Driver
- Throws:
SQLException
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String s,
Properties properties)
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
getParentLogger
public Logger getParentLogger()
throws SQLFeatureNotSupportedException
- Get parent logger, included for Java7.
- Returns:
- parent logger
- Throws:
SQLFeatureNotSupportedException - feature not supported
Copyright © 2014. All rights reserved.