User Tools

Site Tools


jdbc

This is an old revision of the document!


JDBC Specification

Your JDBC driver should at least implement the methods listed here:

class java.sql.Connection:

Statement createStatement();
void close();
// void commit();
// void setAutoCommit(boolean autoCommit);

class java.sql.Statement:

boolean  execute(String sql);
ResultSet  getResultSet();

class java.sql.ResultSet:

ResultSetMetaData  getMetaData();
void  beforeFirst();
Object getObject(int columnIndex);
boolean  next();

class java.sql.ResultSetMetaData:

int  getColumnCount();
int  getColumnType(int columnIndex);

java.sql.DriverManager.getConnection(String jdbcURL) will be used to create connections. The general form of the connection url is:

  jdbc:fatworm://absolute/path/to/your/db/[;property=value[;property=value]]

Your driver class should be org.acmclass.fatworm.driver.Driver, since the client will call

Class.forName("org.acmclass.fatworm.driver.Driver")

to initialize your driver.

jdbc.1332046502.txt.gz · Last modified: 2012/03/18 04:55 by xrchen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki