Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
Added in API level 9
public interface

StatementEventListener

implements EventListener
javax.sql.StatementEventListener

Class Overview

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

public abstract void statementClosed ( StatementEvent event)

Added in API level 9

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

Parameters
event an StatementEvent object describing the event of statement closed

public abstract void statementErrorOccurred ( StatementEvent event)

Added in API level 9

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 an StatementEvent object describing the event of statement error occurred