addStatementEventListener(StatementEventListener listener)

Syntax:

void addStatementEventListener(StatementEventListener listener)

Description:

Registers a 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.

Parameters:

listener

an component which implements the StatementEventListener interface that is to be registered with this PooledConnection object

Reference:

For more information, reference JDBC documentation for: PooledConnection.addStatementEventListener(StatementEventListener)