|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.postgresql.ds.jdbc23.AbstractJdbc23PooledConnection
public abstract class AbstractJdbc23PooledConnection
PostgreSQL implementation of the PooledConnection interface. This shouldn't be used directly, as the pooling client should just interact with the ConnectionPool instead.
PGConnectionPoolDataSource| Constructor Summary | |
|---|---|
AbstractJdbc23PooledConnection(Connection con,
boolean autoCommit,
boolean isXA)
Creates a new PooledConnection representing the specified physical connection. |
|
| Method Summary | |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener connectionEventListener)
Adds a listener for close or fatal error events on the connection handed out to a client. |
void |
close()
Closes the physical database connection represented by this PooledConnection. |
protected abstract ConnectionEvent |
createConnectionEvent(SQLException e)
|
Connection |
getConnection()
Gets a handle for a client to use. |
void |
removeConnectionEventListener(ConnectionEventListener connectionEventListener)
Removes a listener for close or fatal error events on the connection handed out to a client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractJdbc23PooledConnection(Connection con,
boolean autoCommit,
boolean isXA)
| Method Detail |
|---|
public void addConnectionEventListener(ConnectionEventListener connectionEventListener)
public void removeConnectionEventListener(ConnectionEventListener connectionEventListener)
public void close()
throws SQLException
SQLException
public Connection getConnection()
throws SQLException
According to the JDBC 2.0 Optional Package spec (6.2.3), only one client may have an active handle to the connection at a time, so if there is a previous handle active when this is called, the previous one is forcibly closed and its work rolled back.
SQLExceptionprotected abstract ConnectionEvent createConnectionEvent(SQLException e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||