类 MysqlConnectionPoolDataSource
- java.lang.Object
-
- com.mysql.cj.conf.DefaultPropertySet
-
- com.mysql.cj.jdbc.JdbcPropertySetImpl
-
- com.mysql.cj.jdbc.MysqlDataSource
-
- com.mysql.cj.jdbc.MysqlConnectionPoolDataSource
-
- 所有已实现的接口:
PropertySet,JdbcPropertySet,Serializable,Wrapper,Referenceable,CommonDataSource,ConnectionPoolDataSource,DataSource
public class MysqlConnectionPoolDataSource extends MysqlDataSource implements 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.- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 com.mysql.cj.jdbc.MysqlDataSource
databaseName, description, encoding, explicitPort, explicitUrl, hostName, logWriter, mysqlDriver, password, port, profileSQLString, url, user
-
-
构造器概要
构造器 构造器 说明 MysqlConnectionPoolDataSource()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 PooledConnectiongetPooledConnection()PooledConnectiongetPooledConnection(String u, String p)-
从类继承的方法 com.mysql.cj.jdbc.MysqlDataSource
exposeAsProperties, getBooleanRuntimeProperty, getConnection, getConnection, getConnection, getDatabaseName, getDescription, getEnumRuntimeProperty, getIntegerRuntimeProperty, getLoginTimeout, getLogWriter, getLongRuntimeProperty, getMemorySizeRuntimeProperty, getParentLogger, getPassword, getPort, getPortNumber, getReference, getServerName, getStringRuntimeProperty, getUrl, getURL, getUser, isWrapperFor, setBooleanRuntimeProperty, setDatabaseName, setDescription, setEnumRuntimeProperty, setIntegerRuntimeProperty, setLoginTimeout, setLogWriter, setLongRuntimeProperty, setMemorySizeRuntimeProperty, setPassword, setPort, setPortNumber, setPropertiesViaRef, setServerName, setStringRuntimeProperty, setUrl, setURL, setUser, unwrap
-
从类继承的方法 com.mysql.cj.jdbc.JdbcPropertySetImpl
exposeAsDriverPropertyInfo, postInitialization
-
从类继承的方法 com.mysql.cj.conf.DefaultPropertySet
addProperty, getBooleanProperty, getBooleanProperty, getEnumProperty, getEnumProperty, getIntegerProperty, getIntegerProperty, getLongProperty, getLongProperty, getMemorySizeProperty, getMemorySizeProperty, getProperty, getProperty, getStringProperty, getStringProperty, initializeProperties, removeProperty, removeProperty, reset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
-
从接口继承的方法 javax.sql.ConnectionPoolDataSource
createPooledConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
-
从接口继承的方法 javax.sql.DataSource
createConnectionBuilder
-
从接口继承的方法 com.mysql.cj.jdbc.JdbcPropertySet
exposeAsDriverPropertyInfo
-
从接口继承的方法 com.mysql.cj.conf.PropertySet
addProperty, getBooleanProperty, getBooleanProperty, getEnumProperty, getEnumProperty, getIntegerProperty, getIntegerProperty, getLongProperty, getLongProperty, getMemorySizeProperty, getMemorySizeProperty, getProperty, getProperty, getStringProperty, getStringProperty, initializeProperties, postInitialization, removeProperty, removeProperty, reset
-
-
-
-
方法详细资料
-
getPooledConnection
public PooledConnection getPooledConnection() throws SQLException
- 指定者:
getPooledConnection在接口中ConnectionPoolDataSource- 抛出:
SQLException
-
getPooledConnection
public PooledConnection getPooledConnection(String u, String p) throws SQLException
- 指定者:
getPooledConnection在接口中ConnectionPoolDataSource- 抛出:
SQLException
-
-