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, description, driver, driverType, explicitCachingEnabled, explicitCachingEnabledSet, fastConnFailover, implicitCachingEnabled, implicitCachingEnabledSet, isOracleDataSource, loginTimeout, logWriter, maxStatements, maxStatementsSet, networkProtocol, odsCache, onsConfigStr, password, portNumber, serverName, serviceName, tnsEntry, TRACE, url, user| Constructor and Description |
|---|
OracleConnectionPoolDataSource() |
| Modifier and Type | Method and 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.
|
protected OraclePooledConnection |
getPooledConnection(OracleConnectionBuilderImpl connBuilder) |
PooledConnection |
getPooledConnection(String _user,
String _passwd)
Attempt to establish a database connection.
|
addRefProperties, close, copy, createConnectionBuilder, debug, getConnection, 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, getRoleName, getServerName, getServiceName, getTNSEntryName, getURL, getUser, isWrapperFor, setConnectionCacheName, setConnectionCacheProperties, setConnectionCachingEnabled, setConnectionProperties, setDatabaseName, setDataSourceName, setDescription, setDriverType, setExplicitCachingEnabled, setFastConnectionFailoverEnabled, setImplicitCachingEnabled, setLoginTimeout, setLogWriter, setMaxStatements, setNetworkProtocol, setONSConfiguration, setPassword, setPortNumber, setRoleName, setServerName, setServiceName, setTNSEntryName, setURL, setUser, trace, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateShardingKeyBuilder, 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, setURL, setUsergetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterpublic OracleConnectionPoolDataSource()
throws SQLException
SQLExceptionpublic PooledConnection getPooledConnection() throws SQLException
Attempt to establish a database connection.
getPooledConnection in interface ConnectionPoolDataSourceSQLException - if a database-access error occurs.public PooledConnection getPooledConnection(String _user, String _passwd) throws SQLException
Attempt to establish a database connection.
getPooledConnection in interface ConnectionPoolDataSourceuser - 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
SQLExceptionprotected Connection getPhysicalConnection(String _url, String _user, String _passwd) throws SQLException
SQLExceptionprotected Connection getPhysicalConnection(String _user, String _passwd) throws SQLException
SQLExceptionprotected OraclePooledConnection getPooledConnection(OracleConnectionBuilderImpl connBuilder) throws SQLException
SQLExceptionpublic OraclePooledConnectionBuilder createPooledConnectionBuilder() throws SQLException
OracleConnectionPoolDataSourceOraclePooledConnectionBuilder instancecreatePooledConnectionBuilder in interface OracleConnectionPoolDataSourceOraclePooledConnectionBuilder instance that was createdSQLException - if an error occurs while creating the builder