org.apithefire.sql.connect
Class DataSourceWrapper

java.lang.Object
  extended by org.apithefire.sql.connect.DataSourceWrapper
All Implemented Interfaces:
ConnectionProvider, Closeable

public abstract class DataSourceWrapper
extends java.lang.Object
implements ConnectionProvider

A ConnectionProvider wrapper to provide DataSource interface.

Author:
Chew Boon Aik

Constructor Summary
DataSourceWrapper(javax.sql.DataSource dataSource)
           
 
Method Summary
 java.sql.Connection getConnection()
          Gets a connection from this connection provider.
protected  javax.sql.DataSource getWrappedDataSource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apithefire.util.lang.Closeable
close
 

Constructor Detail

DataSourceWrapper

public DataSourceWrapper(javax.sql.DataSource dataSource)
Method Detail

getWrappedDataSource

protected javax.sql.DataSource getWrappedDataSource()

getConnection

public java.sql.Connection getConnection()
Description copied from interface: ConnectionProvider
Gets a connection from this connection provider.

Specified by:
getConnection in interface ConnectionProvider


Copyright © 2008. All Rights Reserved.