Skip to content

Most visited

Recently visited

navigation
Added in API level 9

StatementEventListener

public interface StatementEventListener
implements EventListener

javax.sql.StatementEventListener


An object that registers to be notified of events that occur on PreparedStatements that are in the Statement pool.

Summary

Public methods

abstract void statementClosed(StatementEvent event)

The driver calls this method on all StatementEventListeners registered on the connection when it detects that a PreparedStatement is closed.

abstract void statementErrorOccurred(StatementEvent event)

The driver calls this method on all StatementEventListeners registered on the connection when it detects that a PreparedStatement is invalid, before a SQLException is thrown

Public methods

statementClosed

Added in API level 9
void statementClosed (StatementEvent event)

The driver calls this method on all StatementEventListeners registered on the connection when it detects that a PreparedStatement is closed.

Parameters
event StatementEvent: an StatementEvent object describing the event of statement closed

statementErrorOccurred

Added in API level 9
void statementErrorOccurred (StatementEvent event)

The driver calls this method on all StatementEventListeners registered on the connection when it detects that a PreparedStatement is invalid, before a SQLException is thrown

Parameters
event StatementEvent: an StatementEvent object describing the event of statement error occurred
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.