ew-profiling, 1.0

be.eliwan.profiling.jdbc
Class ProfilingDriver

java.lang.Object
  extended by 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.


Constructor Summary
ProfilingDriver()
           
 
Method Summary
 boolean acceptsURL(String s)
           
static void addListener(ProfilingListener listener)
          Add a new listener to the list of profiling listeners.
 Connection connect(String s, Properties properties)
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 Logger getParentLogger()
          Get parent logger, included for Java7.
 DriverPropertyInfo[] getPropertyInfo(String s, Properties properties)
           
 boolean jdbcCompliant()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilingDriver

public ProfilingDriver()
Method Detail

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

ew-profiling, 1.0

Copyright © 2014. All rights reserved.