|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectStore
TODO
Method Summary | |
---|---|
boolean |
containsObject(String id)
Check whether the given Object is already registered with this store. |
boolean |
removeObject(String id)
|
Object |
retrieveObject(String id)
Retrieve the given Object. |
boolean |
storeObject(String id,
Object item)
Store the given Object. |
Method Detail |
---|
boolean containsObject(String id) throws Exception
id
- the ID to check
true
if the ID is stored or false
if it could
not be found
IllegalArgumentException
- if the given ID is null
Exception
- if any implementation-specific error occured, e.g. when the store
is not availableboolean storeObject(String id, Object item) throws Exception
id
- the ID to storeitem
- the Object to store with the id
true
if the ID was stored properly, or false
if it already existed
IllegalArgumentException
- if the given ID cannot be stored or is
null
Exception
- if the store is not available or any other
implementation-specific error occuredObject retrieveObject(String id) throws Exception
id
- the ID to store
IllegalArgumentException
- if the given ID cannot be stored or is
null
Exception
- if the store is not available or any other
implementation-specific error occuredboolean removeObject(String id) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |