|
||||||||||
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 net.jinx.db.XMLHierarchy
public class XMLHierarchy
Lightning-fast, memory resident, persistable Hierarchy implementation. This
class, if given a file, will store it's data to disk when commit() is called.
NOTE: Serializing an instance of this class will cause it to lose
it's connection to it's files and when it is deserialized it will function
like a MemoryHierarchy.
API Stability: Stable.
Constructor Summary | |
---|---|
XMLHierarchy()
Deprecated. use either the SimpleHierarchy or MemoryHierarchy classes in this package instead, depending on if you need commit/rollback ability or not. If all you need is the very basic capability this constructor once provided, use SimpleHierarchy. |
|
XMLHierarchy(java.io.File xmlfile)
Constructs a persistent XMLHierarchy object using xmlfile. |
|
XMLHierarchy(java.io.File xmlfile,
java.io.File logfile)
Constructs a persistent XMLHierarchy object using xmlfile. |
|
XMLHierarchy(java.lang.String xf)
Constructs a persistent XMLHierarchy object using the given name as the name of the file to use. |
|
XMLHierarchy(java.lang.String xf,
java.lang.String lf)
Constructs a persistent XMLHierarchy object using xf as the name of the file to use. |
Method Summary | |
---|---|
void |
close()
Closes this XMLHierarchy. |
void |
commit()
Same as in the super-class, only it also dumps a copy out to disk. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class net.jinx.db.MemoryHierarchy |
---|
getLog, rollback |
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 XMLHierarchy()
public XMLHierarchy(java.lang.String xf)
xf
- the name of the file that stores xml data.public XMLHierarchy(java.lang.String xf, java.lang.String lf)
xf
- the name of the file that stores xml data.lf
- the name of the file that stores crash-recovery data.public XMLHierarchy(java.io.File xmlfile)
xmlfile
- the file that stores xml data.public XMLHierarchy(java.io.File xmlfile, java.io.File logfile)
xmlfile
- the file that stores xml data.logfile
- the file that stores crash-recovery data.Method Detail |
---|
public void close()
close
in class MemoryHierarchy
public void commit()
commit
in class MemoryHierarchy
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |