Package mondrian.web.taglib
Class ResultCache
- java.lang.Object
-
- mondrian.web.taglib.ResultCache
-
- All Implemented Interfaces:
java.util.EventListener
,HttpSessionBindingListener
public class ResultCache extends java.lang.Object implements HttpSessionBindingListener
Holds a query/result pair in the user's session.- Author:
- Andreas Voss, 22 March, 2002
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Document
getDOM()
static ResultCache
getInstance(HttpSession session, ServletContext servletContext, java.lang.String name)
Retrieves a cached query.Query
getQuery()
Returns theQuery
.Result
getResult()
void
parse(java.lang.String mdx)
void
setDirty()
set to dirty after you have modified the query to force a recalcuationvoid
setQuery(Query query)
Sets the query.void
valueBound(HttpSessionBindingEvent ev)
create a new connection to Mondrianvoid
valueUnbound(HttpSessionBindingEvent ev)
close connection
-
-
-
Method Detail
-
getInstance
public static ResultCache getInstance(HttpSession session, ServletContext servletContext, java.lang.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(java.lang.String mdx)
-
getResult
public Result getResult()
-
getDOM
public org.w3c.dom.Document getDOM()
-
getQuery
public Query getQuery()
Returns theQuery
. 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 interfaceHttpSessionBindingListener
-
valueUnbound
public void valueUnbound(HttpSessionBindingEvent ev)
close connection- Specified by:
valueUnbound
in interfaceHttpSessionBindingListener
-
-