Class LongListCallback

  • All Implemented Interfaces:
    APIResultSetCallback

    public class LongListCallback
    extends Object
    implements APIResultSetCallback
    APIResultSetCallback implementation for retrieving the long value present in the first column of the result set. If the value returned in the first column is null, then it won't be included in the resulting List.
    • Constructor Detail

      • LongListCallback

        public LongListCallback​(int aSegmentSize)
        Parameters:
        aSegmentSize - pass 0 to use the default segment size
    • Method Detail

      • callback

        public boolean callback​(ResultSet aRs,
                                ObjectGetter aObjectGetter)
                         throws SQLException
        Description copied from interface: APIResultSetCallback
        Invoked for each result, provided that the previous invocation returned true.
        Specified by:
        callback in interface APIResultSetCallback
        Parameters:
        aRs - the result-set to process
        aObjectGetter - 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
      • getResult

        public com.redwood.scheduler.infrastructure.collections.LongList getResult()