org.cloudgraph.rdb.connect
Class JNDIDataSourceProvider
java.lang.Object
org.cloudgraph.rdb.connect.JNDIDataSourceProvider
- All Implemented Interfaces:
- ConnectionProvider, DataSourceProvder
public class JNDIDataSourceProvider
- extends Object
- implements DataSourceProvder
Supplies connections using a JNDI registered datasource.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
datasource
protected DataSource datasource
JNDIDataSourceProvider
public JNDIDataSourceProvider()
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.