org.dspace.search
Class QueryResults

java.lang.Object
  extended by org.dspace.search.QueryResults

public class QueryResults
extends Object

Contains the results of a query. Use access methods to examine and retrieve the results.


Constructor Summary
QueryResults()
           
 
Method Summary
 String getErrorMsg()
          get error message
 int getEtAl()
           
 int getHitCount()
          get total number of hits found by search engine, not just number of returned results
 List getHitHandles()
          get the List of handles corresponding to hits
 List getHitIds()
          get the List of handles corresponding to hits
 List getHitTypes()
          get the List of types corresponding to handles
 int getPageSize()
          get length of 'page' of results
 int getStart()
          get start of 'page' of results
 void setErrorMsg(String msg)
          set error message
 void setEtAl(int etAl)
          set the number of metadata fields at which to truncate with "et al"
 void setHitCount(int newCount)
          set total number of hits found by search engine, not number in hitHandles
 void setHitHandles(List myHits)
          set the List of handles corresponding to hits
 void setHitIds(List myHits)
          set the List of ids corresponding to hits
 void setHitTypes(List newTypes)
          set the List of types corresponding to handles
 void setPageSize(int newSize)
          set length of 'page' of results
 void setStart(int newStart)
          set start of 'page' of results
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResults

public QueryResults()
Method Detail

getEtAl

public int getEtAl()
Returns:
the number of metadata fields at which to truncate with "et al"

setEtAl

public void setEtAl(int etAl)
set the number of metadata fields at which to truncate with "et al"

Parameters:
etAl -

setHitCount

public void setHitCount(int newCount)
set total number of hits found by search engine, not number in hitHandles


getHitCount

public int getHitCount()
get total number of hits found by search engine, not just number of returned results


setStart

public void setStart(int newStart)
set start of 'page' of results


getStart

public int getStart()
get start of 'page' of results


setPageSize

public void setPageSize(int newSize)
set length of 'page' of results


getPageSize

public int getPageSize()
get length of 'page' of results


setHitHandles

public void setHitHandles(List myHits)
set the List of handles corresponding to hits


getHitHandles

public List getHitHandles()
get the List of handles corresponding to hits


setHitIds

public void setHitIds(List myHits)
set the List of ids corresponding to hits


getHitIds

public List getHitIds()
get the List of handles corresponding to hits


setHitTypes

public void setHitTypes(List newTypes)
set the List of types corresponding to handles


getHitTypes

public List getHitTypes()
get the List of types corresponding to handles


setErrorMsg

public void setErrorMsg(String msg)
set error message


getErrorMsg

public String getErrorMsg()
get error message



Copyright © 2010 DuraSpace. All Rights Reserved.