safejdbc
Class DataSourceAdapter

java.lang.Object
safejdbc.DataSourceAdapter
- All Implemented Interfaces:
- ConnectionProvider
- Direct Known Subclasses:
- TxDataSourceAdapter
- public class DataSourceAdapter
- extends java.lang.Object
- implements ConnectionProvider
This class is a Adapter for DataSources to provide the
ConnectionProvider interface. It is especially usefull in an
J2EE Enviornment.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_datasource
private javax.sql.DataSource _datasource
DataSourceAdapter
public DataSourceAdapter(javax.sql.DataSource datasource)
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Description copied from interface:
ConnectionProvider
- This method is called to actually give the connection
- Specified by:
getConnection in interface ConnectionProvider