Package net.bull.javamelody
Class JdbcDriver
java.lang.Object
net.bull.javamelody.JdbcDriver
- All Implemented Interfaces:
Driver
Driver jdbc "proxy" pour le monitoring.
C'est la classe de ce driver qui doit être déclarée si un driver jdbc et non une dataSource est utilisé.
Dans la déclaration une propriété jdbc 'driver' doit contenir le nom de la classe du vrai driver.
D'autres propriétés jdbc comme url, username ou password peuvent être déclarées.
- Author:
- Emeric Vernat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsURL(String url) connect(String url, Properties info) intintDéfinition de la méthode getParentLogger ajoutée dans l'interface Driver en jdk 1.7.getPropertyInfo(String url, Properties info) booleantoString()
-
Constructor Details
-
JdbcDriver
public JdbcDriver()
-
-
Method Details
-
connect
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
acceptsURL
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfaceDriver
-
getPropertyInfo
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliantin interfaceDriver
-
toString
-
getParentLogger
Définition de la méthode getParentLogger ajoutée dans l'interface Driver en jdk 1.7.- Specified by:
getParentLoggerin interfaceDriver- Returns:
- Logger
- Throws:
SQLFeatureNotSupportedException- e
-