|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.repositories.NodeRepository
public class NodeRepository
NodeRepository allows storage of and random access to nodes in a
single, unstructured pool. This is an abstract class, and no
actual types of repositories are a part of the db-core. The
applications on top (flashback, scheherazade, etc) have classes
that extend NodeRepository.
This class is only meant to be instantiated and handled by a Document.
Constructor Summary | |
---|---|
NodeRepository(Document doc,
NodeRepositoryConfig config)
Starts a new repository. |
Method Summary | |
---|---|
void |
addNode(GenericNode node,
NodeID nodeID)
|
boolean |
containsNode(NodeID ID)
Does this repository contain a node of a paritcular ID? |
java.util.Enumeration |
getAllNodes()
Return an Enumeration of all nodes in the repository. |
NodeRepositoryID |
getID()
Retrieve this Repository's ID. |
GenericNode |
getNode(NodeID nodeID)
Retrieve a node from the repository. |
NodeID |
getNodeID(GenericNode node)
Retrieve the NodeID of a node if it is in the repository. |
RepositoryType |
getType()
Get the repository type. |
DocumentID |
memberOf()
Retreive the identifier of this repository's parent Document. |
int |
numberOfNodes()
Retrieve the number of nodes in the repository |
void |
removeNode(GenericNode deadNode)
Remove a node from the repository. |
NodeID |
renameNode(NodeID currentID,
NodeID newID)
Rename a node. |
java.lang.StringBuffer |
renderNodeList()
Render a roster of nodes in the repository into a StringBuffer. |
void |
validateInstanceNodes()
Validate the instance nodes in this repository |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeRepository(Document doc, NodeRepositoryConfig config)
Method Detail |
---|
public void addNode(GenericNode node, NodeID nodeID) throws Scheherexception
Scheherexception
public RepositoryType getType()
public void removeNode(GenericNode deadNode) throws Scheherexception
deadNode
- The node to remove.
Scheherexception
public int numberOfNodes()
public NodeRepositoryID getID() throws Scheherexception
Scheherexception
public GenericNode getNode(NodeID nodeID) throws Scheherexception
nodeID
- Identifier of node to retrieve.
Scheherexception
public NodeID renameNode(NodeID currentID, NodeID newID) throws Scheherexception
currentID
- The current ID of the node.newID
- The new ID of the node.
Scheherexception
public NodeID getNodeID(GenericNode node) throws Scheherexception
Scheherexception
public java.util.Enumeration getAllNodes()
public java.lang.StringBuffer renderNodeList()
public DocumentID memberOf()
public boolean containsNode(NodeID ID)
public void validateInstanceNodes() throws Scheherexception
Scheherexception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |