public class DBConnectionPoolDataSource extends XgDataSource implements ConnectionPoolDataSource, Serializable
databaseName, dsConnection, explicitUrl, hostName, loginTimeout, logWriter, maxActive, maxWaitTime, minIdle, password, port, pro, url, user, xgDriver| 构造器和说明 |
|---|
DBConnectionPoolDataSource() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDescription()
Gets a description of this DataSource.
|
PooledConnection |
getPooledConnection()
Gets a connection which may be pooled by the app server or middleware implementation of
DataSource.
|
PooledConnection |
getPooledConnection(String user,
String password)
Gets a connection which may be pooled by the app server or middleware implementation of
DataSource.
|
boolean |
isDefaultAutoCommit()
Gets whether connections supplied by this pool will have autoCommit turned on by default.
|
void |
setDefaultAutoCommit(boolean defaultAutoCommit)
Sets whether connections supplied by this pool will have autoCommit turned on by default.
|
getConnection, getConnection, getConnection, getDatabaseName, getHostName, getLoginTimeout, getLogWriter, getMaxActive, getMaxWaitTime, getMinIdle, getParentLogger, getPassword, getPort, getPro, getReference, getUrl, getUser, isWrapperFor, readBaseObject, setConnection, setDatabaseName, setHostName, setLoginTimeout, setLogWriter, setMaxActive, setMaxWaitTime, setMinIdle, setPassword, setPort, setPro, setUrl, setUser, unwrap, writeBaseObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterpublic String getDescription()
public PooledConnection getPooledConnection() throws SQLException
getPooledConnection 在接口中 ConnectionPoolDataSourceSQLException - Occurs when the physical database connection cannot be
established.public PooledConnection getPooledConnection(String user, String password) throws SQLException
getPooledConnection 在接口中 ConnectionPoolDataSourceSQLException - Occurs when the physical database connection cannot be
established.public boolean isDefaultAutoCommit()
true, so that autoCommit will be turned on by default.public void setDefaultAutoCommit(boolean defaultAutoCommit)
true, so that autoCommit will be turned on by default.defaultAutoCommit - whether connections supplied by this pool will have autoCommitCopyright © 2025. All rights reserved.