Package io.github.jdbcx.driver
Class AbstractDriver
java.lang.Object
io.github.jdbcx.driver.AbstractDriver
- All Implemented Interfaces:
Driver,DriverAction
- Direct Known Subclasses:
WrappedDriver
This class is essentially a wrapper of the
Driver interface. It
accepts a connection string that starts with jdbcx:, followed by an
optional name of a DriverExtension, which defines the default
behaviors of the driver. For example, in the JDBC driver, we used to use
jdbc:mysql://localhost/test to connect to MySQL. However, now it has
changed to jdbcx:mysql://localhost/test or
jdbcx:prql:mysql://localhost/test, if you prefer to use PRQL.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsURL(String url) connect(String url, Properties info) voidprotected Driverprotected io.github.jdbcx.driver.DriverInfogetDriverInfo(String url, Properties props) getPropertyInfo(String url, Properties info) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.Driver
getMajorVersion, getMinorVersion, getParentLogger, jdbcCompliant
-
Constructor Details
-
AbstractDriver
public AbstractDriver()
-
-
Method Details
-
getDriverInfo
-
getActualDriver
-
acceptsURL
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
connect
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
getPropertyInfo
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException
-
deregister
public void deregister()- Specified by:
deregisterin interfaceDriverAction
-