Package org.sqlite

Class JDBC

  • All Implemented Interfaces:
    java.sql.Driver

    public class JDBC
    extends java.lang.Object
    implements java.sql.Driver
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PREFIX  
    • Constructor Summary

      Constructors 
      Constructor Description
      JDBC()  
    • Method Summary

      Modifier and Type Method Description
      boolean acceptsURL​(java.lang.String url)  
      java.sql.Connection connect​(java.lang.String url, java.util.Properties info)  
      static SQLiteConnection createConnection​(java.lang.String url, java.util.Properties prop)
      Creates a new database connection to a given URL.
      int getMajorVersion()  
      int getMinorVersion()  
      java.util.logging.Logger getParentLogger()  
      java.sql.DriverPropertyInfo[] getPropertyInfo​(java.lang.String url, java.util.Properties info)  
      static boolean isValidURL​(java.lang.String url)
      Validates a URL
      boolean jdbcCompliant()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JDBC

        public JDBC()
    • Method Detail

      • getMajorVersion

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

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

        public boolean jdbcCompliant()
        Specified by:
        jdbcCompliant in interface java.sql.Driver
        See Also:
        Driver.jdbcCompliant()
      • getParentLogger

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

        public boolean acceptsURL​(java.lang.String url)
        Specified by:
        acceptsURL in interface java.sql.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 java.sql.DriverPropertyInfo[] getPropertyInfo​(java.lang.String url,
                                                             java.util.Properties info)
                                                      throws java.sql.SQLException
        Specified by:
        getPropertyInfo in interface java.sql.Driver
        Throws:
        java.sql.SQLException
        See Also:
        Driver.getPropertyInfo(java.lang.String, java.util.Properties)
      • connect

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

        public static SQLiteConnection createConnection​(java.lang.String url,
                                                        java.util.Properties 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)