Class DelegatingDriver
java.lang.Object
com.vividsolutions.jump.datastore.jdbc.DelegatingDriver
- All Implemented Interfaces:
Driver
a jdbc driver wrapper to allow loading the driver with custon classloader
from an arbitrary location during runtime.
DatabaseManager.registerDriver() only registers drivers loaded with the
system classloader so we trick it into accepting our driver by wrapping it
into this one.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsURL(String url) connect(String url, Properties info) get wrappeeintintgetPropertyInfo(String url, Properties info) booleantoString()
-
Constructor Details
-
DelegatingDriver
-
-
Method Details
-
connect
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
acceptsURL
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
getPropertyInfo
- 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
- Specified by:
getParentLoggerin interfaceDriver- Throws:
SQLFeatureNotSupportedException
-
getDriver
-
toString
-