SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.jdbc
Class NonPoolingConnectionPool

java.lang.Object
  |
  +--com.solarmetric.rd.jdbc.NonPoolingConnectionPool
All Implemented Interfaces:
ConnectionPool

public class NonPoolingConnectionPool
extends java.lang.Object
implements ConnectionPool

Implements the ConnectionPool interface but doesn't actually perform any pooling.


Constructor Summary
NonPoolingConnectionPool()
           
 
Method Summary
 void close()
          Free the resources used by this pool.
 java.sql.Connection getConnection(com.solarmetric.rd.jdbc.ConnectionRequestInfo cri)
          Return a connection matching the given request info.
 com.solarmetric.rd.jdbc.DataSourceImpl getDataSource()
          Return the data source set with setDataSource(com.solarmetric.rd.jdbc.DataSourceImpl).
 void returnConnection(java.sql.Connection conn)
          Connections can use this method to return themselves on close.
 void setDataSource(com.solarmetric.rd.jdbc.DataSourceImpl ds)
          This method will be called before the pool is used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonPoolingConnectionPool

public NonPoolingConnectionPool()
Method Detail

setDataSource

public void setDataSource(com.solarmetric.rd.jdbc.DataSourceImpl ds)
Description copied from interface: ConnectionPool
This method will be called before the pool is used.

Specified by:
setDataSource in interface ConnectionPool

getDataSource

public com.solarmetric.rd.jdbc.DataSourceImpl getDataSource()
Description copied from interface: ConnectionPool
Return the data source set with ConnectionPool.setDataSource(com.solarmetric.rd.jdbc.DataSourceImpl).

Specified by:
getDataSource in interface ConnectionPool

getConnection

public java.sql.Connection getConnection(com.solarmetric.rd.jdbc.ConnectionRequestInfo cri)
                                  throws java.sql.SQLException
Description copied from interface: ConnectionPool
Return a connection matching the given request info.

Specified by:
getConnection in interface ConnectionPool
java.sql.SQLException

returnConnection

public void returnConnection(java.sql.Connection conn)
Description copied from interface: ConnectionPool
Connections can use this method to return themselves on close.

Specified by:
returnConnection in interface ConnectionPool

close

public void close()
Description copied from interface: ConnectionPool
Free the resources used by this pool.

Specified by:
close in interface ConnectionPool

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.