|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.database.PrimitiveManager | +--net.aerith.misao.database.PrimitiveMemoryManager
The PrimitiveMemoryManager
represents a database
manager which covers one folder containing XML elements of the same
type.
The elements are kept on memory and stored in the hash table. In fact, only one holder of the XML elements is stored in the hash table.
Field Summary | |
protected java.util.Hashtable |
hash_folder
The hash table of the folder. |
protected XmlDBHolder |
holder
The holder of the XML element. |
protected static java.lang.String |
holder_key
The key of the hash table to access to the holder. |
Fields inherited from class net.aerith.misao.database.PrimitiveManager |
holder_class,
record_class |
Constructor Summary | |
PrimitiveMemoryManager(java.util.Hashtable hash_folder,
XmlDBHolder holder_class,
XmlDBRecord record_class)
Constructs a PrimitiveMemoryManager in the
specified folder, which consists of the XML elements of the
specified class. |
Method Summary | |
void |
addElement(XmlDBRecord element)
Adds the specified XML element into the database. |
void |
addElements(java.util.Vector list)
Adds the XML elements in the specified list into the database. |
XmlDBRecord |
deleteElement(java.lang.String id)
Deletes the element of the specified ID. |
void |
deleteElements(java.util.Hashtable hash)
Deletes the elements in the specified hash table. |
XmlDBAccessor |
getAccessor()
Gets the sequential accessor to the elements in the database. |
XmlDBHolder |
getHolder()
Gets the holder of the XML elements. |
XmlDBRecord |
setElement(XmlDBRecord element)
Adds or updates the specified XML element into the database. |
Methods inherited from class net.aerith.misao.database.PrimitiveManager |
createHolder,
getElement |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.util.Hashtable hash_folder
protected XmlDBHolder holder
protected static final java.lang.String holder_key
Constructor Detail |
public PrimitiveMemoryManager(java.util.Hashtable hash_folder, XmlDBHolder holder_class, XmlDBRecord record_class)
PrimitiveMemoryManager
in the
specified folder, which consists of the XML elements of the
specified class.hash_folder
- the hash table of the folder.holder_class
- the holder class object of the XML records.record_class
- the class object of the XML records.Method Detail |
public XmlDBHolder getHolder()
public void addElement(XmlDBRecord element) throws java.io.IOException
element
- the XML element.public void addElements(java.util.Vector list) throws java.io.IOException
list
- the list of XML elements.public XmlDBRecord setElement(XmlDBRecord element) throws java.io.IOException
element
- the XML element.public XmlDBRecord deleteElement(java.lang.String id) throws java.io.IOException
id
- the ID.public void deleteElements(java.util.Hashtable hash) throws java.io.IOException
hash
- the hash table whose keys are IDs of the elements
to be deleted.public XmlDBAccessor getAccessor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |