|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XMLStore<R extends Reference>
An XMLStore provides facilities for persisting semi-structured
data in the form of Nodes. Once persisted, data can be retrieved
again using a Reference.
An XMLStore may assume that load(Reference)s
are only applied to References produced by the store
itself. However, it likely will not check that this is case. Indeed,
many XMLStore decorators will work without any problems even if
this is not case, though this is not guaranteed.
| Method Summary | |
|---|---|
void |
close()
The method is used to let the XMLStore properly commit all
data to the underlying ressource, release resources, and so
forth. |
NameServer<R> |
getNameServer()
Returns the NameServer with the largest scope associated
with this XMLStore. |
Node |
load(R ref)
Loads XML data identified by a reference. |
R |
save(Node node)
Saves the XML data represented by the specified Node. |
| Method Detail |
|---|
R save(Node node)
throws IOException
Node.
The method returns a unique location independent
reference, which can be used to load the node, when needed.
node - representing XML data in the form of semi-structured tree data
IOException - if an error occurs during disk, network, etc access
Node load(R ref)
throws IOException,
UnknownReferenceException
Nodes.
ref - the Reference to the data
IOException - if an error occurs during disk, network, etc access
UnknownReferenceException - if the data referenced is not stored
in the XMLStore or the Reference is of
a type not supported by the XMLStoreNameServer<R> getNameServer()
NameServer with the largest scope associated
with this XMLStore. That is, an XMLStore that
stores data in a distributed setting should return a global
NameServer for the XMLStore network in which it participates
and not a local NameServer (even though it may also have
access to such an entity).
void close()
throws IOException
XMLStore properly commit all
data to the underlying ressource, release resources, and so
forth. Once close has been issued on an XMLStore, the store
is no longer available for handling requests. Any subsequent
request to the store will result in an exception being
thrown. An XMLStore implementation has to ensure that
this happens.
IOException - if it is not possible to properly close the store
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||