com.holub.database.jdbc
Class JDBCDriver
java.lang.Object
com.holub.database.jdbc.JDBCDriver
- All Implemented Interfaces:
- Driver
public class JDBCDriver
- extends Object
- implements Driver
A JDBC driver for a small in-memory database that wraps
the Database
class. See that
class for a discussion of the supported SQL.
- See Also:
Database
©2004 Allen I. Holub. All rights reserved.
This code may be used freely by yourself with the following restrictions:
- Your splash screen, about box, or equivalent, must include
Allen Holub's name, copyright, and URL. For example:
This program contains Allen Holub's SQL package.
(c) 2005 Allen I. Holub. All Rights Reserved.
http://www.holub.com
If your program does not run interactively, then the foregoing
notice must appear in your documentation.
- You may not redistribute (or mirror) the source code.
- You must report any bugs that you find to me. Use the form at
http://www.holub.com/company/contact.html
or send email.
- The software is supplied as is. Neither Allen Holub nor
Holub Associates are responsible for any bugs (or any problems
caused by bugs, including lost productivity or data)
in any of this code.
|
JDBCDriver
public JDBCDriver()
acceptsURL
public boolean acceptsURL(String url)
throws SQLException
- Specified by:
acceptsURL
in interface Driver
- Throws:
SQLException
connect
public Connection connect(String uri,
Properties info)
throws SQLException
- Specified by:
connect
in interface Driver
- Throws:
SQLException
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interface Driver
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interface Driver
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliant
in interface Driver
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url,
Properties info)
throws SQLException
- Specified by:
getPropertyInfo
in interface Driver
- Throws:
SQLException