|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.bull.javamelody.JdbcDriver
public class JdbcDriver
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.
Constructor Summary | |
---|---|
JdbcDriver()
|
Method Summary | |
---|---|
boolean |
acceptsURL(String url)
|
Connection |
connect(String url,
Properties info)
|
int |
getMajorVersion()
|
int |
getMinorVersion()
|
Logger |
getParentLogger()
Définition de la méthode getParentLogger ajoutée dans l'interface Driver en jdk 1.7. |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info)
|
boolean |
jdbcCompliant()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JdbcDriver()
Method Detail |
---|
public Connection connect(String url, Properties info) throws SQLException
connect
in interface Driver
SQLException
public boolean acceptsURL(String url) throws SQLException
acceptsURL
in interface Driver
SQLException
public int getMajorVersion()
getMajorVersion
in interface Driver
public int getMinorVersion()
getMinorVersion
in interface Driver
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo
in interface Driver
SQLException
public boolean jdbcCompliant()
jdbcCompliant
in interface Driver
public String toString()
toString
in class Object
public Logger getParentLogger() throws SQLFeatureNotSupportedException
SQLFeatureNotSupportedException
- e
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |