Package org.apache.commons.dbutils
Class DbUtils.DriverProxy
java.lang.Object
org.apache.commons.dbutils.DbUtils.DriverProxy
- All Implemented Interfaces:
Driver
- Enclosing class:
DbUtils
Simple
Driver
proxy class that proxies a JDBC Driver loaded dynamically.- Since:
- 1.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Driver
The adapted JDBC Driver loaded dynamically.private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionDriverProxy
(Driver adapted) Creates a new JDBC Driver that adapts a JDBC Driver loaded dynamically. -
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptsURL
(String url) connect
(String url, Properties info) int
int
Java 1.7 method.getPropertyInfo
(String url, Properties info) boolean
-
Field Details
-
parentLoggerSupported
private boolean parentLoggerSupported -
adapted
The adapted JDBC Driver loaded dynamically.
-
-
Constructor Details
-
DriverProxy
Creates a new JDBC Driver that adapts a JDBC Driver loaded dynamically.- Parameters:
adapted
- the adapted JDBC Driver loaded dynamically.
-
-
Method Details
-
acceptsURL
- Specified by:
acceptsURL
in interfaceDriver
- Throws:
SQLException
-
connect
- Specified by:
connect
in interfaceDriver
- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersion
in interfaceDriver
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfaceDriver
-
getPropertyInfo
- Specified by:
getPropertyInfo
in interfaceDriver
- Throws:
SQLException
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliant
in interfaceDriver
-
getParentLogger
Java 1.7 method.- Specified by:
getParentLogger
in interfaceDriver
- Throws:
SQLFeatureNotSupportedException
-