to top
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