Package javax.sql

Interface StatementEventListener

All Superinterfaces:
EventListener

public interface StatementEventListener
extends EventListener
An object that registers to be notified of events that occur on PreparedStatements that are in the Statement pool.
  • Method Summary

    Modifier and Type Method Description
    void statementClosed​(StatementEvent event)
    The driver calls this method on all StatementEventListeners registered on the connection when it detects that a PreparedStatement is closed.
    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
  • Method Details

    • statementClosed

      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 - an StatementEvent object describing the event of statement closed
    • statementErrorOccurred

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