Package totalcross.db.sqlite
Class JDBC
- java.lang.Object
-
- totalcross.db.sqlite.JDBC
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPREFIX
-
Constructor Summary
Constructors Constructor Description JDBC()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsURL(java.lang.String url)Connectionconnect(java.lang.String url, Hashtable info)static ConnectioncreateConnection(java.lang.String url, Hashtable prop)Creates a new database connection to a given URL.intgetMajorVersion()intgetMinorVersion()DriverPropertyInfo[]getPropertyInfo(java.lang.String url, Hashtable info)static booleanisValidURL(java.lang.String url)Validates a URLbooleanjdbcCompliant()
-
-
-
Field Detail
-
PREFIX
public static final java.lang.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()
- See Also:
Driver.jdbcCompliant()
-
acceptsURL
public boolean acceptsURL(java.lang.String url)
- Specified by:
acceptsURLin interfaceDriver- 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 DriverPropertyInfo[] getPropertyInfo(java.lang.String url, Hashtable info) throws java.sql.SQLException
- Throws:
java.sql.SQLException- See Also:
Driver.getPropertyInfo(java.lang.String, java.util.Properties)
-
connect
public Connection connect(java.lang.String url, Hashtable info) throws java.sql.SQLException
-
createConnection
public static Connection createConnection(java.lang.String url, Hashtable prop) throws java.sql.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:
java.sql.SQLException- See Also:
Driver.connect(java.lang.String, java.util.Properties)
-
-