org.mmbase.storage.search
Class ResultNode

Package class diagram package ResultNode
java.lang.Object
  extended by org.mmbase.module.core.MMObjectNode
      extended by org.mmbase.module.core.VirtualNode
          extended by org.mmbase.storage.search.ResultNode
All Implemented Interfaces:
Serializable, Cloneable, PublicCloneable<MMObjectNode>, 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 35965 2009-06-11 06:56:31Z michiel $
Author:
Rob van Maris
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.module.core.MMObjectNode
aliases, initializing, isNew, parent, sequence, VALUE_SHORTED, values
 
Constructor Summary
ResultNode(ResultBuilder parent)
          Constructor.
 
Method Summary
 int getDBType(String fieldName)
          Returns the DBType of a field.
 
Methods inherited from class org.mmbase.module.core.VirtualNode
checkFieldExistance, commit, getAge, getOType, getRelationCount, getRelationCount, getRelations, hasRelations, insert, isVirtual
 
Methods inherited from class org.mmbase.module.core.MMObjectNode
cancel, checkSerializable, clearChanged, clone, commit, compareTo, createParameters, defaultEquals, delPropertiesCache, delRelationsCache, delRelationsCache, equals, finish, getAllRelations, getBooleanValue, getBuilder, getByteSize, getByteSize, getByteValue, getChanged, getContext, getDateValue, getDBState, getDoubleValue, getFloatValue, getFunction, getFunctions, getFunctionValue, getGUIIndicator, getInputStreamValue, getIntegerValue, getIntValue, getListValue, getLongValue, getName, getNodeValue, getNumber, getOldBuilder, getOldValues, getPossibleContexts, getProperties, getProperty, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelationNodes, getRelations, getRelations, getSize, getStringValue, getValue, getValues, getXMLValue, hashCode, insert, isChanged, isNew, isNull, putProperty, remove, removeRelations, retrieveValue, sendFieldChangeSignal, setAlias, setBuilder, setContext, setSize, setValue, start, storeValue, testValidData, toString, toXML
 
Methods inherited from class java.lang.Object
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(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


MMBase2 Core 2.0-SNAPSHOT - 2013-11-29T11:08