Package herddb.jdbc
Class Driver
- java.lang.Object
-
- herddb.jdbc.Driver
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.sql.Driver
public class Driver extends java.lang.Object implements java.sql.Driver, java.lang.AutoCloseableJDBC Driver- Author:
- enrico.olivelli
-
-
Constructor Summary
Constructors Constructor Description Driver()
-
Method Summary
Modifier and Type Method Description booleanacceptsURL(java.lang.String url)voidclose()voidcloseDatasources(java.lang.String url)Closes drive embedded datasources by their connection urljava.sql.Connectionconnect(java.lang.String url, java.util.Properties info)intgetMajorVersion()intgetMinorVersion()java.util.logging.LoggergetParentLogger()java.sql.DriverPropertyInfo[]getPropertyInfo(java.lang.String url, java.util.Properties info)booleanjdbcCompliant()
-
-
-
Method Detail
-
connect
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException- Specified by:
connectin interfacejava.sql.Driver- Throws:
java.sql.SQLException
-
acceptsURL
public boolean acceptsURL(java.lang.String url) throws java.sql.SQLException- Specified by:
acceptsURLin interfacejava.sql.Driver- Throws:
java.sql.SQLException
-
getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLException- Specified by:
getPropertyInfoin interfacejava.sql.Driver- Throws:
java.sql.SQLException
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfacejava.sql.Driver
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfacejava.sql.Driver
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfacejava.sql.Driver
-
getParentLogger
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException- Specified by:
getParentLoggerin interfacejava.sql.Driver- Throws:
java.sql.SQLFeatureNotSupportedException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
closeDatasources
public void closeDatasources(java.lang.String url)
Closes drive embedded datasources by their connection url
-
-