org.apache.cocoon.components.store
Interface Store

All Superinterfaces:
Component
All Known Implementing Classes:
FilesystemStore, MemoryStore, MRUMemoryStore

Deprecated. Use the Avalon Excalibur Store instead.

public interface Store
extends Component

Version:
CVS $Id: Store.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Federico Barbieri (Betaversion Productions), Stefano Mazzocchi (Apache Software Foundation), Pierpaolo Fumagalli (Apache Software Foundation)

Field Summary
static String PERSISTENT_CACHE
          Deprecated.  
static String ROLE
          Deprecated.  
static String TRANSIENT_CACHE
          Deprecated.  
 
Method Summary
 boolean containsKey(Object key)
          Deprecated. Indicates if the given key is associated to a contained object.
 void free()
          Deprecated.  
 Object get(Object key)
          Deprecated. Get the object associated to the given unique key.
 void hold(Object key, Object value)
          Deprecated. Holds the given object in a volatile state.
 Enumeration keys()
          Deprecated. Returns the list of used keys as an Enumeration of Objects.
 void remove(Object key)
          Deprecated. Remove the object associated to the given key.
 int size()
          Deprecated. Returns count of the objects in the store, or -1 if could not be obtained.
 void store(Object key, Object value)
          Deprecated. Store the given object in a persistent state.
 

Field Detail

ROLE

static final String ROLE
Deprecated. 
See Also:
Constant Field Values

TRANSIENT_CACHE

static final String TRANSIENT_CACHE
Deprecated. 
See Also:
Constant Field Values

PERSISTENT_CACHE

static final String PERSISTENT_CACHE
Deprecated. 
See Also:
Constant Field Values
Method Detail

get

Object get(Object key)
Deprecated. 
Get the object associated to the given unique key.


store

void store(Object key,
           Object value)
           throws IOException
Deprecated. 
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.

Throws:
IOException

hold

void hold(Object key,
          Object value)
          throws IOException
Deprecated. 
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.

Throws:
IOException

free

void free()
Deprecated. 

remove

void remove(Object key)
Deprecated. 
Remove the object associated to the given key.


containsKey

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


keys

Enumeration keys()
Deprecated. 
Returns the list of used keys as an Enumeration of Objects.


size

int size()
Deprecated. 
Returns count of the objects in the store, or -1 if could not be obtained.



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.