Serializable
, Wrapper
, Referenceable
, CommonDataSource
, ConnectionPoolDataSource
, DataSource
, OracleCommonDataSource
, OracleConnectionPoolDataSource
, OracleDataSource
OracleXADataSource
public class OracleConnectionPoolDataSource extends OracleDataSource implements OracleConnectionPoolDataSource
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.
cacheManager, connCacheName, connCacheProperties, connCachingEnabled, connectionProperties, databaseName, dataSourceName, DEFAULT_SERVICE_NAME, description, driver, driverType, ENABLE_AC_SUPPORT_PROPERTY, explicitCachingEnabled, explicitCachingEnabledSet, fastConnFailover, implicitCachingEnabled, implicitCachingEnabledSet, isOracleDataSource, loginTimeout, logWriter, maxStatements, maxStatementsSet, networkProtocol, odsCache, onsConfigStr, password, portNumber, serverName, serviceName, tnsEntry, TRACE, url, user
Constructor | Description |
---|---|
OracleConnectionPoolDataSource() |
Modifier and Type | Method | Description |
---|---|---|
OraclePooledConnectionBuilder |
createPooledConnectionBuilder() |
Creates a new
OraclePooledConnectionBuilder instance |
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.
|
protected OraclePooledConnection |
getPooledConnection(OracleConnectionBuilderImpl connBuilder) |
getParentLogger
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createShardingKeyBuilder, getConnectionProperties, getDatabaseName, getDataSourceName, getDescription, getExplicitCachingEnabled, getImplicitCachingEnabled, getMaxStatements, getNetworkProtocol, getPortNumber, getRoleName, getServerName, getURL, getUser, setConnectionProperties, setDatabaseName, setDataSourceName, setDescription, setExplicitCachingEnabled, setImplicitCachingEnabled, setMaxStatements, setNetworkProtocol, setPassword, setPortNumber, setRoleName, setServerName, setSSLContext, setURL, setUser
addRefProperties, close, copy, createConnectionBuilder, debug, getConnection, getConnection, getConnection, getConnection, getConnection, getConnectionCacheName, getConnectionCacheProperties, getConnectionCachingEnabled, getConnectionDuringExceptionHandling, getConnectionProperties, getConnectionProperty, getDatabaseName, getDataSourceName, getDescription, getDriverType, getExplicitCachingEnabled, getFastConnectionFailoverEnabled, getImplicitCachingEnabled, getLoginTimeout, getLogWriter, getMaxStatements, getNetworkProtocol, getONSConfiguration, getParentLogger, getPassword, getPhysicalConnection, getPortNumber, getReference, getRoleName, getServerName, getServiceName, getTNSEntryName, getURL, getUser, isWrapperFor, setConnectionCacheName, setConnectionCacheProperties, setConnectionCachingEnabled, setConnectionProperties, setConnectionProperty, setDatabaseName, setDataSourceName, setDescription, setDriverType, setExplicitCachingEnabled, setFastConnectionFailoverEnabled, setImplicitCachingEnabled, setLoginTimeout, setLogWriter, setMaxStatements, setNetworkProtocol, setONSConfiguration, setPassword, setPortNumber, setRoleName, setServerName, setServiceName, setSSLContext, setTNSEntryName, setURL, setUser, trace, unwrap
public OracleConnectionPoolDataSource() throws SQLException
SQLException
public PooledConnection getPooledConnection() throws SQLException
Attempt to establish a database connection.
getPooledConnection
in interface ConnectionPoolDataSource
SQLException
- if a database-access error occurs.public PooledConnection getPooledConnection(String _user, String _passwd) throws SQLException
Attempt to establish a database connection.
getPooledConnection
in interface ConnectionPoolDataSource
user
- the database user on whose behalf the Connection is being madepassword
- the user's passwordSQLException
- if a database-access error occurs.protected Connection getPhysicalConnection() throws SQLException
SQLException
protected Connection getPhysicalConnection(String _url, String _user, String _passwd) throws SQLException
SQLException
protected Connection getPhysicalConnection(String _user, String _passwd) throws SQLException
SQLException
protected OraclePooledConnection getPooledConnection(OracleConnectionBuilderImpl connBuilder) throws SQLException
SQLException
public OraclePooledConnectionBuilder createPooledConnectionBuilder() throws SQLException
OracleConnectionPoolDataSource
OraclePooledConnectionBuilder
instancecreatePooledConnectionBuilder
in interface ConnectionPoolDataSource
createPooledConnectionBuilder
in interface OracleConnectionPoolDataSource
OraclePooledConnectionBuilder
instance that was createdSQLException
- if an error occurs while creating the builder