org.mmbase.cache
Interface Cacheable

All Known Subinterfaces:
NodeQuery, Query, SearchQuery
All Known Implementing Classes:
AbstractQueryWrapper, BasicNodeQuery, BasicQuery, BasicSearchQuery, ModifiableQuery, NodeQueryWrapper, NodeSearchQuery, NodeSearchQuery, QueryWrapper

public interface Cacheable

A Cacheable object contains information on cache policies, which determines whether the object should be cached or not. The code that handles the caching should verify this for a cacheable object.

Since:
MMBase-1.8
Version:
$Id: Cacheable.java 34900 2009-05-01 16:29:42Z michiel $
Author:
Pierre van Rooden
See Also:
CachePolicy

Method Summary
 CachePolicy getCachePolicy()
          Returns the CachePolicy of the object.
 void setCachePolicy(CachePolicy policy)
          Sets the CachePolicy of the query.
 

Method Detail

getCachePolicy

CachePolicy getCachePolicy()
Returns the CachePolicy of the object.

Returns:
the CachePolicy object.

setCachePolicy

void setCachePolicy(CachePolicy policy)
Sets the CachePolicy of the query.

Parameters:
policy - the CachePolicy object.


MMBase 2.0-SNAPSHOT - null