javax.sql

Interface RowSetInternal


  • public interface RowSetInternal
    The interface that a RowSet object implements in order to present itself to a RowSetReader or RowSetWriter object. The RowSetInternal interface contains methods that let the reader or writer access and modify the internal state of the rowset.
    Since:
    1.4
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      Connection getConnection()
      Retrieves the Connection object that was passed to this RowSet object.
      ResultSet getOriginal()
      Retrieves a ResultSet object containing the original value of this RowSet object.
      ResultSet getOriginalRow()
      Retrieves a ResultSet object containing the original value of the current row only.
      Object[] getParams()
      Retrieves the parameters that have been set for this RowSet object's command.
      void setMetaData(RowSetMetaData md)
      Sets the given RowSetMetaData object as the RowSetMetaData object for this RowSet object.

        

    • Method Detail

      • getParams

        Object[] getParams()
                           throws SQLException
        Retrieves the parameters that have been set for this RowSet object's command.
        Returns:
        an array of the current parameter values for this RowSet object's command
        Throws:
        SQLException - if a database access error occurs
      • getConnection

        Connection getConnection()
                                 throws SQLException
        Retrieves the Connection object that was passed to this RowSet object.
        Returns:
        the Connection object passed to the rowset or null if none was passed
        Throws:
        SQLException - if a database access error occurs
      • setMetaData

        void setMetaData(RowSetMetaData md)
                         throws SQLException
        Sets the given RowSetMetaData object as the RowSetMetaData object for this RowSet object. The RowSetReader object associated with the rowset will use RowSetMetaData methods to set the values giving information about the rowset's columns.
        Parameters:
        md - the RowSetMetaData object that will be set with information about the rowset's columns
        Throws:
        SQLException - if a database access error occurs
      • getOriginal

        ResultSet getOriginal()
                              throws SQLException
        Retrieves a ResultSet object containing the original value of this RowSet object.

        The cursor is positioned before the first row in the result set. Only rows contained in the result set returned by the method getOriginal are said to have an original value.

        Returns:
        the original value of the rowset
        Throws:
        SQLException - if a database access error occurs
      • getOriginalRow

        ResultSet getOriginalRow()
                                 throws SQLException
        Retrieves a ResultSet object containing the original value of the current row only. If the current row has no original value, an empty result set is returned. If there is no current row, an exception is thrown.
        Returns:
        the original value of the current row as a ResultSet object
        Throws:
        SQLException - if a database access error occurs or this method is called while the cursor is on the insert row, before the first row, or after the last row

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 29/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/sql/rowsetinternal.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, RowSetInternal

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