|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HierarchicalDataStore
HierarchicalDataStore.java
Classes wishing to persistently store or load hierarchical data need to implement this interface. It is assumed that hierarchical data items, i.e. items that are linked with a 1:n parent-child relation, are identified each with a unique id.
| Method Summary | |
|---|---|
Object |
createItem(HierarchicalItem item)
create a new item in the data store |
Object |
deleteItem(Object id)
delete the item with the given id from the data store |
Vector<HierarchicalItem> |
getChildItems(Object id)
get all child items of a given item |
HierarchicalItem |
getItem(Object id)
get the item with the given id |
Vector<HierarchicalItem> |
getRootItems()
get all root items in the data store, i.e. all top level items in the item hierarchy that have no parent |
HierarchicalItem |
putItem(HierarchicalItem item)
store an item with the given id |
| Method Detail |
|---|
HierarchicalItem getItem(Object id)
throws StorageException
id - the id of the item to get
StorageException
Vector<HierarchicalItem> getChildItems(Object id)
throws StorageException
id - the id of the item to get child items for
StorageException
Vector<HierarchicalItem> getRootItems()
throws StorageException
StorageException
HierarchicalItem putItem(HierarchicalItem item)
throws StorageException
item - the item to store
StorageException
Object createItem(HierarchicalItem item)
throws StorageException
item - the new item to create
StorageException
Object deleteItem(Object id)
throws StorageException
id -
StorageException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||