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 TypeMethodDescriptionbooleanacceptsURL(String url) connect(String url, Properties info) static SQLiteConnectioncreateConnection(String url, Properties prop) Creates a new database connection to a given URL.intintgetPropertyInfo(String url, Properties info) static booleanisValidURL(String url) Validates a URLboolean
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
JDBC
public JDBC()
-
-
Method Details
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfaceDriver- See Also:
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfaceDriver- See Also:
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliantin interfaceDriver- See Also:
-
getParentLogger
- Specified by:
getParentLoggerin interfaceDriver- Throws:
SQLFeatureNotSupportedException
-
acceptsURL
- Specified by:
acceptsURLin interfaceDriver- See Also:
-
isValidURL
Validates a URL- Parameters:
url-- Returns:
- true if the URL is valid, false otherwise
-
getPropertyInfo
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException- See Also:
-
connect
- Specified by:
connectin 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:
-