|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A PooledConnection object is a connection object that provides hooks for connection pool management. A PooledConnection object represents a physical connection to a data source.
Method Summary | |
void |
addConnectionEventListener(ConnectionEventListener listener)
Add an event listener. |
void |
close()
Close the physical connection. |
Connection |
getConnection()
Create an object handle for this physical connection. |
void |
removeConnectionEventListener(ConnectionEventListener listener)
Remove an event listener. |
Method Detail |
public 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.
SQLException
- if a database-access error occurs.public void close() throws SQLException
Close the physical connection.
SQLException
- if a database-access error occurs.public void addConnectionEventListener(ConnectionEventListener listener)
Add an event listener.
public void removeConnectionEventListener(ConnectionEventListener listener)
Remove an event listener.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |