|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectStore<T extends java.io.Serializable>
Method Summary | |
---|---|
boolean |
contains(java.io.Serializable key)
Check whether the given Object is already registered with this store. |
T |
remove(java.io.Serializable key)
Remove the object with key. |
T |
retrieve(java.io.Serializable key)
Retrieve the given Object. |
void |
store(java.io.Serializable key,
T value)
Store the given Object. |
Method Detail |
---|
boolean contains(java.io.Serializable key) throws ObjectStoreException
key
- the identifier of the object to check
true
if the key is stored or false
no value was stored for
the key.
ObjectStoreException
- if the given key is null
.
ObjectStoreNotAvaliableException
- if any implementation-specific error occured, e.g.
when the store is not availablevoid store(java.io.Serializable key, T value) throws ObjectStoreException
key
- the identifier for value
value
- the Object to store with key
ObjectStoreException
- if the given key cannot be stored or is null
.
ObjectStoreNotAvaliableException
- if the store is not available or any other
implementation-specific error occured.
ObjectAlreadyExistsException
- if an attempt is made to store an object for a key
that already has an object associated.T retrieve(java.io.Serializable key) throws ObjectStoreException
key
- the identifier of the object to retrieve.
ObjectDoesNotExistException
.
ObjectStoreException
- if the given key is null
.
ObjectStoreNotAvaliableException
- if the store is not available or any other
implementation-specific error occured.
ObjectDoesNotExistException
- if no value for the given key was previously stored.T remove(java.io.Serializable key) throws ObjectStoreException
key
- the identifier of the object to remove.
ObjectStoreException
- if the given key is null
or if the store is not
available or any other implementation-specific error occured
ObjectDoesNotExistException
- if no value for the given key was previously stored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |