|
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<P,S>
com.sptci.prevayler.query.FetchByIndices<P,S>
public class FetchByIndices<P extends Collection<PrevalentObject>,S extends PrevalentSystem>
A query used to fetch prevalent instances by the specified indexed fields.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Nested Class Summary | |
|---|---|
static class |
FetchByIndices.AggregationType
An enumeration used to indicate whether the query results should represent a union or intersection. |
| Field Summary | |
|---|---|
private Map<String,?> |
parameters
The map of parameters to use to filter the prevalent instances. |
private FetchByIndices.AggregationType |
resultType
The aggregation type to use for the results of the query. |
private Class |
type
The type of the prevalent object that is to be queried. |
| Constructor Summary | |
|---|---|
FetchByIndices(Class type,
Map<String,?> parameters,
FetchByIndices.AggregationType resultType)
Create a new instance of the query with the specified values. |
|
| Method Summary | |
|---|---|
protected P |
query(S system,
Date timestamp)
Execute the query on the prevalent system and return the collection of |
| 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 type
private final Map<String,?> parameters
private final FetchByIndices.AggregationType resultType
| Constructor Detail |
|---|
public FetchByIndices(Class type,
Map<String,?> parameters,
FetchByIndices.AggregationType resultType)
type - The type to use for the query.parameters - The map of fields in the prevalent class to use
to fetch matching objects.resultType - The aggregation type to use for the results.| Method Detail |
|---|
protected P query(S system,
Date timestamp)
throws PrevalentException
query in class AbstractQuery<P extends Collection<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 querying
the system.PrevalentSystem.fetchUnion(Class, java.util.Map),
PrevalentSystem.fetchIntersection(Class, java.util.Map)
|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||