|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.db.Hierarchy net.jinx.db.SimpleHierarchy net.jinx.db.MemoryHierarchy
public class MemoryHierarchy
Extension of SimpleHierarchy that adds functional commit() and rollback()
methods that store and retrieve data from an in-memory backup.
API Stability: Alpha.
Constructor Summary | |
---|---|
MemoryHierarchy()
Constructs a MemoryHierarchy object. |
|
MemoryHierarchy(java.io.File file)
Utility constructor to read in the contents of an XML File. |
Method Summary | |
---|---|
void |
close()
Does nothing. |
void |
commit()
Commits changes to the commit/rollback log. |
protected Hierarchy |
getLog()
Provides the Hierarchy that is used to store the commit/rollback log. |
void |
rollback()
Rolls this Hierarchy back to the last committed state. |
Methods inherited from class net.jinx.db.SimpleHierarchy |
---|
attributes, clearAttributes, clearNodes, createNode, deleteNode, getAttributeObject, getNode, hasAttribute, nodes, removeAttribute, setAttributeObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryHierarchy()
public MemoryHierarchy(java.io.File file)
file
- the File object pointing to the file to parse.
HierarchyException
- if an error occurs while reading the file.Method Detail |
---|
protected Hierarchy getLog()
public void close()
close
in class SimpleHierarchy
public void commit()
commit
in class SimpleHierarchy
public void rollback()
rollback
in class SimpleHierarchy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |