|
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.FetchByIndex<P,S>
public class FetchByIndex<P extends Collection<PrevalentObject>,S extends PrevalentSystem>
A query used to fetch prevalent objects that are indexed by the specified field.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
private String |
field
The name of the indexed field in the prevalent objects to query. |
private Class |
type
The type of the prevalent object that is to be queried. |
private Object |
value
The value of the indexed field to use to query the system. |
| Constructor Summary | |
|---|---|
FetchByIndex(Class type,
String field,
Object value)
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 String field
private final Object value
| Constructor Detail |
|---|
public FetchByIndex(Class type,
String field,
Object value)
type - The type to use for the query.field - The field to use for the query.value - The value to use for the query.| 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.
|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||