org.sqlite
Class Driver

java.lang.Object
  extended by org.sqlite.Driver
All Implemented Interfaces:
java.sql.Driver

public class Driver
extends java.lang.Object
implements java.sql.Driver

SQLite JDBC Driver class


Constructor Summary
Driver()
           
 
Method Summary
 boolean acceptsURL(java.lang.String url)
          Retrieves whether the driver thinks that it can open a connection to the given URL.
 JdbcConnection connect(java.lang.String url, java.util.Properties info)
          Attempts to make a database connection to the given URL.
static int getDriverMajorVersion()
          Returns the major version number of SQLite JDBC Driver.
static int getDriverMinorVersion()
          Returns the minor version number of SQLite JDBC Driver.
static java.lang.String getDriverName()
          It always returns "SQLite JDBC Driver".
static int getDriverReleaseVersion()
          Returns the release version number of SQLite JDBC Driver.
static java.lang.String getDriverVersion()
          Returns the version of SQLite JDBC Driver.
 int getMajorVersion()
          invoke getDriverMajorVersion() method.
 int getMinorVersion()
          invoke getDriverMinorVersion() method.
 java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info)
          Gets information about the possible properties for this driver.
NOTE: Not implemented yet.
 boolean jdbcCompliant()
          It always returns false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Driver

public Driver()
Method Detail

getDriverName

public static java.lang.String getDriverName()
It always returns "SQLite JDBC Driver".

Returns:
"SQLite JDBC Driver"

getDriverVersion

public static java.lang.String getDriverVersion()
Returns the version of SQLite JDBC Driver.

Returns:
getDriverMajorVersion() + "." + getDriverMinorVersion() + "." + getDriverReleaseVersion()
See Also:
getDriverMajorVersion(), getDriverMinorVersion(), getDriverReleaseVersion()

getDriverMajorVersion

public static int getDriverMajorVersion()
Returns the major version number of SQLite JDBC Driver.

Returns:
the major version number

getDriverMinorVersion

public static int getDriverMinorVersion()
Returns the minor version number of SQLite JDBC Driver.

Returns:
the minor version number

getDriverReleaseVersion

public static int getDriverReleaseVersion()
Returns the release version number of SQLite JDBC Driver.

Returns:
the release version number

acceptsURL

public boolean acceptsURL(java.lang.String url)
Retrieves whether the driver thinks that it can open a connection to the given URL.

Specified by:
acceptsURL in interface java.sql.Driver
Parameters:
url - the URL of the database
Returns:
true if this driver understands the given URL; false otherwise
See Also:
Scheme.JDBC_SQLITE_FILE, Scheme.JDBC_SQLITE_MEMORY, Scheme.JDBC_SQLITE

connect

public JdbcConnection connect(java.lang.String url,
                              java.util.Properties info)
                       throws java.sql.SQLException
Attempts to make a database connection to the given URL.

Specified by:
connect in interface java.sql.Driver
Parameters:
url - the URL of the database to which to connect
info - a list of arbitrary string tag/value pairs as connection arguments.
Returns:
a Connection object that represents a connection to the URL
Throws:
java.sql.SQLException - if a database access error occurs

getMajorVersion

public int getMajorVersion()
invoke getDriverMajorVersion() method.

Specified by:
getMajorVersion in interface java.sql.Driver
Returns:
the major version number
See Also:
getDriverMajorVersion()

getMinorVersion

public int getMinorVersion()
invoke getDriverMinorVersion() method.

Specified by:
getMinorVersion in interface java.sql.Driver
Returns:
the minor version number
See Also:
getDriverMinorVersion()

getPropertyInfo

public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
                                                     java.util.Properties info)
Gets information about the possible properties for this driver.
NOTE: Not implemented yet.

Specified by:
getPropertyInfo in interface java.sql.Driver
Parameters:
url - the URL of the database to which to connect
info - a proposed list of tag/value pairs that will be sent on connect open
Returns:
an array of DriverPropertyInfo objects describing possible properties.

jdbcCompliant

public boolean jdbcCompliant()
It always returns false.

Specified by:
jdbcCompliant in interface java.sql.Driver
Returns:
false