public class ClientXAConnection40 extends ClientXAConnection
logWriter_, rmId_| Constructor and Description |
|---|
ClientXAConnection40(ClientXADataSource ds,
NetLogWriter logWtr,
String userId,
String password)
Constructor for ClientXAConnection40.
|
| 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
StatementEventListener from the list of
components that will be notified when the driver detects that a
PreparedStatement has been closed or is invalid. |
close, createControlConnection, getConnection, getDataSource, getRmId, getXAResourceaddConnectionEventListener, finalize, getNetXAConnection, informListeners, isStatementPoolingEnabled, nullLogicalConnection, recycleConnection, removeConnectionEventListenerclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionEventListener, removeConnectionEventListenerpublic ClientXAConnection40(ClientXADataSource ds, NetLogWriter logWtr, String userId, String password) throws SQLException
ds - logWtr - userId - password - SQLExceptionpublic void removeStatementEventListener(StatementEventListener listener)
StatementEventListener from the list of
components that will be notified when the driver detects that a
PreparedStatement has been closed or is invalid.
listener - the component which implements the
StatementEventListener interface that was previously
registered with this PooledConnection object
public void addStatementEventListener(StatementEventListener listener)
StatementEventListener with this PooledConnection object. Components that
wish to be notified when PreparedStatements created by the
connection are closed or are detected to be invalid may use this method
to register a StatementEventListener with this PooledConnection object.
listener - an component which implements the
StatementEventListener interface that is to be
registered with this PooledConnection object
public 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.