All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.jdbc.pool.OraclePooledConnection

java.lang.Object
   |
   +----oracle.jdbc.pool.OraclePooledConnection

public class OraclePooledConnection
extends Object

An OraclePooledConnection object is a connection object that provides hooks for connection pool management. A PooledConnection object represents a physical connection to a data source. It implements javax.sql.PooledConnection


Constructor Index

 o OraclePooledConnection()
 o OraclePooledConnection(Connection)

Create a Pooled Connection.

 o OraclePooledConnection(Connection, boolean)

Create a Pooled Connection.

 o OraclePooledConnection(String)

Creates a PooledConnection.

 o OraclePooledConnection(String, String, String)

Creates a PooledConnection.

Method Index

 o addConnectionEventListener(ConnectionEventListener)

Add an event listener.

 o close()

Close the physical connection.

 o getConnection()

Create an object handle for this physical connection.

 o removeConnectionEventListener(ConnectionEventListener)

Remove an event listener.

Constructors

 o OraclePooledConnection
 public OraclePooledConnection()
 o OraclePooledConnection
 public OraclePooledConnection(String url) throws SQLException

Creates a PooledConnection.

Parameters:
URL - of the physical connection.
 o OraclePooledConnection
 public OraclePooledConnection(String url,
                               String user,
                               String passwd) throws SQLException

Creates a PooledConnection.

Parameters:
URL - of the physical connection.
User - Name
 o OraclePooledConnection
 public OraclePooledConnection(Connection pc)

Create a Pooled Connection.

Parameters:
The - corresponding physical connection.
 o OraclePooledConnection
 public OraclePooledConnection(Connection pc,
                               boolean ac)

Create a Pooled Connection.

Parameters:
The - corresponding physical connection
m_autoCommit - value

Methods

 o addConnectionEventListener
 public synchronized void addConnectionEventListener(ConnectionEventListener cel)

Add an event listener.

Parameters:
The - listener to be added
 o close
 public synchronized void close() throws SQLException

Close the physical connection.

Throws: SQLException
if a database-access error occurs.
 o getConnection
 public synchronized Connection getConnection() throws SQLException

Create an object handle for this physical connection. The object returned is a temporary handle used by application code to refer to a physical connection that is being pooled.

Returns:
a Connection object
Throws: SQLException
if a database-access error occurs.
 o removeConnectionEventListener
 public synchronized void removeConnectionEventListener(ConnectionEventListener cel)

Remove an event listener.

Parameters:
The - listener to be removed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index