|
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.Fetch<P,S>
public class Fetch<P extends PrevalentObject,S extends PrevalentSystem>
The query for retrieving a prevalent object from the system identified
by its PrevalentObject.objectId field.
© Copyright 2008 Sans Pareil
Technologies, Inc.
| Field Summary | |
|---|---|
private Class |
cls
The type of object that is to be retrieved. |
private Object |
objectId
The PrevalentObject.objectId to use to
fetch the prevalent object instance. |
| Constructor Summary | |
|---|---|
Fetch(Class cls,
Object objectId)
Create a new instance of the query for fetching a prevalent object the specified object id. |
|
| Method Summary | |
|---|---|
protected P |
query(S system,
Date timestamp)
Execute the query on the prevalent system and return the prevalent object uniquely identified by the specified objectId. |
| 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 Object objectId
PrevalentObject.objectId to use to
fetch the prevalent object instance.
| Constructor Detail |
|---|
public Fetch(Class cls,
Object objectId)
cls - The cls to use.objectId - The objectId to use.| Method Detail |
|---|
protected P query(S system,
Date timestamp)
throws PrevalentException
objectId.
query in class AbstractQuery<P extends PrevalentObject,S extends PrevalentSystem>system - The prevalent system that is to be acted upon.timestamp - The timestamp for the query.
null if no
object with the specified objectId exists in the prevalent
system.
PrevalentException - If errors are encountered while fetching
the required prevalent object.
|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||