KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > storage > search > ResultNode


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.storage.search;
11
12 import org.mmbase.module.core.*;
13
14
15 /**
16  * A <code>ResultNode</code> is a virtual node, used to represent
17  * the result of executing an arbitrary search query.
18  * <p>
19  * The fields of this node correspond to the fields of the
20  * result of the query. Consequently, and unlike real a real node, a
21  * <code>ResultNode</code> does not necessarilly have number,
22  * owner or otype fields.
23  * <p>
24  * Additionally, the fields of this node can have arbitrary names,
25  * specified by the field aliases in the search query.
26  * <p>
27  * The parent builder of a <code>ResultNode</code> is always a
28  * {@link ResultBuilder ResultBuilder}, that contains info on the node's fields.
29  *
30  * @author Rob van Maris
31  * @version $Id: ResultNode.java,v 1.6 2005/10/07 18:51:00 michiel Exp $
32  * @since MMBase-1.7
33  */

34 public class ResultNode extends VirtualNode {
35     
36     /**
37      * Constructor.
38      *
39      * @param parent The node's parent.
40      */

41     public ResultNode(ResultBuilder parent) {
42         super(parent);
43     }
44     
45     // javadoc is inherited
46
public int getDBType(String JavaDoc fieldName) {
47         return getBuilder().getDBType(fieldName);
48     }
49
50 }
51
Popular Tags