Class JDBC

  • All Implemented Interfaces:
    Driver

    public class JDBC
    extends java.lang.Object
    implements Driver
    • Constructor Detail

      • JDBC

        public JDBC()
    • Method Detail

      • getMajorVersion

        public int getMajorVersion()
        Specified by:
        getMajorVersion in interface Driver
        See Also:
        Driver.getMajorVersion()
      • getMinorVersion

        public int getMinorVersion()
        Specified by:
        getMinorVersion in interface Driver
        See Also:
        Driver.getMinorVersion()
      • jdbcCompliant

        public boolean jdbcCompliant()
        See Also:
        Driver.jdbcCompliant()
      • acceptsURL

        public boolean acceptsURL​(java.lang.String url)
        Specified by:
        acceptsURL in interface Driver
        See Also:
        Driver.acceptsURL(java.lang.String)
      • isValidURL

        public static boolean isValidURL​(java.lang.String url)
        Validates a URL
        Parameters:
        url -
        Returns:
        true if the URL is valid, false otherwise
      • getPropertyInfo

        public DriverPropertyInfo[] getPropertyInfo​(java.lang.String url,
                                                    Hashtable info)
                                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
        See Also:
        Driver.getPropertyInfo(java.lang.String, java.util.Properties)
      • connect

        public Connection connect​(java.lang.String url,
                                  Hashtable info)
                           throws java.sql.SQLException
        Specified by:
        connect in interface Driver
        Throws:
        java.sql.SQLException
        See Also:
        Driver.connect(java.lang.String, java.util.Properties)
      • createConnection

        public static Connection createConnection​(java.lang.String url,
                                                  Hashtable prop)
                                           throws java.sql.SQLException
        Creates a new database connection to a given URL.
        Parameters:
        url - the URL
        prop - the properties
        Returns:
        a Connection object that represents a connection to the URL
        Throws:
        java.sql.SQLException
        See Also:
        Driver.connect(java.lang.String, java.util.Properties)