org.apache.cocoon.components.store
Interface Store
- All Superinterfaces:
- org.apache.avalon.framework.component.Component
- All Known Implementing Classes:
- FilesystemStore, MRUMemoryStore, MemoryStore
- public interface Store
- extends org.apache.avalon.framework.component.Component
- Version:
- CVS $Revision: 1.1.1.1.2.5 $ $Date: 2001/10/11 08:56:09 $
- Author:
- Federico Barbieri
(Betaversion Productions), Stefano Mazzocchi
(Apache Software Foundation), Pierpaolo Fumagalli
(Apache Software Foundation, Exoffice Technologies)
Field Summary |
static java.lang.String |
ROLE
|
Method Summary |
boolean |
containsKey(java.lang.Object key)
Indicates if the given key is associated to a contained object. |
void |
free()
|
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 |
keys()
Returns the list of used keys as an Enumeration of Objects. |
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. |
ROLE
public static final java.lang.String ROLE
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)
throws java.io.IOException
- 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)
throws java.io.IOException
- 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.
free
public void free()
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.
keys
public java.util.Enumeration keys()
- Returns the list of used keys as an Enumeration of Objects.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.