[Package Index] [Index] [Users' Guide] [SVAPI Home Page]

Class COM.novell.SVAPI.MemoryDataStore

public class MemoryDataStore implements DataStore

This class implements the DataStore interface. Applications which have simple datastore requirements may use this class instead of implementing their own DataStore. This implementation maintains all data in memory and cannot be shared across address spaces.



Constructor Index

MemoryDataStore()
Creates an empty DataStore.
MemoryDataStore(URL)
Creates a DataStore from the contents of a URL.


Method Index

createAndLock(String)
Creates a new record.
deleteRecord(String)
Deletes a record.
getAllNames()
Returns the names of all records in this DataStore.
load(URL)
Loads the DataStore from a URL.
lockRecord(String)
This function does nothing, since this DataStore cannot be shared across processes.
lockRecords(String[])
This function does nothing, since this DataStore cannot be shared across processes.
recordExists(String)
Returns true if the record exists.
retrieveRecord(String)
Retrieves a record.
save()
Saves the DataStore.
saveAs(URL)
Saves the DataStore to a URL.
storeRecord(String, byte[])
Stores a record.
unlockRecord(String)
This function does nothing, since this DataStore cannot be shared across processes.
unlockRecords(String[])
This function does nothing, since this DataStore cannot be shared across processes.


Constructors



MemoryDataStore

public MemoryDataStore()
Creates an empty DataStore.


MemoryDataStore

public MemoryDataStore(URL URL)
Creates a DataStore from the contents of a URL.
Exceptions:


Methods



load

public synchronized void load(URL URL)
Loads the DataStore from a URL.
Exceptions:


save

public synchronized void save()
Saves the DataStore.
Exceptions:


saveAs

public void saveAs(URL URL)
Saves the DataStore to a URL.
Exceptions:


storeRecord

public void storeRecord(String Name, byte Data[])
Exceptions:


retrieveRecord

public byte[] retrieveRecord(String Name)
Retrieves a record.
Exceptions:


deleteRecord

public boolean deleteRecord(String Name)
Deletes a record.
Exceptions:


createAndLock

public synchronized void createAndLock(String Name)
Creates a new record.
Exceptions:


recordExists

public boolean recordExists(String Name)
Returns true if the record exists.
Exceptions:


getAllNames

public RemoteList getAllNames()
Returns the names of all records in this DataStore.
Exceptions:


lockRecord

public void lockRecord(String Names)
This function does nothing, since this DataStore cannot be shared across processes.


unlockRecord

public void unlockRecord(String Names)
This function does nothing, since this DataStore cannot be shared across processes.


lockRecords

public void lockRecords(String Names[])
This function does nothing, since this DataStore cannot be shared across processes.


unlockRecords

public void unlockRecords(String Names[])
This function does nothing, since this DataStore cannot be shared across processes.



[Package Index] [Index] [Users' Guide] [SVAPI Home Page]

rwille@novell.com