Package mondrian.web.taglib
Class ResultCache
java.lang.Object
mondrian.web.taglib.ResultCache
- All Implemented Interfaces:
EventListener
,javax.servlet.http.HttpSessionBindingListener
Holds a query/result pair in the user's session.
- Author:
- Andreas Voss, 22 March, 2002
-
Method Summary
Modifier and TypeMethodDescriptiongetDOM()
static ResultCache
getInstance
(javax.servlet.http.HttpSession session, javax.servlet.ServletContext servletContext, String name) Retrieves a cached query.getQuery()
Returns theQuery
.void
void
setDirty()
set to dirty after you have modified the query to force a recalcuationvoid
Sets the query.void
valueBound
(javax.servlet.http.HttpSessionBindingEvent ev) create a new connection to Mondrianvoid
valueUnbound
(javax.servlet.http.HttpSessionBindingEvent ev) close connection
-
Method Details
-
getInstance
public static ResultCache getInstance(javax.servlet.http.HttpSession session, javax.servlet.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
-
getResult
-
getDOM
-
getQuery
Returns theQuery
. If you modify the query, call
.setDirty()
(true) -
setQuery
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(javax.servlet.http.HttpSessionBindingEvent ev) create a new connection to Mondrian- Specified by:
valueBound
in interfacejavax.servlet.http.HttpSessionBindingListener
-
valueUnbound
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent ev) close connection- Specified by:
valueUnbound
in interfacejavax.servlet.http.HttpSessionBindingListener
-