ch.nix.ert.datastore.berkeleyje
Class DataStore
java.lang.Object
ch.nix.ert.datastore.berkeleyje.DataStore
- All Implemented Interfaces:
- DataStoreInterface
- public class DataStore
- extends java.lang.Object
- implements DataStoreInterface
- Author:
- michi
TODO Edit this text for a better description Responsible for a namespace.
TODO Extend this class to allow range queries and browsing!
During first performance testing, this class should allow to store more than
4000 objects per second (variance around 4000 - 8000) Each namespace holds
it's own database
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataStore
public DataStore()
openDatabase
public void openDatabase()
closeDatabase
public void closeDatabase()
finalize
protected void finalize()
throws java.lang.Throwable
- Throws:
java.lang.Throwable
getNextDataItem
public DataItem getNextDataItem(DataItem data)
- Specified by:
getNextDataItem
in interface DataStoreInterface
getPreviousDataItem
public DataItem getPreviousDataItem(DataItem data)
- Specified by:
getPreviousDataItem
in interface DataStoreInterface
getDataItem
public DataItem getDataItem(DataItem data)
- Specified by:
getDataItem
in interface DataStoreInterface
putDataItem
public boolean putDataItem(DataItem data)
- Specified by:
putDataItem
in interface DataStoreInterface
deleteDataItem
public boolean deleteDataItem(DataItem data)
- Specified by:
deleteDataItem
in interface DataStoreInterface
getDbSize
public int getDbSize()
- Specified by:
getDbSize
in interface DataStoreInterface
getDatabaseId
public java.lang.String getDatabaseId()
- If database is still closed,
databaseId
is null
If database is opened and running, databaseId
contains an
unique Id (namespace like "ch.nix.accountDB")
- Specified by:
getDatabaseId
in interface DataStoreInterface
- Returns:
- Returns the databaseId.
setDatabaseId
public void setDatabaseId(java.lang.String id)
- Specified by:
setDatabaseId
in interface DataStoreInterface
Copyright © 2004 Michael Kussmaul - Revision: 183 - Date: 2004-11-16T15:42:13.763853Z