Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mysql.jdbc.jdbc2.optional
Class MysqlConnectionPoolDataSource  view MysqlConnectionPoolDataSource download MysqlConnectionPoolDataSource.java

java.lang.Object
  extended bycom.mysql.jdbc.jdbc2.optional.MysqlDataSource
      extended bycom.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
All Implemented Interfaces:
javax.sql.ConnectionPoolDataSource, javax.sql.DataSource, javax.naming.Referenceable, java.io.Serializable

public class MysqlConnectionPoolDataSource
extends MysqlDataSource
implements javax.sql.ConnectionPoolDataSource

This class is used to obtain a physical connection and instantiate and return a MysqlPooledConnection. J2EE application servers map client calls to dataSource.getConnection to this class based upon mapping set within deployment descriptor. This class extends MysqlDataSource.


Field Summary
 
Fields inherited from class com.mysql.jdbc.jdbc2.optional.MysqlDataSource
databaseName, encoding, explicitUrl, hostName, logWriter, mysqlDriver, password, port, profileSql, url, user
 
Constructor Summary
MysqlConnectionPoolDataSource()
           
 
Method Summary
 javax.sql.PooledConnection getPooledConnection()
          Returns a pooled connection.
 javax.sql.PooledConnection getPooledConnection(java.lang.String s, java.lang.String s1)
          This method is invoked by the container.
 
Methods inherited from class com.mysql.jdbc.jdbc2.optional.MysqlDataSource
getConnection, getConnection, getConnection, getDatabaseName, getLoginTimeout, getLogWriter, getPort, getPortNumber, getProfileSql, getReference, getServerName, getUrl, getURL, getUser, setDatabaseName, setLoginTimeout, setLogWriter, setPassword, setPort, setPortNumber, setProfileSql, setServerName, setUrl, 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.ConnectionPoolDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Constructor Detail

MysqlConnectionPoolDataSource

public MysqlConnectionPoolDataSource()
Method Detail

getPooledConnection

public javax.sql.PooledConnection getPooledConnection()
                                               throws java.sql.SQLException
Returns a pooled connection.

Specified by:
getPooledConnection in interface javax.sql.ConnectionPoolDataSource

getPooledConnection

public javax.sql.PooledConnection getPooledConnection(java.lang.String s,
                                                      java.lang.String s1)
                                               throws java.sql.SQLException
This method is invoked by the container. Obtains physical connection using mySql.Driver class and returns a mysqlPooledConnection object.

Specified by:
getPooledConnection in interface javax.sql.ConnectionPoolDataSource