org.logicalcobwebs.proxool

Class ProxoolDriver

Implemented Interfaces:
Driver

public class ProxoolDriver
extends java.lang.Object
implements Driver

This is the Proxool implementation of the java.sql.Driver interface.
Version:
$Revision: 1.28 $, $Date: 2006/01/18 14:40:01 $
Authors:
billhorsman
$Author: billhorsman $ (current maintainer)

Method Summary

boolean
acceptsURL(String url)
Connection
connect(String url, Properties info)
The url should be of the form:
   proxool:delegate-class:delegate-url
 
or,
   proxool.name:delegate-class:delegate-url
 
where
delegate-class
is the actual Driver that will be used and
delegate-url
is the url that will be based to that Driver By defining
name
you are able to define multiple connection pools even if the delegate url is the same.
int
getMajorVersion()
int
getMinorVersion()
DriverPropertyInfo[]
getPropertyInfo(String url, Properties info)
boolean
jdbcCompliant()

Method Details

acceptsURL

public boolean acceptsURL(String url)
            throws SQLException
See Also:
Driver.acceptsURL

connect

public Connection connect(String url,
                          Properties info)
            throws SQLException
The url should be of the form:
   proxool:delegate-class:delegate-url
 
or,
   proxool.name:delegate-class:delegate-url
 
where
delegate-class
is the actual Driver that will be used and
delegate-url
is the url that will be based to that Driver By defining
name
you are able to define multiple connection pools even if the delegate url is the same. The entire url (including the proxool.name) is used to uniquely identify this pool.

getMajorVersion

public int getMajorVersion()
See Also:
Driver.getMajorVersion

getMinorVersion

public int getMinorVersion()
See Also:
Driver.getMinorVersion

getPropertyInfo

public DriverPropertyInfo[] getPropertyInfo(String url,
                                            Properties info)
            throws SQLException
See Also:
Driver.getPropertyInfo

jdbcCompliant

public boolean jdbcCompliant()
See Also:
Driver.jdbcCompliant