接口 RowCallbackHandler

    • 方法详细资料

      • processRow

        void processRow​(ResultSet rs)
                 throws SQLException
        Implementations must implement this method to process each row of data in the ResultSet. This method should not call next() on the ResultSet; it is only supposed to extract values of the current row.

        Exactly what the implementation chooses to do is up to it: A trivial implementation might simply count rows, while another implementation might build an XML document.

        参数:
        rs - the ResultSet to process (pre-initialized for the current row)
        抛出:
        SQLException - if a SQLException is encountered getting column values (that is, there's no need to catch SQLException)