Class LimitedUniqueIdListAPIResultSetCallback

    • Constructor Detail

      • LimitedUniqueIdListAPIResultSetCallback

        public LimitedUniqueIdListAPIResultSetCallback​(com.redwood.scheduler.infrastructure.collections.LongList newList,
                                                       int newLimit)
      • LimitedUniqueIdListAPIResultSetCallback

        public LimitedUniqueIdListAPIResultSetCallback​(com.redwood.scheduler.infrastructure.collections.LongList newList,
                                                       long skipNumber,
                                                       int newLimit)
    • Method Detail

      • callback

        public boolean callback​(ResultSet rs,
                                ObjectGetter objectGetter)
                         throws SQLException
        Description copied from interface: APIResultSetCallback
        Invoked for each result, provided that the previous invocation returned true.
        Specified by:
        callback in interface APIResultSetCallback
        Overrides:
        callback in class UniqueIdListAPIResultSetCallback
        Parameters:
        rs - the result-set to process
        objectGetter - an object-getter with can be used to convert the result-set into one (or more) objects.
        Returns:
        true if this method should be invoked for the next result, false if subsequent results are to be discarded.
        Throws:
        SQLException - Exception thrown when a database-related error occurs