Package com.redwood.scheduler.api.model
Class LongListCallback
- java.lang.Object
- 
- com.redwood.scheduler.api.model.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.
- 
- 
Field Summary- 
Fields inherited from interface com.redwood.scheduler.api.model.APIResultSetCallbackNULL
 
- 
 - 
Constructor SummaryConstructors Constructor Description LongListCallback(int aSegmentSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancallback(ResultSet aRs, ObjectGetter aObjectGetter)Invoked for each result, provided that the previous invocation returnedtrue.com.redwood.scheduler.infrastructure.collections.LongListgetResult()voidstart()Invoked before processing any results.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.redwood.scheduler.api.model.APIResultSetCallbackfinish
 
- 
 
- 
- 
- 
Method Detail- 
startpublic void start() Description copied from interface:APIResultSetCallbackInvoked before processing any results.This is before any calls to APIResultSetCallback.callback(ResultSet, ObjectGetter)are made.Note that this may be invoked more than once under some circumstances. (Such circumstances include when the query is restarted due to underlying database errors.) - Specified by:
- startin interface- APIResultSetCallback
 
 - 
callbackpublic boolean callback(ResultSet aRs, ObjectGetter aObjectGetter) throws SQLException Description copied from interface:APIResultSetCallbackInvoked for each result, provided that the previous invocation returnedtrue.- Specified by:
- callbackin 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:
- trueif this method should be invoked for the next result,- falseif subsequent results are to be discarded.
- Throws:
- SQLException- Exception thrown when a database-related error occurs
 
 - 
getResultpublic com.redwood.scheduler.infrastructure.collections.LongList getResult() 
 
- 
 
-