java.lang.Object
com.mysql.jdbc.jdbc2.optional.MysqlDataSource
com.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.
| Fields inherited from class com.mysql.jdbc.jdbc2.optional.MysqlDataSource |
databaseName, encoding, explicitUrl, hostName, logWriter, mysqlDriver, password, port, profileSql, url, user |
| 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 |
MysqlConnectionPoolDataSource
public MysqlConnectionPoolDataSource()
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