|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.jpivot.core.ModelSupport com.tonbeller.jpivot.olap.query.MdxOlapModel com.tonbeller.jpivot.xmla.XMLA_Model
public class XMLA_Model
Model for XMLA
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.tonbeller.jpivot.olap.model.OlapModel |
---|
OlapModel.EmptyCubeException, OlapModel.ResultTooLargeException |
Field Summary |
---|
Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
---|
EXTENSIONAL, INTENSIONAL |
Constructor Summary | |
---|---|
XMLA_Model()
default constructor |
Method Summary | |
---|---|
protected ExpBean |
createBeanFromExp(java.lang.Object exp)
|
protected java.lang.Object |
createExpFromBean(ExpBean expBean)
|
void |
destroy()
session terminated, closing connections etc |
java.lang.Object |
getBookmarkState(int levelOfDetail)
create a Memento bean object holding current state. |
java.util.Map |
getCalcMeasurePropMap()
|
java.lang.String |
getCatalog()
Returns the catalog. |
java.lang.String |
getCube()
|
java.lang.String |
getCurrentMdx()
get the MDX for the user to edit |
java.lang.String |
getDataSource()
Returns the dataSource. |
Dimension[] |
getDimensions()
|
Result |
getDrillResult()
|
java.lang.String |
getID()
|
Member[] |
getMeasures()
|
java.lang.String |
getPassword()
|
ParsedQuery |
getPQuery()
Returns the pQuery. |
QueryAdapter |
getQueryAdapter()
Returns the queryAdapter. |
Result |
getResult()
Let Mondrian parse and execute the query |
java.lang.Object |
getRootDecoree()
|
java.lang.String |
getUri()
Returns the uri. |
java.lang.String |
getUser()
|
void |
initialize()
called once after creation. |
boolean |
isMemberInFormulas(java.lang.String uName)
find out, whether a member is in the formulas |
boolean |
isMicrosoft()
|
boolean |
isMondrian()
|
boolean |
isSAP()
|
Member |
lookupMemberByUName(java.lang.String uName)
lookup member by unique name |
void |
removeMember(XMLA_Member mem)
remove single member |
void |
retrieveMember(java.lang.String uniqueName)
retrieve a member by unique name |
void |
setBookmarkState(java.lang.Object state)
restore state from Memento. |
void |
setCatalog(java.lang.String catalog)
Sets the catalog. |
void |
setDataSource(java.lang.String dataSource)
Sets the dataSource. |
void |
setID(java.lang.String string)
sets an ID string for this model |
void |
setMdxQuery(java.lang.String mdxQuery)
Sets the mdxQuery. |
void |
setPassword(java.lang.String string)
|
void |
setServletContext(javax.servlet.ServletContext servletContext)
store a servlet context to the model |
void |
setUri(java.lang.String uri)
Sets the uri. |
void |
setUser(java.lang.String string)
|
void |
setUserMdx(java.lang.String mdxQuery)
set the mdx entered by the user. |
Methods inherited from class com.tonbeller.jpivot.olap.query.MdxOlapModel |
---|
beanFromQuax, quaxesFromBeans, restoreSort, storeSort |
Methods inherited from class com.tonbeller.jpivot.core.ModelSupport |
---|
addExtension, addModelChangeListener, fireModelChanged, fireModelChanged, fireStructureChanged, fireStructureChanged, getExtension, getExtensions, getLocale, getRootModel, getTopDecorator, removeModelChangeListener, setLocale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.tonbeller.jpivot.core.Model |
---|
addExtension, addModelChangeListener, getExtension, getExtensions, getRootModel, getTopDecorator, removeModelChangeListener, setLocale |
Constructor Detail |
---|
public XMLA_Model()
Method Detail |
---|
public void initialize() throws OlapException
OlapModel
initialize
in interface OlapModel
OlapException
HttpSessionBindingListener.valueBound(HttpSessionBindingEvent)
public void setMdxQuery(java.lang.String mdxQuery)
mdxQuery
- The mdxQuery to setpublic Result getResult() throws OlapException
getResult
in interface OlapModel
OlapException
OlapModel.getResult()
public Result getDrillResult() throws OlapException
OlapException
public java.lang.String getCurrentMdx()
getCurrentMdx
in class MdxOlapModel
MdxOlapModel.getCurrentMdx()
public void setUserMdx(java.lang.String mdxQuery) throws OlapException
mdxQuery
-
OlapException
- if the syntax is invalidpublic Dimension[] getDimensions()
getDimensions
in interface OlapModel
OlapModel.getDimensions()
public Member[] getMeasures()
getMeasures
in interface OlapModel
OlapModel.getMeasures()
public void destroy()
destroy
in interface OlapModel
destroy
in class ModelSupport
public java.lang.Object getRootDecoree()
public Member lookupMemberByUName(java.lang.String uName)
lookupMemberByUName
in class MdxOlapModel
name
-
public void removeMember(XMLA_Member mem)
public java.lang.Object getBookmarkState(int levelOfDetail)
getBookmarkState
in interface com.tonbeller.wcf.bookmarks.Bookmarkable
getBookmarkState
in class ModelSupport
public void setBookmarkState(java.lang.Object state)
setBookmarkState
in interface com.tonbeller.wcf.bookmarks.Bookmarkable
setBookmarkState
in class ModelSupport
Object
- state bean to be restoredprotected java.lang.Object createExpFromBean(ExpBean expBean) throws OlapException
createExpFromBean
in class MdxOlapModel
expBean
-
OlapException
protected ExpBean createBeanFromExp(java.lang.Object exp) throws OlapException
createBeanFromExp
in class MdxOlapModel
OlapException
public void retrieveMember(java.lang.String uniqueName) throws OlapException
OlapException
public boolean isMemberInFormulas(java.lang.String uName)
uName
- - unique name
public java.lang.String getCatalog()
public java.lang.String getUri()
public void setCatalog(java.lang.String catalog)
catalog
- The catalog to setpublic java.lang.String getDataSource()
public void setDataSource(java.lang.String dataSource)
dataSource
- The dataSource to setpublic void setUri(java.lang.String uri)
uri
- The uri to setpublic ParsedQuery getPQuery()
public QueryAdapter getQueryAdapter()
getQueryAdapter
in interface QueryAdapter.QueryAdapterHolder
public java.lang.String getID()
getID
in interface OlapModel
public void setID(java.lang.String string)
OlapModel
setID
in interface OlapModel
ID
- public java.lang.String getUser()
public void setUser(java.lang.String string)
user
- public java.lang.String getPassword()
public void setPassword(java.lang.String string)
string
- public boolean isSAP()
public boolean isMicrosoft()
public boolean isMondrian()
public java.lang.String getCube()
public java.util.Map getCalcMeasurePropMap()
public void setServletContext(javax.servlet.ServletContext servletContext)
OlapModel
setServletContext
in interface OlapModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |