Package oracle.jdbc

Interface OracleCommonResultSet

All Superinterfaces:
AutoCloseable, ResultSet, Wrapper
All Known Subinterfaces:
OracleResultSet

public interface OracleCommonResultSet extends ResultSet
Interface that defines common methods.
Since:
23
  • Method Details

    • publisherOracle

      <T> Flow.Publisher<T> publisherOracle(Function<? super OracleRow,T> rowMappingFunction) throws SQLException

      Returns a Publisher that publishes the rows of this ResultSet beginning with the first row. A rowMappingFunction defines the type T which rows are published as. Each OracleRow is valid only for the duration of the call to the rowMappingFunction. OracleRow.clone() will create a new instance of OracleRow which persists after the rowMappingFunction returns. An unchecked exception thrown by the row mapping function is emitted as an onError signal to subscribers.

      The returned Publisher supports multiple Subscribers. Subscribers which subscribe after some rows are published will not see the already published rows. It may be the case that rows are published only when all subscribers have requested additional rows.

      This method closes the ResultSet.

      Parameters:
      rowMappingFunction - Function applied to each row which produces the published type T.
      Returns:
      a Publisher of the rows of this ResultSet
      Throws:
      SQLException - If a database error occurs, if this method is called on a closed ResultSet, or if this ResultSet's cursor has been moved from its initial position before the first row.
      Since:
      20