org.mmbase.storage.search
Class ResultNode

java.lang.Object
  extended byorg.mmbase.module.core.MMObjectNode
      extended byorg.mmbase.module.core.VirtualNode
          extended byorg.mmbase.storage.search.ResultNode
All Implemented Interfaces:
SizeMeasurable

public class ResultNode
extends VirtualNode

A ResultNode is a virtual node, used to represent the result of executing an arbitrary search query.

The fields of this node correspond to the fields of the result of the query. Consequently, and unlike real a real node, a ResultNode does not necessarilly have number, owner or otype fields.

Additionally, the fields of this node can have arbitrary names, specified by the field aliases in the search query.

The parent builder of a ResultNode is always a ResultBuilder, that contains info on the node's fields.

Since:
MMBase-1.7
Version:
$Id: ResultNode.java,v 1.5 2003/03/10 11:50:50 pierre Exp $
Author:
Rob van Maris

Field Summary
 
Fields inherited from class org.mmbase.module.core.MMObjectNode
alias, changed, initializing, parent, prefix, properties, relatedCache, relationsCache, VALUE_NULL, VALUE_SHORTED, values, virtual
 
Constructor Summary
ResultNode(ResultBuilder parent)
          Constructor.
 
Method Summary
 int getDBType(java.lang.String fieldName)
          Returns the DBType of a field.
 
Methods inherited from class org.mmbase.module.core.VirtualNode
commit, getAge, getRelationCount, getRelationCount, getRelations, hasRelations, insert
 
Methods inherited from class org.mmbase.module.core.MMObjectNode
clearChanged, commit, defaultEquals, delPropertiesCache, delRelationsCache, equals, finish, getAlias, getAllRelations, getBooleanValue, getBuilder, getByteSize, getByteSize, getByteValue, getChanged, getContext, getDBState, getDoubleValue, getFloatValue, getFunctionValue, getGUIIndicator, getIntegerValue, getIntValue, getLongValue, getName, getNodeValue, getNumber, getOType, getPossibleContexts, getProperties, getProperty, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelationCacheHits, getRelationCacheMiss, getRelationNodes, getRelations, getRelations, getStringValue, getTableName, getValue, getValues, getXMLValue, hashCode, insert, insertDone, isChanged, isVirtual, preEdit, putProperty, remove, removeRelations, retrieveValue, sendFieldChangeSignal, setAlias, setContext, setValue, setValue, setValue, setValue, setValue, setValue, start, storeValue, testValidData, toString, toXML, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultNode

public ResultNode(ResultBuilder parent)
Constructor.

Parameters:
parent - The node's parent.
Method Detail

getDBType

public int getDBType(java.lang.String fieldName)
Description copied from class: MMObjectNode
Returns the DBType of a field.

Overrides:
getDBType in class MMObjectNode
Parameters:
fieldName - the name of the field which' type to return
Returns:
the field's DBType


MMBase build 1.7.4.20050922