net.sf.saffron.jdbc
Class SaffronJdbcDriver

java.lang.Object
  |
  +--net.sf.saffron.jdbc.SaffronJdbcDriver
All Implemented Interfaces:
Driver

public class SaffronJdbcDriver
extends Object
implements Driver

A SaffronJdbcDriver is a JDBC Driver for a Saffron database.

Since:
Mar 19, 2003
Version:
$Id: //open/saffron/src/net/sf/saffron/jdbc/SaffronJdbcDriver.java#2 $
Author:
jhyde

Field Summary
private static DriverPropertyInfo[] propertyInfo
           
 
Constructor Summary
SaffronJdbcDriver()
           
 
Method Summary
 boolean acceptsURL(String url)
           
 Connection connect(String url, Properties info)
           
protected  String getConnectionClassName()
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 DriverPropertyInfo[] getPropertyInfo(String url, Properties info)
           
protected  String getUrlPrefix()
           
(package private) static String getUrlPrefixStatic()
           
 boolean jdbcCompliant()
           
protected  void register()
          Implicitly registers this driver when class is loaded (for example, if someone executes 'Class.forName("saffron.jdbc.SaffronJdbcDriver")')
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyInfo

private static final DriverPropertyInfo[] propertyInfo
Constructor Detail

SaffronJdbcDriver

public SaffronJdbcDriver()
Method Detail

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface Driver

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface Driver

getPropertyInfo

public DriverPropertyInfo[] getPropertyInfo(String url,
                                            Properties info)
                                     throws SQLException
Specified by:
getPropertyInfo in interface Driver
SQLException

acceptsURL

public boolean acceptsURL(String url)
                   throws SQLException
Specified by:
acceptsURL in interface Driver
SQLException

connect

public Connection connect(String url,
                          Properties info)
                   throws SQLException
Specified by:
connect in interface Driver
SQLException

jdbcCompliant

public boolean jdbcCompliant()
Specified by:
jdbcCompliant in interface Driver

getConnectionClassName

protected String getConnectionClassName()

getUrlPrefix

protected String getUrlPrefix()

register

protected void register()
Implicitly registers this driver when class is loaded (for example, if someone executes 'Class.forName("saffron.jdbc.SaffronJdbcDriver")')


getUrlPrefixStatic

static String getUrlPrefixStatic()

SourceForge.net_Logo