Interface ResultSetIterator.CustomTypeHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Object handle​(ResultSet resultSet, String columnName)
      Performs some action to extract the value of the given column from the current row of the ResultSet, transforming it to the appropriate type.
    • Method Detail

      • handle

        Object handle​(ResultSet resultSet,
                      String columnName)
               throws SQLException
        Performs some action to extract the value of the given column from the current row of the ResultSet, transforming it to the appropriate type.

        You should not invoke ResultSet.next() or any other method that will change the ResultSet’s cursor location.

        Parameters:
        resultSet - The result set, already on the correct row
        columnName - The column name
        Returns:
        The result of handling the data
        Throws:
        SQLException - on error