org.javasimon.jdbcx
Class SimonConnectionPoolDataSource

java.lang.Object
  extended by org.javasimon.jdbcx.AbstractSimonDataSource
      extended by org.javasimon.jdbcx.SimonConnectionPoolDataSource
All Implemented Interfaces:
CommonDataSource, ConnectionPoolDataSource

public final class SimonConnectionPoolDataSource
extends AbstractSimonDataSource
implements ConnectionPoolDataSource

Wrapper class for real ConnectionPoolDataSource implementation, produces pooled PooledConnection object.

See the SimonDataSource for more information.

Since:
1.0
Version:
$Revision: 304 $ $Date: 2011-04-08 10:39:02 +0200 (Fri, 08 Apr 2011) $
Author:
Radovan Sninsky

Field Summary
private  ConnectionPoolDataSource ds
           
 
Fields inherited from class org.javasimon.jdbcx.AbstractSimonDataSource
loginTimeout, logWriter, password, prefix, realDataSourceClassName, url, user
 
Constructor Summary
SimonConnectionPoolDataSource()
           
 
Method Summary
private  ConnectionPoolDataSource datasource()
           
 PooledConnection getPooledConnection()
          
 PooledConnection getPooledConnection(String user, String password)
          
 
Methods inherited from class org.javasimon.jdbcx.AbstractSimonDataSource
getLoginTimeout, getLogWriter, getPassword, getPrefix, getRealDataSourceClassName, getUrl, getUser, setLoginTimeout, setLogWriter, setPassword, setPrefix, setRealDataSourceClassName, setUrl, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.CommonDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Field Detail

ds

private ConnectionPoolDataSource ds
Constructor Detail

SimonConnectionPoolDataSource

public SimonConnectionPoolDataSource()
Method Detail

datasource

private ConnectionPoolDataSource datasource()
                                     throws SQLException
Throws:
SQLException

getPooledConnection

public PooledConnection getPooledConnection()
                                     throws SQLException

Specified by:
getPooledConnection in interface ConnectionPoolDataSource
Throws:
SQLException

getPooledConnection

public PooledConnection getPooledConnection(String user,
                                            String password)
                                     throws SQLException

Specified by:
getPooledConnection in interface ConnectionPoolDataSource
Throws:
SQLException


Copyright © 2011. All Rights Reserved.