Interface RecordProcessor

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void end​(boolean hasMore, int maxCount)
      Called after the last record has been processed successfully
      boolean process​(int count, java.sql.ResultSet RS)
      Called for each record
      default void start()
      Called before the first record is processed
    • Method Detail

      • start

        default void start()
                    throws java.lang.Exception
        Called before the first record is processed
        Throws:
        java.lang.Exception
      • process

        boolean process​(int count,
                        java.sql.ResultSet RS)
                 throws java.lang.Exception
        Called for each record
        Parameters:
        count - the count of the record being processed starting at 0 for the first record
        RS - the result set to be processed
        Returns:
        whether this was successful or not. If false is returned, the process will be aborted.
        Throws:
        java.lang.Exception
      • end

        default void end​(boolean hasMore,
                         int maxCount)
                  throws java.lang.Exception
        Called after the last record has been processed successfully
        Parameters:
        hasMore - whether there are more records to be processed
        maxCount - the max count originally supplied to the query handler
        Throws:
        java.lang.Exception