org.apache.cocoon.store
Interface Store

All Known Implementing Classes:
MemoryStore

public interface Store
extends Actor

This is the interface that a generic object storage system must implement.

Version:
$Revision: 1.4 $ $Date: 1999/09/13 00:23:29 $
Author:
Stefano Mazzocchi

Method Summary
 boolean containsKey(java.lang.Object key)
          Indicates if the given key is associated to a contained object.
 java.lang.Object get(java.lang.Object key)
          Get the object associated to the given unique key.
 void hold(java.lang.Object key, java.lang.Object value)
          Holds the given object in a volatile state.
 java.util.Enumeration list()
          Returns the list of used keys.
 void remove(java.lang.Object key)
          Remove the object associated to the given key.
 void store(java.lang.Object key, java.lang.Object value)
          Store the given object in a persistent state.
 
Methods inherited from interface org.apache.cocoon.framework.Actor
init
 

Method Detail

get

public java.lang.Object get(java.lang.Object key)
Get the object associated to the given unique key.

store

public void store(java.lang.Object key,
                  java.lang.Object value)
Store the given object in a persistent state. It is up to the caller to ensure that the key has a persistent state across different JVM executions.

hold

public void hold(java.lang.Object key,
                 java.lang.Object value)
Holds the given object in a volatile state. This means the object store will discard held objects if the virtual machine is restarted or some error happens.

remove

public void remove(java.lang.Object key)
Remove the object associated to the given key.

containsKey

public boolean containsKey(java.lang.Object key)
Indicates if the given key is associated to a contained object.

list

public java.util.Enumeration list()
Returns the list of used keys.


Copyright 1999 Java Apache Project. All Rights Reserved.