|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.dbxml.server.SimpleConfigurable
|
+--org.dbxml.core.filer.MemFiler
MemFiler is an In-Memory Filer implementation for dbXML. MemFiler can be used for temporary collections and caching. It's basically a layering on top of HashMap.
| Constructor Summary | |
MemFiler()
|
|
MemFiler(java.util.Map hashTable)
|
|
MemFiler(java.util.Map hashTable,
boolean readOnly)
|
|
| Method Summary | |
boolean |
close()
close closes the DBObject |
boolean |
create()
create creates a new DBObject and any associated resources for the new DBObject, such as disk files, etc. |
boolean |
deleteRecord(Key key)
deleteRecord removes a Record from the Filer based on the specified Key. |
boolean |
drop()
drop instructs the DBObjectimplementation to remove itself from existence. |
boolean |
exists()
exists returns whether or not a physical representation of this DBObject actually exists. |
java.lang.String |
getName()
|
long |
getRecordCount()
getRecordCount returns the number of Records in the Filer. |
RecordSet |
getRecordSet()
getRecordSet returns a RecordSet object for the current Filer. |
boolean |
isOpened()
isOpened returns whether or not the DBObject is opened for business. |
boolean |
open()
open opens the DBObject |
Record |
readRecord(Key key)
readRecord returns a Record from the Filer based on the specified Key. |
void |
setCollection(Collection collection)
setCollection tells the Filer who its parent is. |
boolean |
writeRecord(Key key,
Value value)
writeRecord writes a Value to the Filer based on the specified Key. |
| Methods inherited from class org.dbxml.server.SimpleConfigurable |
getConfig, setConfig |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.dbxml.server.Configurable |
getConfig, setConfig |
| Constructor Detail |
public MemFiler()
public MemFiler(java.util.Map hashTable,
boolean readOnly)
public MemFiler(java.util.Map hashTable)
| Method Detail |
public void setCollection(Collection collection)
FilersetCollection in interface Filerorg.dbxml.core.filer.Filercollection - The owner Collectionpublic java.lang.String getName()
getName in interface org.dbxml.server.Namedpublic boolean create()
create in interface DBObjectpublic boolean open()
open in interface DBObjectpublic boolean isOpened()
isOpened in interface DBObjectpublic boolean exists()
DBObjectexists in interface DBObjectorg.dbxml.core.DBObjectpublic boolean drop()
drop in interface DBObjectpublic boolean close()
close in interface DBObject
public Record readRecord(Key key)
throws DBException
readRecord in interface Filerkey - The Record's Key
public boolean writeRecord(Key key,
Value value)
throws DBException
writeRecord in interface Filerkey - The Record's Keyvalue - The Record's Value
public boolean deleteRecord(Key key)
throws DBException
deleteRecord in interface Filerkey - The Record's Key
public long getRecordCount()
throws DBException
getRecordCount in interface Filer
public RecordSet getRecordSet()
throws DBException
getRecordSet in interface Filer
|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||