Interface ResultReader<E extends java.lang.Exception>

    • Method Detail

      • readResult

        int readResult​(java.sql.ResultSet resultSet)
                throws java.sql.SQLException,
                       E extends java.lang.Exception
        Reads the results of a ResultSet during an DataSource.executeQuery(String, ResultReader) -operation, treats them or stores them somewhere and returns the count of rows.

        The possible SQLExceptions during read-operations on the ResultSet need not be catched. They will be treated by the enclosing DataSource.executeQuery(String, ResultReader) -operation.

        Parameters:
        resultSet - the ResultSet to read the results from.
        Returns:
        count of selected rows
        Throws:
        java.sql.SQLException - on errors reading the ResultSet
        E - on other business-logic errors
        E extends java.lang.Exception