|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jboss.minerva.datasource.PoolDriver
JDBC Driver to access pooled JDBC connections. Supports both JDBC 1.0 connections and JDBC 2.0 transactional XAConnections. You will get a java.sql.Connection back in any case (in the case of XAConnections, the transactional-ness is handled under the covers). You must create the pools ahead of time by creating and initializing the appropriate DataSource.
You should use a URL of the form jdbc:minerva:PoolName to get a connection from the pool. This will check for both a JDBC Pool and XA Pool if necessary, so don't create one pool of each type with the same name!
This driver will be loaded automatically whenever a JDBC Pool or XA
Pool is created, but you can also use the standard Class.forName
call to load it.
JDBCPoolDataSource
,
XAPoolDataSource
Method Summary | |
boolean |
acceptsURL(java.lang.String url)
Tells which URLs this driver can handle. |
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties props)
Retrieves a connection from a connection pool. |
int |
getMajorVersion()
Returns the driver version. |
int |
getMinorVersion()
Returns the driver version. |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info)
Returns no properties. |
static PoolDriver |
instance()
Gets the singleton driver instance. |
boolean |
jdbcCompliant()
Returns false since it is not known which underlying driver will be used and what its capabilities are. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static PoolDriver instance()
public boolean acceptsURL(java.lang.String url) throws java.sql.SQLException
acceptsURL
in interface java.sql.Driver
public java.sql.Connection connect(java.lang.String url, java.util.Properties props) throws java.sql.SQLException
connect
in interface java.sql.Driver
public int getMajorVersion()
getMajorVersion
in interface java.sql.Driver
public int getMinorVersion()
getMinorVersion
in interface java.sql.Driver
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
getPropertyInfo
in interface java.sql.Driver
public boolean jdbcCompliant()
jdbcCompliant
in interface java.sql.Driver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |