public class AbstractJdbc23ConnectionPoolDataSource extends BaseDataSource implements java.io.Serializable
In any case, in order to use this ConnectionPoolDataSource, you must set the property databaseName. The settings for serverName, portNumber, user, and password are optional. Note: these properties are declared in the superclass.
This implementation supports JDK 1.3 and higher.
| Constructor and Description |
|---|
AbstractJdbc23ConnectionPoolDataSource() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Gets a description of this DataSource.
|
javax.sql.PooledConnection |
getPooledConnection()
Gets a connection which may be pooled by the app server or middleware
implementation of DataSource.
|
javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.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.
|
createReference, getApplicationName, getCompatible, getConnection, getConnection, getDatabaseName, getLoginTimeout, getLogLevel, getLogWriter, getPassword, getPortNumber, getPrepareThreshold, getProtocolVersion, getReference, getServerName, getSocketTimeout, getSsl, getSslfactory, getTcpKeepAlive, getUnknownLength, getUser, initializeFrom, readBaseObject, setApplicationName, setCompatible, setDatabaseName, setLoginTimeout, setLogLevel, setLogWriter, setPassword, setPortNumber, setPrepareThreshold, setProtocolVersion, setServerName, setSocketTimeout, setSsl, setSslfactory, setTcpKeepAlive, setUnknownLength, setUser, writeBaseObjectpublic AbstractJdbc23ConnectionPoolDataSource()
public java.lang.String getDescription()
getDescription in class BaseDataSourcepublic javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
java.sql.SQLException - Occurs when the physical database connection cannot be established.public javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
java.sql.SQLException - Occurs when the physical database connection cannot be established.public boolean isDefaultAutoCommit()
public void setDefaultAutoCommit(boolean defaultAutoCommit)