org.cloudgraph.rdb.connect
Class JNDIDataSourceProvider

java.lang.Object
  extended by org.cloudgraph.rdb.connect.JNDIDataSourceProvider
All Implemented Interfaces:
ConnectionProvider, DataSourceProvder

public class JNDIDataSourceProvider
extends Object
implements DataSourceProvder

Supplies connections using a JNDI registered datasource.


Field Summary
protected  DataSource datasource
           
 
Constructor Summary
JNDIDataSourceProvider()
           
 
Method Summary
 Connection getConnection()
          Returns a connection from an underlying pool or data source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datasource

protected DataSource datasource
Constructor Detail

JNDIDataSourceProvider

public JNDIDataSourceProvider()
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Description copied from interface: ConnectionProvider
Returns a connection from an underlying pool or data source. Connections should always be closed after use.

Specified by:
getConnection in interface ConnectionProvider
Returns:
the connection
Throws:
SQLException


Copyright © 2014. All rights reserved.