JUMPStore provides methods to access a persistant store. The
abstraction provided by the store is a hierarchical tree structure
(very similar to a file system), where nodes in the tree could contain
other nodes (like a directory in a file system) or contain data
(like files in a file system). Every node in the store is identified
using a unique URI. The root of the store is identified by ".".
The following code shows how the store can be used to save an
application's title through JUMPStoreHandle .
JUMPStoreHandle storeHandle;
JUMPData titleData = new JUMPData("Sample App1");
storeHandle.createNode("./apps/App1"); // cause JUMPStore.createNode
storeHandle.createDataNode("./apps/App1/title", titleData); // cause JUMPStore.createDataNode
All access to the store is controlled by higher level entities like
repositories, through a subclass of JUMPContentStore .
The JUMP content store API limits the URI String
to use the character set of [a--z] + [0--9] for the node name.
The node string should appear in the unique format; the use of "." and ".."
is prohibited except for "." as the first character representing the root.
The String is treated as case insensitive, "/" as a path element separator,
and the use of a trailing "/" character is not allowed for both the list
and the data node (ex. "./a/b/" or "./").
|