|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Store<T>
Entity Store Style Interface to store and retrieve data of type T.
Method Summary | |
---|---|
URI |
getLocation(Handle handle)
Fixed location for a resource that has been stored before. |
T |
load(Handle handle)
Load a T after (successfully) stored it before. |
Handle |
store(T inp)
Read incoming object of type T (for example an InputSteam) |
Method Detail |
---|
Handle store(T inp) throws IOException
inp
- object to be stored. Implementations are usually bound to a certain T
IOException
- in case incoming object cannot be read (if it involves IO)T load(Handle handle) throws IOException
handle
- identifier that has been returned from a previous srore call.
IOException
- if loading resource involves IO, things can always go wrong.URI getLocation(Handle handle) throws IOException
handle
- must refer to a previously stored object.
IOException
- if IO is involved, things may go mad.
UnsupportedOperationException
- implementation may not support this.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |