| |
|
| java.lang.Object org.apache.derby.jdbc.EmbedPooledConnection org.apache.derby.jdbc.EmbedPooledConnection40
EmbedPooledConnection40 | class EmbedPooledConnection40 extends EmbedPooledConnection (Code) | | A PooledConnection object is a connection object that provides hooks for
connection pool management.
This is Derby's implementation of a PooledConnection for use in
the following environments:
|
addStatementEventListener | public void addStatementEventListener(StatementEventListener listener)(Code) | | Registers a StatementEventListener with this
PooledConnection object. Components that
wish to be notified when PreparedStatement s created by the
connection are closed or are detected to be invalid may use this method
to register a StatementEventListener with this
PooledConnection object.
Parameters: listener - an component which implements the StatementEventListener interface that is to be registeredwith this PooledConnection object since: 1.6
|
onStatementClose | public void onStatementClose(PreparedStatement statement)(Code) | | Raise the statementClosed event for all the listeners when the
corresponding events occurs
Parameters: statement - PreparedStatement |
onStatementErrorOccurred | public void onStatementErrorOccurred(PreparedStatement statement, SQLException sqle)(Code) | | Raise the statementErrorOccurred event for all the listeners when the
corresponding events occurs
Parameters: statement - PreparedStatement Parameters: sqle - SQLException |
removeStatementEventListener | public void removeStatementEventListener(StatementEventListener listener)(Code) | | Removes the specified StatementEventListener from the list of
components that will be notified when the driver detects that a
PreparedStatement has been closed or is invalid.
Parameters: listener - the component which implements theStatementEventListener interface that was previously registered with this PooledConnection object since: 1.6
|
|
|
|