|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.prevayler.query.AbstractQuery<Collection<P>,S>
com.sptci.prevayler.query.FetchRange<P,S>
public class FetchRange<P extends PrevalentObject,S extends PrevalentSystem>
The query used to retrieve prevalent objects of the specified type in the range specified. This is used to retrieve paginated view of the prevalent objects stored in the prevalent system.
© Copyright 2008 Sans
Pareil Technologies, Inc.
| Field Summary | |
|---|---|
private Class |
cls
The type of prevalent objects to retrieve. |
private long |
end
The ending index (exclusive) of the range to which to fetch objects. |
private long |
start
The starting index (inclusive) of the range from which to fetch objects. |
| Constructor Summary | |
|---|---|
FetchRange(Class cls,
long start,
long end)
Create a new instance of the query for the specified parameters. |
|
| Method Summary | |
|---|---|
protected Collection<P> |
query(S system,
Date timestamp)
Execute the query on the prevalent system and return the prevalent objects that fall in the specified range. |
| Methods inherited from class com.sptci.prevayler.query.AbstractQuery |
|---|
query |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Class cls
private final long start
private final long end
| Constructor Detail |
|---|
public FetchRange(Class cls,
long start,
long end)
cls - The cls value to use.start - The start value to use.end - The end value to use.| Method Detail |
|---|
protected Collection<P> query(S system,
Date timestamp)
throws PrevalentException
query in class AbstractQuery<Collection<P extends PrevalentObject>,S extends PrevalentSystem>system - The prevalent system that is to be acted upon.timestamp - The timestamp for the query.
PrevalentException - If errors are encountered while fetching
the required prevalent objects.
|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||