org.mmbase.storage.search
Class ResultBuilder

java.lang.Object
  extended byorg.mmbase.module.core.MMTable
      extended byorg.mmbase.module.core.MMObjectBuilder
          extended byorg.mmbase.module.core.VirtualBuilder
              extended byorg.mmbase.storage.search.ResultBuilder

public class ResultBuilder
extends VirtualBuilder

A ResultBuilder is a builder for ResultNodes, that represent the results of executing an arbitrary search query.

This builder contains info on the fields of the resultnodes.

Since:
MMBase-1.7
Version:
$Id: ResultBuilder.java,v 1.5 2003/09/02 19:56:52 michiel Exp $
Author:
Rob van Maris

Field Summary
 
Fields inherited from class org.mmbase.module.core.MMObjectBuilder
AGE_PARAMETERS, broadcastChanges, database, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, fields, GUI_PARAMETERS, listCache, nodeCache, OBJ2TYPE_MAX_SIZE, oType, REPLACE_CACHE, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual
 
Fields inherited from class org.mmbase.module.core.MMTable
mmb, tableName
 
Constructor Summary
ResultBuilder(MMBase mmbase, SearchQuery query)
          Creator.
 
Method Summary
 int getDBType(java.lang.String fieldName)
          Return a field's database type.
 MMObjectNode getNewNode(java.lang.String owner)
          Get a new node, using this builder as its parent.
 
Methods inherited from class org.mmbase.module.core.VirtualBuilder
create, getDBState, getGUIInicator, getShortedByte, getShortedText, init, insert, processSearchResults
 
Methods inherited from class org.mmbase.module.core.MMObjectBuilder
addField, addLocalObserver, addRemoteObserver, buildSet, checkAddTmpField, commit, convertMMNode2SQL, count, count, createAlias, delete, deleteNodeCache, drop, equals, equals, executeFunction, executeFunction, fieldLocalChanged, getAge, getAliasedNode, getAncestors, getCacheNumbers, getCacheSize, getCacheSize, getClassName, getConfigFile, getDBByte, getDBKey, getDBText, getDefaultTeaser, getDefaultUrl, getDescendants, getDescription, getDescription, getDescriptions, getEditFields, getField, getFieldNames, getFields, getFields, getFunctionParameters, getGUIIndicator, getGUIIndicator, getHardNode, getHardNode, getHTML, getInitParameter, getInitParameters, getList, getLocaleGUIIndicator, getLocaleGUIIndicator, getMachineName, getMaintainer, getMMBase, getNewTmpNode, getNextField, getNextField, getNode, getNode, getNode, getNode, getNodes, getNodes, getNodeType, getNumberFromName, getObjectType, getObjectValue, getParameterDefinition, getParentBuilder, getPluralName, getPluralName, getPluralNames, getQuery, getQuery, getQuery, getRawNodes, getRelations_main, getSearchAge, getShort, getSingularName, getSingularName, getSingularNames, getSmartPath, getSortedFields, getSortedListFields, getTmpNode, getURLEncode, getValue, getVersion, getWAP, getXMLPath, hashCode, hostname_function, insert, insertDone, isExtensionOf, isNodeCached, isVirtual, nodeLocalChanged, nodeRemoteChanged, preCommit, preEdit, process, putTmpNode, readSearchResults, removeField, removeNode, removeRelations, removeSyncNodes, removeTmpNode, replace, safeCache, safeCommit, safeInsert, search, search, search, searchIn, searchIn, searchIn, searchList, searchList, searchNumbers, searchVector, searchVector, searchVector, searchVector, searchVectorIn, searchVectorIn, searchVectorIn, searchVectorIn, searchWithWhere, sendFieldChangeSignal, setDBLayout_xml, setDefaults, setDescription, setDescriptions, setInitParameter, setMaintainer, setMMBase, setParentBuilder, setPluralNames, setSearchAge, setSingularNames, setTableName, setUniqueValue, setUniqueValue, setValue, setValue, setVersion, setXMLPath, setXMLValues, signalNewObject, testValidData, toString, toString, toXML, updateFields, waitUntilNodeChanged, wrap
 
Methods inherited from class org.mmbase.module.core.MMTable
created, getFullTableName, getTableName, size
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultBuilder

public ResultBuilder(MMBase mmbase,
                     SearchQuery query)
Creator. Creates new ResultBuilder instance, used to represent the results of executing a search query.

Parameters:
mmbase - MMBase instance.
query - The search query that defines the search.
Method Detail

getDBType

public int getDBType(java.lang.String fieldName)
Description copied from class: MMObjectBuilder
Return a field's database type. The returned value is one of the following values declared in FieldDefs: TYPE_STRING, TYPE_INTEGER, TYPE_BYTE, TYPE_FLOAT, TYPE_DOUBLE, TYPE_LONG, TYPE_NODE, TYPE_UNKNOWN

Overrides:
getDBType in class MMObjectBuilder
Returns:
the field's type.

getNewNode

public MMObjectNode getNewNode(java.lang.String owner)
Description copied from class: VirtualBuilder
Get a new node, using this builder as its parent. The new node is a virtual node.

Overrides:
getNewNode in class VirtualBuilder
Parameters:
owner - The administrator creating the new node.
Returns:
A newly initialized VirtualNode.


MMBase build 1.7.1.20041002