org.mycore.services.fieldquery
Class MCRCachedQueryData

java.lang.Object
  extended by org.mycore.services.fieldquery.MCRCachedQueryData

public class MCRCachedQueryData
extends Object

Manages a cache that contains the data of the most recently used queries. There are {MCR.SearchServlet.CacheSize} most recently used queries in a global cache. Additionally, the last query of search session is always stored within the MCRSession.

Author:
Frank Lützenkirchen

Field Summary
protected static MCRCache cache
          A cache that contains the data of the most recently used queries
 
Method Summary
static void cache(MCRResults results, Document query, MCRCondition condition)
           
 MCRCondition getCondition()
           
static MCRCachedQueryData getData(String id)
           
 int getNumPerPage()
           
 int getPage()
           
 Document getQuery()
           
 MCRResults getResults()
           
 void setNumPerPage(int numPerPage)
           
 void setPage(int page)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected static MCRCache cache
A cache that contains the data of the most recently used queries

Method Detail

getData

public static MCRCachedQueryData getData(String id)

cache

public static void cache(MCRResults results,
                         Document query,
                         MCRCondition condition)

getNumPerPage

public int getNumPerPage()

setNumPerPage

public void setNumPerPage(int numPerPage)

getPage

public int getPage()

setPage

public void setPage(int page)

getCondition

public MCRCondition getCondition()

getQuery

public Document getQuery()

getResults

public MCRResults getResults()