Class MysqlConnectionPoolDataSource

All Implemented Interfaces:
PropertySet, JdbcPropertySet, java.io.Serializable, java.sql.Wrapper, javax.naming.Referenceable, javax.sql.CommonDataSource, javax.sql.ConnectionPoolDataSource, javax.sql.DataSource

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.
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • 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 u, java.lang.String p) throws java.sql.SQLException
      Specified by:
      getPooledConnection in interface javax.sql.ConnectionPoolDataSource
      Throws:
      java.sql.SQLException