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.


Constructor Summary
DataSourceAdapter(javax.sql.DataSource datasource)
           
 
Method Summary
 java.sql.Connection getConnection()
          This method is called to actually give the connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceAdapter

public DataSourceAdapter(javax.sql.DataSource datasource)
Method Detail

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


Copyright (c) 2001, 2002 by Jan Hermanns and Arno Haase. All Rights Reserved.