Package org.sqlite
Class JDBC
java.lang.Object
org.sqlite.JDBC
- All Implemented Interfaces:
Driver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptsURL
(String url) connect
(String url, Properties info) static SQLiteConnection
createConnection
(String url, Properties prop) Creates a new database connection to a given URL.int
int
getPropertyInfo
(String url, Properties info) static boolean
isValidURL
(String url) Validates a URLboolean
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
JDBC
public JDBC()
-
-
Method Details
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersion
in interfaceDriver
- See Also:
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfaceDriver
- See Also:
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliant
in interfaceDriver
- See Also:
-
getParentLogger
- Specified by:
getParentLogger
in interfaceDriver
- Throws:
SQLFeatureNotSupportedException
-
acceptsURL
- Specified by:
acceptsURL
in interfaceDriver
- See Also:
-
isValidURL
Validates a URL- Parameters:
url
-- Returns:
- true if the URL is valid, false otherwise
-
getPropertyInfo
- Specified by:
getPropertyInfo
in interfaceDriver
- Throws:
SQLException
- See Also:
-
connect
- Specified by:
connect
in interfaceDriver
- Throws:
SQLException
- See Also:
-
createConnection
Creates a new database connection to a given URL.- Parameters:
url
- the URLprop
- the properties- Returns:
- a Connection object that represents a connection to the URL
- Throws:
SQLException
- See Also:
-