javax.sql

Class StatementEvent

  • All Implemented Interfaces:
    Serializable

    public class StatementEvent
    extends EventObject
    A StatementEvent is sent to all StatementEventListeners which were registered with a PooledConnection. This occurs when the driver determines that a PreparedStatement that is associated with the PooledConnection has been closed or the driver determines is invalid.

    Since:
    1.6
    See Also:
    Serialized Form
    • Constructor Detail

      • StatementEvent

        public StatementEvent(PooledConnection con,
                      PreparedStatement statement)
        Constructs a StatementEvent with the specified PooledConnection and PreparedStatement. The SQLException contained in the event defaults to null.

        Parameters:
        con - The PooledConnection that the closed or invalid PreparedStatementis associated with.
        statement - The PreparedStatement that is bieng closed or is invalid

        Throws:
        IllegalArgumentException - if con is null.
        Since:
        1.6
      • StatementEvent

        public StatementEvent(PooledConnection con,
                      PreparedStatement statement,
                      SQLException exception)
        Constructs a StatementEvent with the specified PooledConnection, PreparedStatement and SQLException

        Parameters:
        con - The PooledConnection that the closed or invalid PreparedStatement is associated with.
        statement - The PreparedStatement that is being closed or is invalid
        exception - The SQLException the driver is about to throw to the application
        Throws:
        IllegalArgumentException - if con is null.

        Since:
        1.6
    • Method Detail

      • getStatement

        public PreparedStatement getStatement()
        Returns the PreparedStatement that is being closed or is invalid

        Returns:
        The PreparedStatement that is being closed or is invalid

        Since:
        1.6
      • getSQLException

        public SQLException getSQLException()
        Returns the SQLException the driver is about to throw

        Returns:
        The SQLException the driver is about to throw

        Since:
        1.6

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 11/06/2005, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/sql/StatementEvent.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut