public class ClientPooledConnection40 extends ClientPooledConnection
logWriter_, rmId_| Constructor and Description |
|---|
ClientPooledConnection40(ClientBaseDataSource ds,
LogWriter logWriter,
String user,
String password) |
ClientPooledConnection40(ClientBaseDataSource ds,
LogWriter logWriter,
String user,
String password,
int rmId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatementEventListener(StatementEventListener listener)
Registers a StatementEventListener with this PooledConnection object.
|
void |
onStatementClose(PreparedStatement statement)
Raise the statementClosed event for all the listeners when the
corresponding events occurs.
|
void |
onStatementErrorOccurred(PreparedStatement statement,
SQLException sqle)
Raise the statementErrorOccurred event for all the listeners when the
corresponding events occurs.
|
void |
removeStatementEventListener(StatementEventListener listener)
Removes the specified previously registered listener object from the list
of components that would be informed of events with a PreparedStatement
object.
|
addConnectionEventListener, close, finalize, getConnection, getNetXAConnection, informListeners, isStatementPoolingEnabled, nullLogicalConnection, recycleConnection, removeConnectionEventListenerpublic ClientPooledConnection40(ClientBaseDataSource ds, LogWriter logWriter, String user, String password) throws SQLException
SQLExceptionpublic ClientPooledConnection40(ClientBaseDataSource ds, LogWriter logWriter, String user, String password, int rmId) throws SQLException
SQLExceptionpublic void addStatementEventListener(StatementEventListener listener)
listener - A component that implements the StatementEventListener
interface and wants to be notified of Statement closed or
or Statement error occurred eventspublic void removeStatementEventListener(StatementEventListener listener)
listener - The previously registered event listener that needs to be
removed from the list of componentspublic void onStatementClose(PreparedStatement statement)
onStatementClose in class ClientPooledConnectionstatement - The PreparedStatement that was closedpublic void onStatementErrorOccurred(PreparedStatement statement, SQLException sqle)
onStatementErrorOccurred in class ClientPooledConnectionstatement - The PreparedStatement on which error occurredsqle - The SQLException associated with the error that
caused the invalidation of the PreparedStatementsCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.