Oracle JDBC API Reference
12c Release 1 ("12.1.0.2.0")
E17663-03

oracle.jdbc.pool
Class OracleConnectionPoolDataSource

java.lang.Object
  extended by oracle.jdbc.pool.OracleDataSource
      extended by oracle.jdbc.pool.OracleConnectionPoolDataSource
All Implemented Interfaces:
Serializable, Wrapper, Referenceable, CommonDataSource, ConnectionPoolDataSource, DataSource
Direct Known Subclasses:
OracleXADataSource

public class OracleConnectionPoolDataSource
extends OracleDataSource
implements ConnectionPoolDataSource

A DataSource object is a factory for Connection objects. An object that implements the DataSource interface will typically be registered with a JNDI service provider. A JDBC driver that is accessed via the DataSource API does not automatically register itself with the DriverManager.

See Also:
Serialized Form

Field Summary
static boolean TRACE
           
 
Fields inherited from class oracle.jdbc.pool.OracleDataSource
cacheManager, connCacheName, connCacheProperties, connCachingEnabled, connectionProperties, databaseName, dataSourceName, description, driver, driverType, explicitCachingEnabled, explicitCachingEnabledSet, fastConnFailover, implicitCachingEnabled, implicitCachingEnabledSet, isOracleDataSource, loginTimeout, logWriter, maxStatements, maxStatementsSet, networkProtocol, odsCache, onsConfigStr, password, portNumber, serverName, serviceName, tnsEntry, url, user
 
Constructor Summary
OracleConnectionPoolDataSource()
           
 
Method Summary
protected  Connection getPhysicalConnection()
          Get a Physical Connection with default url, user name, and password
protected  Connection getPhysicalConnection(String _user, String _passwd)
          Get a Physical Connection with the user name and password & default URL
protected  Connection getPhysicalConnection(String _url, String _user, String _passwd)
          Get a Physical Connection with the given url, user name, and password
 PooledConnection getPooledConnection()
           Attempt to establish a database connection.
 PooledConnection getPooledConnection(String _user, String _passwd)
          Attempt to establish a database connection.
 
Methods inherited from class oracle.jdbc.pool.OracleDataSource
addRefProperties, close, copy, getConnection, getConnection, getConnection, getConnection, getConnectionCacheName, getConnectionCacheProperties, getConnectionCachingEnabled, getConnectionDuringExceptionHandling, getConnectionProperties, getDatabaseName, getDataSourceName, getDescription, getDriverType, getExplicitCachingEnabled, getFastConnectionFailoverEnabled, getImplicitCachingEnabled, getLoginTimeout, getLogWriter, getMaxStatements, getNetworkProtocol, getONSConfiguration, getParentLogger, getPassword, getPhysicalConnection, getPortNumber, getReference, getServerName, getServiceName, getTNSEntryName, getURL, getUser, isWrapperFor, setConnectionCacheName, setConnectionCacheProperties, setConnectionCachingEnabled, setConnectionProperties, setDatabaseName, setDataSourceName, setDescription, setDriverType, setExplicitCachingEnabled, setFastConnectionFailoverEnabled, setImplicitCachingEnabled, setLoginTimeout, setLogWriter, setMaxStatements, setNetworkProtocol, setONSConfiguration, setPassword, setPortNumber, setServerName, setServiceName, setTNSEntryName, setURL, setUser, trace, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.CommonDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Field Detail

TRACE

public static final boolean TRACE
See Also:
Constant Field Values
Constructor Detail

OracleConnectionPoolDataSource

public OracleConnectionPoolDataSource()
                               throws SQLException
Throws:
SQLException
Method Detail

getPooledConnection

public PooledConnection getPooledConnection()
                                     throws SQLException

Attempt to establish a database connection.

Specified by:
getPooledConnection in interface ConnectionPoolDataSource
Returns:
a PooledConnection to the database
Throws:
SQLException - if a database-access error occurs.

getPooledConnection

public PooledConnection getPooledConnection(String _user,
                                            String _passwd)
                                     throws SQLException

Attempt to establish a database connection.

Specified by:
getPooledConnection in interface ConnectionPoolDataSource
Parameters:
user - the database user on whose behalf the Connection is being made
password - the user's password
Returns:
a PooledConnection to the database
Throws:
SQLException - if a database-access error occurs.

getPhysicalConnection

protected Connection getPhysicalConnection()
                                    throws SQLException
Get a Physical Connection with default url, user name, and password

Throws:
SQLException

getPhysicalConnection

protected Connection getPhysicalConnection(String _url,
                                           String _user,
                                           String _passwd)
                                    throws SQLException
Get a Physical Connection with the given url, user name, and password

Throws:
SQLException

getPhysicalConnection

protected Connection getPhysicalConnection(String _user,
                                           String _passwd)
                                    throws SQLException
Get a Physical Connection with the user name and password & default URL

Throws:
SQLException

Oracle JDBC API Reference
12c Release 1 ("12.1.0.2.0")
E17663-03

Copyright © 2008, 2013, Oracle. All rights reserved.