| java.lang.Object com.quadcap.jdbc.JdbcDriver
JdbcDriver | public class JdbcDriver implements QDriver(Code) | | This class implements the java.sql.Driver interface,
which provides a basic mechanism for establishing connections to
a QED database. A driver can support multiple simultaneously open
databases -- the database URL specifies a file name which is the
root directory of the database, and which is used to select the
correct database.
author: Stan Bailes |
JdbcDriver | public JdbcDriver()(Code) | | No-argument constructor
|
acceptsURL | public boolean acceptsURL(String url)(Code) | | Return true if this is a QED JDBC URL. QED URLS are of the
form jdbc:qed:database .
Parameters: url - a URL true if url is a QED JDBC URL. |
closeAll | public static void closeAll()(Code) | | Close all databases (presumably at program exit)
|
closeDatabase | public void closeDatabase(String name)(Code) | | Close the specified database.
Parameters: name - the name of the database. |
connect | public java.sql.Connection connect(String url, Properties props) throws SQLException(Code) | | Assuming that url is a QED URL, return a new
Connection object that can be used to access the
database specified by that url.
Parameters: url - a JDBC URL. If the URL string contains a semicolon,then the URL proper is interpreted as the portion of thestring preceeding the semicolon, and the remaining stringis treated as a semi-colon separated list of 'name=value'connection properties. E.g., jdbc:qed:db1;create=true Parameters: props - a set of connection properties. a new Connection exception: SQLException - may be thrown |
getDatabase | public Database getDatabase(String name)(Code) | | Locate a specific database by name
Parameters: name - the name of the database the database. |
getDatabaseNames | public Enumeration getDatabaseNames()(Code) | | Enumerate the currently open databases
an enumeration of the names of the currently open databases |
getMajorVersion | public int getMajorVersion()(Code) | | Return the driver major version number.
the driver's major version number |
getMinorVersion | public int getMinorVersion()(Code) | | Return the driver minor version number.
the driver's minor version number |
getPropertyInfo | public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException(Code) | | Return an array of DriverPropertyInfo objects
that describe the properties required to connect to a
QED database. Currently no properties are required except
user
Parameters: url - the database url Parameters: info - the properties the client has so far. the required connect properties |
jdbcCompliant | public boolean jdbcCompliant()(Code) | | QED is a JDBC compliant driver
true |
makeResultSet | public QedResultSet makeResultSet(Cursor c)(Code) | | Make a QedResultSet to wrap the internal database
cursor.
Parameters: c - the cursor the resultset |
|
|