|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.jdbc.pool.OraclePooledConnection
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 Summary | |
OraclePooledConnection()
|
|
OraclePooledConnection(java.sql.Connection pc)
Create a Pooled Connection. |
|
OraclePooledConnection(java.sql.Connection pc,
boolean ac)
Create a Pooled Connection. |
|
OraclePooledConnection(java.lang.String url)
Creates a PooledConnection. |
|
OraclePooledConnection(java.lang.String url,
java.lang.String user,
java.lang.String passwd)
Creates a PooledConnection. |
Method Summary | |
void |
addConnectionEventListener(oracle.jdbc.pool.ConnectionEventListener cel)
Add an event listener. |
void |
close()
Close the physical connection. |
java.sql.Connection |
getConnection()
Create an object handle for this physical connection. |
java.sql.Connection |
getLogicalHandle()
Return the logical handle to the caller. |
int |
getStmtCacheSize()
Return the size of Statement Cache. |
void |
removeConnectionEventListener(oracle.jdbc.pool.ConnectionEventListener cel)
Remove an event listener. |
void |
setStmtCacheSize(int size)
Set the statement cache size. |
void |
setStmtCacheSize(int size,
boolean clearMetaData)
Set the statement cache size. |
Constructor Detail |
public OraclePooledConnection()
public OraclePooledConnection(java.lang.String url) throws java.sql.SQLException
Creates a PooledConnection.
URL
- of the physical connection.public OraclePooledConnection(java.lang.String url, java.lang.String user, java.lang.String passwd) throws java.sql.SQLException
Creates a PooledConnection.
URL
- of the physical connection.User
- NamePassword
- public OraclePooledConnection(java.sql.Connection pc)
Create a Pooled Connection.
The
- corresponding physical connection.public OraclePooledConnection(java.sql.Connection pc, boolean ac)
Create a Pooled Connection.
The
- corresponding physical connectionm_autoCommit
- valueMethod Detail |
public void addConnectionEventListener(oracle.jdbc.pool.ConnectionEventListener cel)
Add an event listener.
The
- listener to be addedpublic void close() throws java.sql.SQLException
Close the physical connection.
public java.sql.Connection getConnection() throws java.sql.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.
public java.sql.Connection getLogicalHandle() throws java.sql.SQLException
Return the logical handle to the caller. This logical handle refers to the physical connection that is pooled.
public void removeConnectionEventListener(oracle.jdbc.pool.ConnectionEventListener cel)
Remove an event listener.
The
- listener to be removed.public void setStmtCacheSize(int size) throws java.sql.SQLException
If more than
size
- Size of the Cache
public void setStmtCacheSize(int size, boolean clearMetaData) throws java.sql.SQLException
If more than
size
- Size of the CacheclearMetaData
- Whether the state has to be cleared or not
public int getStmtCacheSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |