Package org.sqlite
Class JDBC
- java.lang.Object
-
- org.sqlite.JDBC
-
-
Constructor Summary
Constructors Constructor Description JDBC()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsURL(String url)Connectionconnect(String url, Properties info)static SQLiteConnectioncreateConnection(String url, Properties prop)Creates a new database connection to a given URL.intgetMajorVersion()intgetMinorVersion()LoggergetParentLogger()DriverPropertyInfo[]getPropertyInfo(String url, Properties info)static booleanisValidURL(String url)Validates a URLbooleanjdbcCompliant()
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfaceDriver- See Also:
Driver.getMajorVersion()
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfaceDriver- See Also:
Driver.getMinorVersion()
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfaceDriver- See Also:
Driver.jdbcCompliant()
-
getParentLogger
public Logger getParentLogger() throws SQLFeatureNotSupportedException
- Specified by:
getParentLoggerin interfaceDriver- Throws:
SQLFeatureNotSupportedException
-
acceptsURL
public boolean acceptsURL(String url)
- Specified by:
acceptsURLin interfaceDriver- See Also:
Driver.acceptsURL(java.lang.String)
-
isValidURL
public static boolean isValidURL(String url)
Validates a URL- Parameters:
url-- Returns:
- true if the URL is valid, false otherwise
-
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException- See Also:
Driver.getPropertyInfo(java.lang.String, java.util.Properties)
-
connect
public Connection connect(String url, Properties info) throws SQLException
- Specified by:
connectin interfaceDriver- Throws:
SQLException- See Also:
Driver.connect(java.lang.String, java.util.Properties)
-
createConnection
public static SQLiteConnection createConnection(String url, Properties prop) throws SQLException
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:
Driver.connect(java.lang.String, java.util.Properties)
-
-