Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lutris.util
Interface PersistentStore  view PersistentStore download PersistentStore.java

All Known Implementing Classes:
FilePersistentStore

public interface PersistentStore

Persitent storage interface.


Method Summary
 void delete(java.lang.String key)
          Method to delete a a key.
 boolean exists(java.lang.String key)
          Method to query if an an object is stored.
 java.util.Enumeration keys()
          Method that returns an enumration of the keys of this persistent store.
 java.lang.Object remove(java.lang.String key)
          Method to simultaneously retrieve and remove an object from persistent store.
 java.lang.Object retrieve(java.lang.String key)
          Method to retrieve a stored object.
 void store(java.lang.String key, java.io.Serializable obj)
          Method to store and object (persistent).
 

Method Detail

store

public void store(java.lang.String key,
                  java.io.Serializable obj)
           throws PersistentStoreException
Method to store and object (persistent).


retrieve

public java.lang.Object retrieve(java.lang.String key)
                          throws PersistentStoreException
Method to retrieve a stored object.


remove

public java.lang.Object remove(java.lang.String key)
                        throws PersistentStoreException
Method to simultaneously retrieve and remove an object from persistent store. If an object is not stored under key, then null is returned.


delete

public void delete(java.lang.String key)
            throws PersistentStoreException
Method to delete a a key. Any objects stored under key are also removed. If key is not defined, then this method does nothing.


exists

public boolean exists(java.lang.String key)
               throws PersistentStoreException
Method to query if an an object is stored.


keys

public java.util.Enumeration keys()
                           throws PersistentStoreException
Method that returns an enumration of the keys of this persistent store.