Package io.deephaven.jdbc
Class Driver
java.lang.Object
io.deephaven.jdbc.Driver
- All Implemented Interfaces:
Driver
public class Driver extends Object implements Driver
-
Constructor Summary
Constructors Constructor Description Driver()
-
Method Summary
Modifier and Type Method Description boolean
acceptsURL(String url)
Connection
connect(String url, Properties info)
static void
deregister()
Deregister the Deephaven JDBC driver.int
getMajorVersion()
int
getMinorVersion()
Logger
getParentLogger()
DriverPropertyInfo[]
getPropertyInfo(String url, Properties info)
static boolean
isRegistered()
boolean
jdbcCompliant()
JDBC compliance requires full support for the JDBC API and full support for SQL 92 Entry Level.
-
Constructor Details
-
Driver
public Driver()
-
-
Method Details
-
connect
- Specified by:
connect
in interfaceDriver
- Throws:
SQLException
-
acceptsURL
- Specified by:
acceptsURL
in interfaceDriver
- Throws:
SQLException
-
getPropertyInfo
- 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()JDBC compliance requires full support for the JDBC API and full support for SQL 92 Entry Level. Deephaven is not yet compliant with SQL so we must return false.- Specified by:
jdbcCompliant
in interfaceDriver
- Returns:
- false since Deephaven is not JDBC compliant
-
getParentLogger
- Specified by:
getParentLogger
in interfaceDriver
- Throws:
SQLFeatureNotSupportedException
-
deregister
Deregister the Deephaven JDBC driver. Public for testing.- Throws:
SQLException
- if deregistration fails
-
isRegistered
public static boolean isRegistered()
-