Package mondrian.web.taglib
Class QueryTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- mondrian.web.taglib.QueryTag
-
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
public class QueryTag extends javax.servlet.jsp.tagext.BodyTagSupportAQueryTagcreates aResultCacheobject and initializes it with the MDX query. Example:
Attributes are<query name="query1" resultCache="true"> select {[Measures].[Unit Sales], [Measures].[Store Cost]} on columns, CrossJoin( { [Promotion Media].[Radio], [Promotion Media].[TV], [Promotion Media].[Sunday Paper], [Promotion Media].[Street Handout] }, [Product].[Drink].children) on rows from Sales where ([Time].[1997]) </query>name,resultCache.- Author:
- Andreas Voss, 22 March, 2002
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoAfterBody()StringgetName()booleanisResultCache()voidsetName(String newName)Sets string attributename, which identifies this query within its page.voidsetResultCache(boolean newResultCache)Sets boolean attributeresultCache; if true, the query is parsed, executed, and converted to an XML document at most once.-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Method Detail
-
doAfterBody
public int doAfterBody() throws javax.servlet.jsp.JspException- Specified by:
doAfterBodyin interfacejavax.servlet.jsp.tagext.IterationTag- Overrides:
doAfterBodyin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
javax.servlet.jsp.JspException
-
setName
public void setName(String newName)
Sets string attributename, which identifies this query within its page. The<transform query>attribute uses this.
-
getName
public String getName()
-
setResultCache
public void setResultCache(boolean newResultCache)
Sets boolean attributeresultCache; if true, the query is parsed, executed, and converted to an XML document at most once. This improves performance and consistency, but the results may become out of date. We also need a way to prevent the cache using too much memory.
-
isResultCache
public boolean isResultCache()
-
-