final class EmbedXAConnection40 extends EmbedXAConnection implements javax.sql.XAConnection
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.CopyOnWriteArrayList<javax.sql.StatementEventListener> |
statementEventListeners
List of statement event listeners.
|
currentConnectionHandle, dataSource, defaultIsolationLevel, isActive, realConnection| Constructor and Description |
|---|
EmbedXAConnection40(EmbeddedBaseDataSource ds,
ResourceAdapter ra,
java.lang.String user,
java.lang.String password,
boolean requestPassword)
Creates EmbedXAConnection40.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStatementEventListener(javax.sql.StatementEventListener listener)
Registers a
StatementEventListener with this
PooledConnection object. |
void |
onStatementClose(java.sql.PreparedStatement statement)
Raise the statementClosed event for all the listeners when the
corresponding events occurs
|
void |
onStatementErrorOccurred(java.sql.PreparedStatement statement,
java.sql.SQLException sqle)
Raise the statementErrorOccurred event for all the listeners when the
corresponding events occurs
|
void |
removeStatementEventListener(javax.sql.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. |
checkAutoCommit, checkClose, checkCommit, checkHoldCursors, checkRollback, checkSavepoint, getConnection, getRealConnection, getXAResource, isInGlobalTransaction, wrapStatement, wrapStatement, wrapStatementaddConnectionEventListener, checkActive, close, closingConnection, getLanguageConnection, getNewCurrentConnectionHandle, getPassword, getUsername, isActive, isIsolationLevelSetUsingSQLorJDBC, notifyError, notifyException, openRealConnection, removeConnectionEventListener, resetIsolationLevelFlag, resetRealConnection, toStringprivate final java.util.concurrent.CopyOnWriteArrayList<javax.sql.StatementEventListener> statementEventListeners
EmbedXAConnection40(EmbeddedBaseDataSource ds, ResourceAdapter ra, java.lang.String user, java.lang.String password, boolean requestPassword) throws java.sql.SQLException
ds - ra - user - password - requestPassword - java.sql.SQLExceptionpublic void removeStatementEventListener(javax.sql.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.
removeStatementEventListener in interface javax.sql.PooledConnectionlistener - the component which implements the
StatementEventListener interface that was previously
registered with this PooledConnection object
public void addStatementEventListener(javax.sql.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.
addStatementEventListener in interface javax.sql.PooledConnectionlistener - an component which implements the
StatementEventListener interface that is to be registered
with this PooledConnection object
public void onStatementClose(java.sql.PreparedStatement statement)
onStatementClose in interface BrokeredConnectionControlonStatementClose in class EmbedPooledConnectionstatement - PreparedStatementpublic void onStatementErrorOccurred(java.sql.PreparedStatement statement,
java.sql.SQLException sqle)
onStatementErrorOccurred in interface BrokeredConnectionControlonStatementErrorOccurred in class EmbedPooledConnectionstatement - PreparedStatementsqle - SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.