|
Oracle JDBC API Reference 12c Release 1 ("12.1.0.2.0") E17663-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.jdbc.pool.OracleDataSource
oracle.jdbc.pool.OracleConnectionPoolDataSource
public class 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.
| Field Summary | |
|---|---|
static boolean |
TRACE
|
| 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 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 |
|---|
public static final boolean TRACE
| Constructor Detail |
|---|
public OracleConnectionPoolDataSource()
throws SQLException
SQLException| Method Detail |
|---|
public 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 password
SQLException - 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
|
Oracle JDBC API Reference 12c Release 1 ("12.1.0.2.0") E17663-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||