anthill.storage
Interface QueryStorage

All Superinterfaces:
Clearable, GenericStorage, ResourceManager, Storage
All Known Implementing Classes:
CmsStorage, LRUQueryStorage, UrlStorage, UrlStorage, UrlStorage

public interface QueryStorage
extends GenericStorage

Implementation of an LRU based query storage. This is a wrapper class for storing resources based on using a query to access the resources. It inherits all methods from the LRUKeyStorage, but adds a method to retrieve resources based on a query.

Version:
$Revision: 1.4 $
Author:
Hein Meling

Field Summary
 
Fields inherited from interface anthill.storage.Storage
DOC_STORAGE, PHR_STORAGE, URL_STORAGE
 
Method Summary
 Resource[] getResources(Object query)
          Return the resource associated with the specified query.
 
Methods inherited from interface anthill.storage.GenericStorage
addResource, containsResource, getCapacity, getRemainingCapacity, getResource, iterator, removeResource
 
Methods inherited from interface anthill.util.Clearable
clear
 

Method Detail

getResources

public Resource[] getResources(Object query)
Return the resource associated with the specified query.

Parameters:
query - whose associated resource to retreive.
Returns:
resources found in the storage with which the specified query matched.