|
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.PrimaryStorage
public class PrimaryStorage
A class used as the primary storage mechanism for persisting prevalent objects in the prevalent system.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
private static long |
serialVersionUID
|
private Map<Object,PrevalentObject> |
storage
The map used as the primary storage container. |
| Constructor Summary | |
|---|---|
PrimaryStorage()
|
|
| Method Summary | |
|---|---|
void |
add(PrevalentObject object)
Add the specified prevalent object to the primary storage. |
Collection<PrevalentObject> |
get(long start,
long end)
Fetch the prevalent objects in the specified range of data. |
PrevalentObject |
get(Object oid)
Return the prevalent object identified by its object id from the store. |
boolean |
isStored(PrevalentObject object)
Check to see if the specified object exists in storage. |
void |
remove(PrevalentObject object)
Remove the specified prevalent object from the primary storage. |
int |
size()
Return the total number of prevalent objects in storage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private Map<Object,PrevalentObject> storage
| Constructor Detail |
|---|
public PrimaryStorage()
| Method Detail |
|---|
public void add(PrevalentObject object)
object - The prevalent object to store in the system.public void remove(PrevalentObject object)
object - The prevalent object to remove from the system.public boolean isStored(PrevalentObject object)
object - The prevalent object to check for.
true if the object exists in the store.public int size()
storage.
public PrevalentObject get(Object oid)
oid - The object id to use to retrieve the prevalent object.
null if no
matching object exists in the store.
public Collection<PrevalentObject> get(long start,
long end)
start - The starting index (inclusive) from which to fetch the
prevalent objects.end - The ending index (exclusive) to which to fetch the
prevalent objects.
|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||