01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10: package org.mmbase.cache;
11:
12: /**
13: * Query result cache used for getNodes from MMObjectBuilder. So it contains only simple nodes (no
14: * clusternodes).
15: *
16: * The query <em>can</em> contain more than one <code>Step</step>, the queried fields are, however, excactly all
17: * fields of one of the steps (the 'node step').
18: *
19: * @author Michiel Meeuwissen
20: * @version $Id: NodeListCache.java,v 1.8 2008/02/03 17:33:56 nklasens Exp $
21: * @see org.mmbase.module.core.MMObjectBuilder#getNodes
22: * @since MMBase-1.7
23: */
24: public class NodeListCache extends QueryResultCache {
25:
26: // There will be only one list cache, and here it is:
27: private static NodeListCache nodeListCache;
28:
29: public static NodeListCache getCache() {
30: return nodeListCache;
31: }
32:
33: static {
34: nodeListCache = new NodeListCache(300);
35: nodeListCache.putCache();
36: }
37:
38: public String getName() {
39: return "NodeListCache";
40: }
41:
42: public String getDescription() {
43: return "List Results";
44: }
45:
46: /**
47: * Creates the Node list cache.
48: */
49: private NodeListCache(int size) {
50: super(size);
51: }
52:
53: }
|