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 booleanacceptsURL(String url)Connectionconnect(String url, Properties info)intgetMajorVersion()intgetMinorVersion()LoggergetParentLogger()This method is added to make this driver compile on Java7DriverPropertyInfo[]getPropertyInfo(String url, Properties info)booleanjdbcCompliant()
-
-
-
Constructor Detail
-
DelegatingDriver
public DelegatingDriver(Driver driver)
-
-
Method Detail
-
connect
public Connection connect(String url, Properties info) throws SQLException
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
acceptsURL
public boolean acceptsURL(String url) throws SQLException
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfaceDriver
-
getParentLogger
public Logger getParentLogger()
This method is added to make this driver compile on Java7- Specified by:
getParentLoggerin interfaceDriver- Returns:
- always null until we finally switch over to Java7 with the codebase (TODO)
-
-