Package com.redwood.scheduler.api.model
Class LimitedUniqueIdListAPIResultSetCallback
- java.lang.Object
-
- com.redwood.scheduler.api.model.UniqueIdListAPIResultSetCallback
-
- com.redwood.scheduler.api.model.LimitedUniqueIdListAPIResultSetCallback
-
- All Implemented Interfaces:
APIResultSetCallback
public class LimitedUniqueIdListAPIResultSetCallback extends UniqueIdListAPIResultSetCallback
-
-
Field Summary
-
Fields inherited from class com.redwood.scheduler.api.model.UniqueIdListAPIResultSetCallback
count, skip
-
Fields inherited from interface com.redwood.scheduler.api.model.APIResultSetCallback
NULL
-
-
Constructor Summary
Constructors Constructor Description LimitedUniqueIdListAPIResultSetCallback(com.redwood.scheduler.infrastructure.collections.LongList newList, int newLimit)
LimitedUniqueIdListAPIResultSetCallback(com.redwood.scheduler.infrastructure.collections.LongList newList, long skipNumber, int newLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
callback(ResultSet rs, ObjectGetter objectGetter)
Invoked for each result, provided that the previous invocation returnedtrue
.-
Methods inherited from class com.redwood.scheduler.api.model.UniqueIdListAPIResultSetCallback
start
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.redwood.scheduler.api.model.APIResultSetCallback
finish
-
-
-
-
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 returnedtrue
.- Specified by:
callback
in interfaceAPIResultSetCallback
- Overrides:
callback
in classUniqueIdListAPIResultSetCallback
- Parameters:
rs
- the result-set to processobjectGetter
- 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
-
-