Interface JDBCReaderCallback

    • Method Detail

      • init

        default void init​(JDBCFeatureReader reader)
        Called when the reader is created.
        Parameters:
        reader - The feature reader.
      • beforeQuery

        default void beforeQuery​(Statement st)
        Called directly before the reader makes it's initial query to the database.
        Parameters:
        st - The query statement being executed.
      • afterQuery

        default void afterQuery​(Statement st)
        Called directly after the reader makes it's initial query to the database.
        Parameters:
        st - The query statement that was executed.
      • queryError

        default void queryError​(Exception e)
        Called when an error occurs making the initial query to the database.
      • beforeNext

        default void beforeNext​(ResultSet rs)
        Called before the reader makes a call to ResultSet.next().
        Parameters:
        rs - The result set.
      • afterNext

        default void afterNext​(ResultSet rs,
                               boolean hasMore)
        Called after the reader makes a call to ResultSet.next().
        Parameters:
        rs - The result set.
        hasMore - Whether or not any more rows exist in the ResultSet
      • rowError

        default void rowError​(Exception e)
        Called when an error occurs fetching the next row in the result set.
        Parameters:
        e - The error thrown.
      • finish

        default void finish​(JDBCFeatureReader reader)
        Called after the last row from the reader ResultSet is read.
        Parameters:
        reader - The feature reader.