Class Driver

  • All Implemented Interfaces:
    java.sql.Driver

    public final class Driver
    extends java.lang.Object
    implements java.sql.Driver
    • Constructor Summary

      Constructors 
      Constructor Description
      Driver()  
    • Constructor Detail

      • Driver

        public Driver()
    • Method Detail

      • connect

        public static Connection connect​(Configuration configuration)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • connect

        public Connection connect​(java.lang.String url,
                                  java.util.Properties props)
                           throws java.sql.SQLException
        Connect to the given connection string.
        Specified by:
        connect in interface java.sql.Driver
        Parameters:
        url - the url to connect to
        Returns:
        a connection
        Throws:
        java.sql.SQLException - if it is not possible to connect
      • acceptsURL

        public boolean acceptsURL​(java.lang.String url)
        returns true if the driver can accept the url.
        Specified by:
        acceptsURL in interface java.sql.Driver
        Parameters:
        url - the url to test
        Returns:
        true if the url is valid for this driver
      • getPropertyInfo

        public java.sql.DriverPropertyInfo[] getPropertyInfo​(java.lang.String url,
                                                             java.util.Properties info)
                                                      throws java.sql.SQLException
        Get the property info.
        Specified by:
        getPropertyInfo in interface java.sql.Driver
        Parameters:
        url - the url to get properties for
        info - the info props
        Returns:
        all possible connector options
        Throws:
        java.sql.SQLException - if there is a problem getting the property info
      • getMajorVersion

        public int getMajorVersion()
        gets the major version of the driver.
        Specified by:
        getMajorVersion in interface java.sql.Driver
        Returns:
        the major versions
      • getMinorVersion

        public int getMinorVersion()
        gets the minor version of the driver.
        Specified by:
        getMinorVersion in interface java.sql.Driver
        Returns:
        the minor version
      • jdbcCompliant

        public boolean jdbcCompliant()
        checks if the driver is jdbc compliant.
        Specified by:
        jdbcCompliant in interface java.sql.Driver
        Returns:
        true since the driver is not compliant
      • getParentLogger

        public java.util.logging.Logger getParentLogger()
                                                 throws java.sql.SQLFeatureNotSupportedException
        Specified by:
        getParentLogger in interface java.sql.Driver
        Throws:
        java.sql.SQLFeatureNotSupportedException