| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConnectionAdapterIF
An interface that will provide connections. It differs from a real
 Driver because it has setup(java.lang.String, java.lang.String, java.util.Properties) and
 tearDown() methods.
| Method Summary | |
|---|---|
|  void | closeConnection(java.sql.Connection connection)This gives the adapter the flexibilty of closing the connection for real or just putting it back in a pool. | 
|  java.sql.Connection | getConnection()Simply get a connection (using the definitions defined in setup(java.lang.String, java.lang.String, java.util.Properties) | 
|  java.lang.String | getName()Convenient name so we can identify this adapter in logs. | 
|  void | setup(java.lang.String driver,
      java.lang.String url,
      java.util.Properties info)Setup the adapter. | 
|  void | tearDown()Reclaim resources used by the adapter (for instance, close any open connections) | 
| Method Detail | 
|---|
void setup(java.lang.String driver,
           java.lang.String url,
           java.util.Properties info)
           throws java.sql.SQLException,
                  ProxoolException
driver - the name of the classurl - the url to pass to the driverinfo - the properties to pass to the driver
java.sql.SQLException - if anything goes wrong
ProxoolException
java.sql.Connection getConnection()
                                  throws java.sql.SQLException
setup(java.lang.String, java.lang.String, java.util.Properties)
java.sql.SQLException - if anything goes wrong
void closeConnection(java.sql.Connection connection)
                     throws java.sql.SQLException
connection - the connection to "close"
java.sql.SQLException - if anything goes wrong
void tearDown()
              throws ProxoolException
ProxoolExceptionjava.lang.String getName()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||