org.garret.consusx
Class ConsusConnectionPoolDataSource

java.lang.Object
  extended by org.garret.consusx.ConsusDataSource
      extended by org.garret.consusx.ConsusConnectionPoolDataSource
All Implemented Interfaces:
javax.sql.ConnectionPoolDataSource, javax.sql.DataSource, javax.naming.Referenceable, java.io.Serializable
Direct Known Subclasses:
ConsusXADataSource

public class ConsusConnectionPoolDataSource
extends ConsusDataSource
implements javax.sql.ConnectionPoolDataSource

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.garret.consusx.ConsusDataSource
databaseName, dataSourceName, description, networkProtocol, password, portNumber, roleName, serverName, user
 
Constructor Summary
ConsusConnectionPoolDataSource()
           
 
Method Summary
 java.sql.Connection getConnection(java.lang.String username, java.lang.String password)
           
 javax.sql.PooledConnection getPooledConnection()
           
 javax.sql.PooledConnection getPooledConnection(java.lang.String username, java.lang.String password)
           
 
Methods inherited from class org.garret.consusx.ConsusDataSource
getConnection, getDatabaseName, getDataSourceName, getDescription, getLoginTimeout, getLogWriter, getNetworkProtocol, getPassword, getPortNumber, getReference, getRoleName, getServerName, getUser, setDatabaseName, setDataSourceName, setDescription, setLoginTimeout, setLogWriter, setNetworkProtocol, setPassword, setPortNumber, setrRoleName, setServerName, setUser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.ConnectionPoolDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Constructor Detail

ConsusConnectionPoolDataSource

public ConsusConnectionPoolDataSource()
Method Detail

getConnection

public java.sql.Connection getConnection(java.lang.String username,
                                         java.lang.String password)
                                  throws java.sql.SQLException
Specified by:
getConnection in interface javax.sql.DataSource
Overrides:
getConnection in class ConsusDataSource
Throws:
java.sql.SQLException

getPooledConnection

public javax.sql.PooledConnection getPooledConnection()
                                               throws java.sql.SQLException
Specified by:
getPooledConnection in interface javax.sql.ConnectionPoolDataSource
Throws:
java.sql.SQLException

getPooledConnection

public javax.sql.PooledConnection getPooledConnection(java.lang.String username,
                                                      java.lang.String password)
                                               throws java.sql.SQLException
Specified by:
getPooledConnection in interface javax.sql.ConnectionPoolDataSource
Throws:
java.sql.SQLException