Package org.logicalcobwebs.proxool
Class ProxoolDriver
- java.lang.Object
-
- org.logicalcobwebs.proxool.ProxoolDriver
-
- All Implemented Interfaces:
java.sql.Driver
public class ProxoolDriver extends java.lang.Object implements java.sql.DriverThis is the Proxool implementation of the java.sql.Driver interface.- Version:
- $Revision: 1.28 $, $Date: 2006/01/18 14:40:01 $
- Author:
- billhorsman, $Author: billhorsman $ (current maintainer)
-
-
Constructor Summary
Constructors Constructor Description ProxoolDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsURL(java.lang.String url)java.sql.Connectionconnect(java.lang.String url, java.util.Properties info)The url should be of the form:intgetMajorVersion()intgetMinorVersion()java.util.logging.LoggergetParentLogger()java.sql.DriverPropertyInfo[]getPropertyInfo(java.lang.String url, java.util.Properties info)booleanjdbcCompliant()
-
-
-
Method Detail
-
connect
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLExceptionThe url should be of the form:proxool:delegate-class:delegate-url
or,proxool.name:delegate-class:delegate-url
wheredelegate-class
is the actual Driver that will be used anddelegate-url
is the url that will be based to that Driver By definingname
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.- Specified by:
connectin interfacejava.sql.Driver- Throws:
java.sql.SQLException
-
acceptsURL
public boolean acceptsURL(java.lang.String url) throws java.sql.SQLException- Specified by:
acceptsURLin interfacejava.sql.Driver- Throws:
java.sql.SQLException- See Also:
Driver.acceptsURL(java.lang.String)
-
getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLException- Specified by:
getPropertyInfoin interfacejava.sql.Driver- Throws:
java.sql.SQLException- See Also:
Driver.getPropertyInfo(java.lang.String, java.util.Properties)
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfacejava.sql.Driver- See Also:
Driver.getMajorVersion()
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfacejava.sql.Driver- See Also:
Driver.getMinorVersion()
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfacejava.sql.Driver- See Also:
Driver.jdbcCompliant()
-
getParentLogger
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException- Specified by:
getParentLoggerin interfacejava.sql.Driver- Throws:
java.sql.SQLFeatureNotSupportedException
-
-