net.java.ao.db
Class ProxoolPoolProvider

java.lang.Object
  extended by net.java.ao.DatabaseProvider
      extended by net.java.ao.PoolProvider
          extended by net.java.ao.db.ProxoolPoolProvider

public class ProxoolPoolProvider
extends PoolProvider

Author:
Daniel Spiewak

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 net.java.ao.DatabaseProvider
considerPrecision, convertTypeToString, executeInsertReturningKeys, getConnection, getDateFormat, getFunctionNameForField, getInstance, getInstance, getPassword, getTriggerNameForField, getURI, getUsername, isNumericType, renderAlterTableAddColumn, renderAlterTableAddKey, renderAlterTableChangeColumn, renderAlterTableDropColumn, renderAlterTableDropKey, renderAppend, renderCalendar, renderConstraintsForTable, renderDropFunctions, renderDropTable, renderDropTriggers, renderField, renderFieldType, renderForeignKey, renderFunction, renderFunctionForField, renderFunctions, renderOnUpdate, renderQueryGroupBy, renderQueryJoins, renderQueryLimit, renderQueryOrderBy, renderQuerySelect, renderQueryWhere, renderTable, renderTriggerForField, renderTriggers, renderUnique, renderValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxoolPoolProvider

public ProxoolPoolProvider(DatabaseProvider delegate)
Method Detail

getDriverClass

public java.lang.Class<? extends java.sql.Driver> getDriverClass()
                                                          throws java.lang.ClassNotFoundException
Description copied from class: DatabaseProvider

Returns 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).

Overrides:
getDriverClass in class PoolProvider
Throws:
java.lang.ClassNotFoundException

getConnectionImpl

protected java.sql.Connection getConnectionImpl()
                                         throws java.sql.SQLException
Overrides:
getConnectionImpl in class DatabaseProvider
Throws:
java.sql.SQLException

isAvailable

public static boolean isAvailable()