org.logicalcobwebs.proxool
public class ProxoolDriver extends java.lang.Object implements java.sql.Driver
Constructor and Description |
---|
ProxoolDriver() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsURL(java.lang.String url) |
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info)
The url should be of the form:
|
int |
getMajorVersion() |
int |
getMinorVersion() |
java.util.logging.Logger |
getParentLogger() |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info) |
boolean |
jdbcCompliant() |
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
proxool:delegate-class:delegate-urlor,
proxool.name:delegate-class:delegate-urlwhere
delegate-classis the actual Driver that will be used and
delegate-urlis the url that will be based to that Driver By defining
nameyou 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.
connect
in interface java.sql.Driver
java.sql.SQLException
public boolean acceptsURL(java.lang.String url) throws java.sql.SQLException
acceptsURL
in interface java.sql.Driver
java.sql.SQLException
Driver.acceptsURL(java.lang.String)
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
getPropertyInfo
in interface java.sql.Driver
java.sql.SQLException
Driver.getPropertyInfo(java.lang.String, java.util.Properties)
public int getMajorVersion()
getMajorVersion
in interface java.sql.Driver
Driver.getMajorVersion()
public int getMinorVersion()
getMinorVersion
in interface java.sql.Driver
Driver.getMinorVersion()
public boolean jdbcCompliant()
jdbcCompliant
in interface java.sql.Driver
Driver.jdbcCompliant()
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
java.sql.SQLFeatureNotSupportedException