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.storage.search;
11:
12: import org.mmbase.module.core.*;
13:
14: /**
15: * A <code>ResultNode</code> is a virtual node, used to represent
16: * the result of executing an arbitrary search query.
17: * <p>
18: * The fields of this node correspond to the fields of the
19: * result of the query. Consequently, and unlike real a real node, a
20: * <code>ResultNode</code> does not necessarilly have number,
21: * owner or otype fields.
22: * <p>
23: * Additionally, the fields of this node can have arbitrary names,
24: * specified by the field aliases in the search query.
25: * <p>
26: * The parent builder of a <code>ResultNode</code> is always a
27: * {@link ResultBuilder ResultBuilder}, that contains info on the node's fields.
28: *
29: * @author Rob van Maris
30: * @version $Id: ResultNode.java,v 1.7 2007/12/06 08:13:36 michiel Exp $
31: * @since MMBase-1.7
32: */
33: public class ResultNode extends VirtualNode {
34:
35: /**
36: * Constructor.
37: *
38: * @param parent The node's parent.
39: */
40: public ResultNode(ResultBuilder parent) {
41: super (parent);
42: }
43:
44: // javadoc is inherited
45: public int getDBType(String fieldName) {
46: return getBuilder().getDBType(fieldName);
47: }
48:
49: }
|