Package org.pentaho.di.core.database
Class DelegatingDriver
- java.lang.Object
-
- org.pentaho.di.core.database.DelegatingDriver
-
- All Implemented Interfaces:
Driver
public class DelegatingDriver extends Object implements Driver
This delegating driver allows the plugin system to be used in a separate class loader while making DriverManager believe that the parent class loader is used. It's an unfortunate hack but it works fine.- Author:
- matt
-
-
Constructor Summary
Constructors Constructor Description DelegatingDriver(Driver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptsURL(String url)
Connection
connect(String url, Properties info)
int
getMajorVersion()
int
getMinorVersion()
Logger
getParentLogger()
This method is added to make this driver compile on Java7DriverPropertyInfo[]
getPropertyInfo(String url, Properties info)
boolean
jdbcCompliant()
-
-
-
Constructor Detail
-
DelegatingDriver
public DelegatingDriver(Driver driver)
-
-
Method Detail
-
connect
public Connection connect(String url, Properties info) throws SQLException
- Specified by:
connect
in interfaceDriver
- Throws:
SQLException
-
acceptsURL
public boolean acceptsURL(String url) throws SQLException
- Specified by:
acceptsURL
in interfaceDriver
- Throws:
SQLException
-
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
- Specified by:
getPropertyInfo
in interfaceDriver
- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interfaceDriver
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliant
in interfaceDriver
-
getParentLogger
public Logger getParentLogger()
This method is added to make this driver compile on Java7- Specified by:
getParentLogger
in interfaceDriver
- Returns:
- always null until we finally switch over to Java7 with the codebase (TODO)
-
-