|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.jdbc.EmbedPooledConnection
org.apache.derby.jdbc.EmbedPooledConnection40
class EmbedPooledConnection40
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:
| Field Summary | |
|---|---|
private java.util.concurrent.CopyOnWriteArrayList<javax.sql.StatementEventListener> |
statementEventListeners
List of statement event listeners. |
| Fields inherited from class org.apache.derby.jdbc.EmbedPooledConnection |
|---|
currentConnectionHandle, dataSource, defaultIsolationLevel, isActive, realConnection |
| Constructor Summary | |
|---|---|
EmbedPooledConnection40(EmbeddedBaseDataSource ds,
java.lang.String user,
java.lang.String password,
boolean requestPassword)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final java.util.concurrent.CopyOnWriteArrayList<javax.sql.StatementEventListener> statementEventListeners
| Constructor Detail |
|---|
EmbedPooledConnection40(EmbeddedBaseDataSource ds,
java.lang.String user,
java.lang.String password,
boolean requestPassword)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public 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.
listener - 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.
listener - 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 - PreparedStatement
public void onStatementErrorOccurred(java.sql.PreparedStatement statement,
java.sql.SQLException sqle)
onStatementErrorOccurred in interface BrokeredConnectionControlonStatementErrorOccurred in class EmbedPooledConnectionstatement - PreparedStatementsqle - SQLException
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||