Interface ResultRow<T,​R>

  • Type Parameters:
    T - Type of objects thats must be returned.
    R - Type of objects thats database connection return as row, JDBC is {link ResultSet} JPA is Object[].

    public interface ResultRow<T,​R>
    Extract the result for each row from ResultSet.

    Note: ResultRow must be stateless.

    Since:
    0.6.0
    Author:
    Alisson Gomes
    • Method Detail

      • row

        T row​(R rs,
              int rownum)
        throws SQLException
        Retrieve column values from the current row, implementations must don't call next neither close methods.
        Parameters:
        rs - A ResultSet or Object[] pointing to its current row of data
        rownum - The row number
        Returns:
        the instance of object with ResultSet data.
        Throws:
        SQLException - errors that occurs when access ResultSet methods.
      • setColumns

        void setColumns​(JdbcColumn<R>[] columns)