|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.storage.persistent.PersistentStore
public class PersistentStore
| Constructor Summary | |
|---|---|
PersistentStore(Storage store,
java.lang.String fname,
boolean clear)
Create a PersistentStore |
|
| Method Summary | |
|---|---|
int |
add(Persistent obj)
Add an object to the PersistentStore |
void |
clear()
Clear all ojects in the PersistentStore |
void |
close()
Close the PersistentStore |
void |
compact()
Compact the PersistentStore This is currently NOT implemented but will be needed |
void |
delete(int index)
Delete an object in the PersistentStore |
void |
get(int index,
Persistent obj)
Get an object in the PersistentStore |
void |
open()
Open a new PersistentStore |
void |
print(Persistent obj)
Pretty print the PersistentStore, mostly for debugging |
void |
set(int index,
Persistent obj)
Change an object in the PersistentStore to a new object |
int |
size()
Get the size of the PersistentStore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistentStore(Storage store,
java.lang.String fname,
boolean clear)
store - the Storage to usefname - the filename for Storage to useclear - to create a new file or append to an existing file| Method Detail |
|---|
public void open()
public void close()
public void clear()
public void compact()
public int add(Persistent obj)
obj - the Object that should be added
public void set(int index,
Persistent obj)
index - the index of the old objectobj - the object that should be added
public void get(int index,
Persistent obj)
index - the index of the objectobj - a ref to the objectpublic void delete(int index)
index - the index of the objectpublic int size()
public void print(Persistent obj)
obj - need a empty object as an template
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||