|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.client.ClientPooledConnection
org.apache.derby.client.ClientPooledConnection40
public class ClientPooledConnection40
The class extends from the ClientPooledConnection class and contains implementations for the JDBC 4.0 specific methods in the javax.sql.PooledConnection interface.
Field Summary | |
---|---|
private java.util.concurrent.CopyOnWriteArrayList<javax.sql.StatementEventListener> |
statementEventListeners
List of statement event listeners. |
Fields inherited from class org.apache.derby.client.ClientPooledConnection |
---|
logicalConnection_, logWriter_, netPhysicalConnection_, netXAPhysicalConnection_, physicalConnection_, rmId_ |
Constructor Summary | |
---|---|
ClientPooledConnection40(ClientBaseDataSource ds,
LogWriter logWriter,
java.lang.String user,
java.lang.String password)
|
|
ClientPooledConnection40(ClientBaseDataSource ds,
LogWriter logWriter,
java.lang.String user,
java.lang.String password,
int rmId)
|
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 previously registered listener object from the list of components that would be informed of events with a PreparedStatement object. |
Methods inherited from class org.apache.derby.client.ClientPooledConnection |
---|
addConnectionEventListener, close, finalize, getConnection, getNetXAConnection, informListeners, isStatementPoolingEnabled, nullLogicalConnection, recycleConnection, removeConnectionEventListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.concurrent.CopyOnWriteArrayList<javax.sql.StatementEventListener> statementEventListeners
Constructor Detail |
---|
public ClientPooledConnection40(ClientBaseDataSource ds, LogWriter logWriter, java.lang.String user, java.lang.String password) throws java.sql.SQLException
java.sql.SQLException
public ClientPooledConnection40(ClientBaseDataSource ds, LogWriter logWriter, java.lang.String user, java.lang.String password, int rmId) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public void addStatementEventListener(javax.sql.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(javax.sql.StatementEventListener listener)
listener
- The previously registered event listener that needs to be
removed from the list of componentspublic void onStatementClose(java.sql.PreparedStatement statement)
onStatementClose
in class ClientPooledConnection
statement
- The PreparedStatement that was closedpublic void onStatementErrorOccurred(java.sql.PreparedStatement statement, java.sql.SQLException sqle)
onStatementErrorOccurred
in class ClientPooledConnection
statement
- The PreparedStatement on which error occurredsqle
- The SQLException associated with the error that
caused the invalidation of the PreparedStatements
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |