mondrian.web.taglib
Class ResultCache

java.lang.Object
  extended by mondrian.web.taglib.ResultCache
All Implemented Interfaces:
EventListener, HttpSessionBindingListener

public class ResultCache
extends Object
implements HttpSessionBindingListener

holds a query/result pair in the users session

 

Method Summary
 Document getDOM()
           
static ResultCache getInstance(HttpSession session, ServletContext servletContext, String name)
          Retrieves a cached query.
 Query getQuery()
          Returns the Query.
 Result getResult()
           
 void parse(String mdx)
           
 void setDirty()
          set to dirty after you have modified the query to force a recalcuation
 void setQuery(Query query)
          Sets the query.
 void valueBound(HttpSessionBindingEvent ev)
          create a new connection to Mondrian
 void valueUnbound(HttpSessionBindingEvent ev)
          close connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ResultCache getInstance(HttpSession session,
                                      ServletContext servletContext,
                                      String name)
Retrieves a cached query. It is identified by its name and the current session. The servletContext parameter is necessary because HttpSession.getServletContext was not added until J2EE 1.3.


parse

public void parse(String mdx)

getResult

public Result getResult()

getDOM

public Document getDOM()

getQuery

public Query getQuery()
Returns the Query. If you modify the query, call setDirty()(true).


setQuery

public void setQuery(Query query)
Sets the query. Automatically calls setDirty()(true).


setDirty

public void setDirty()
set to dirty after you have modified the query to force a recalcuation


valueBound

public void valueBound(HttpSessionBindingEvent ev)
create a new connection to Mondrian

Specified by:
valueBound in interface HttpSessionBindingListener

valueUnbound

public void valueUnbound(HttpSessionBindingEvent ev)
close connection

Specified by:
valueUnbound in interface HttpSessionBindingListener

SourceForge.net_Logo