|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.java.ao.DatabaseProvider
net.java.ao.PoolProvider
net.java.ao.db.ProxoolPoolProvider
public class ProxoolPoolProvider
| Constructor Summary | |
|---|---|
ProxoolPoolProvider(DatabaseProvider delegate)
|
|
| Method Summary | |
|---|---|
protected java.sql.Connection |
getConnectionImpl()
|
java.lang.Class<? extends java.sql.Driver> |
getDriverClass()
Returns the JDBC Driver class which corresponds to the database being abstracted. |
static boolean |
isAvailable()
|
| Methods inherited from class net.java.ao.PoolProvider |
|---|
dispose, getDelegate, getTables, insertReturningKeys, parseValue, renderAction, renderAutoIncrement, renderQuery, setPostConnectionProperties, setQueryResultSetProperties, setQueryStatementProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxoolPoolProvider(DatabaseProvider delegate)
| Method Detail |
|---|
public java.lang.Class<? extends java.sql.Driver> getDriverClass()
throws java.lang.ClassNotFoundException
DatabaseProviderReturns the JDBC Driver class which corresponds to the database being abstracted. This should be implemented in such a way as to initialize and register the driver with JDBC. For most drivers, this requires code in the following form:
public Class<? extends Driver> getDriverClass() {
return (Class<? extends Driver>) Class.forName("com.mysql.jdbc.Driver");
}
The following does not fire the driver's static initializer and thus will (usually) not work:
public Class<? extends Driver> getDriverClass() {
return com.mysql.jdbc.Driver.class;
}
If the driver is not on the classpath, a ClassNotFoundException
can and should be thrown (certain auto-magic configuration sections of
ActiveObjects depend upon this under certain circumstances).
getDriverClass in class PoolProviderjava.lang.ClassNotFoundException
protected java.sql.Connection getConnectionImpl()
throws java.sql.SQLException
getConnectionImpl in class DatabaseProviderjava.sql.SQLExceptionpublic static boolean isAvailable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||