|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPersistenceStore
Storage for persistent objects.
Method Summary | |
---|---|
Set<String> |
getObjectNames()
Return iterator over the names of all already loaded objects in the storage. |
Collection<IPersistable> |
getObjects()
Return iterator over the already loaded objects in the storage. |
boolean |
load(IPersistable obj)
Load state of an already instantiated persistent object. |
IPersistable |
load(String name)
Load a persistent object with the given name. |
void |
notifyClose()
Notify store that it's being closed. |
boolean |
remove(IPersistable obj)
Delete the passed persistent object. |
boolean |
remove(String name)
Delete the persistent object with the given name. |
boolean |
save(IPersistable obj)
Persist given object. |
Method Detail |
---|
boolean save(IPersistable obj)
obj
- Object to store
true
on success, false
otherwiseIPersistable load(String name)
name
- the name of the object to load
null
if no such object was
foundboolean load(IPersistable obj)
obj
- the object to initializ
boolean remove(IPersistable obj)
obj
- the object to delete
true
if object was persisted and thus can be removed, false
otherwiseboolean remove(String name)
name
- the name of the object to delete
true
if object was persisted and thus can be removed, false
otherwiseSet<String> getObjectNames()
Collection<IPersistable> getObjects()
void notifyClose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |