|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tonbeller.jpivot.core.ExtensionSupport
com.tonbeller.jpivot.olap.model.OlapModelDecorator
public class OlapModelDecorator
a default decorator that delegates everything
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.tonbeller.jpivot.olap.model.OlapModel |
|---|
OlapModel.EmptyCubeException, OlapModel.ResultTooLargeException |
| Field Summary | |
|---|---|
protected OlapModel |
delegate
|
| Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
|---|
EXTENSIONAL, INTENSIONAL |
| Constructor Summary | |
|---|---|
OlapModelDecorator()
default ctor |
|
OlapModelDecorator(OlapModel delegate)
|
|
| Method Summary | |
|---|---|
void |
addExtension(Extension extension)
adds an extension to this model. |
void |
addModelChangeListener(ModelChangeListener l)
adds a model change listener |
Model |
decorate(Model modelToDecorate)
decorates the modelToDecorate with this |
void |
destroy()
called once when the not used any longer. |
java.lang.Object |
getBookmarkState(int levelOfDetail)
|
OlapModel |
getDelegate()
gets the decorated model. |
Dimension[] |
getDimensions()
|
Extension |
getExtension(java.lang.String id)
returns the extension if this model instance supports it. |
java.util.Map |
getExtensions()
returns a Map containing all extensions JSP scripting. |
java.lang.String |
getID()
|
Member[] |
getMeasures()
|
Result |
getResult()
runs the query and returns the result |
Model |
getRootModel()
Returns the bottom element of the decorator chain. |
Model |
getTopDecorator()
returns the top of the decorator chain |
void |
initialize()
called once after creation. |
void |
removeModelChangeListener(ModelChangeListener l)
removes a model change listener |
void |
setBookmarkState(java.lang.Object state)
|
void |
setDelegate(OlapModel modelToDecorate)
sets the decorated model |
void |
setID(java.lang.String ID)
sets an ID string for this model |
void |
setLocale(java.util.Locale locale)
sets the locale for messages, data display etc |
void |
setServletContext(javax.servlet.ServletContext servletContext)
store a servlet context to the model |
| Methods inherited from class com.tonbeller.jpivot.core.ExtensionSupport |
|---|
getId, getModel, modelInitialized, setId, setModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OlapModel delegate
| Constructor Detail |
|---|
public OlapModelDecorator()
setDelegate(com.tonbeller.jpivot.olap.model.OlapModel),
decorate(com.tonbeller.jpivot.core.Model)public OlapModelDecorator(OlapModel delegate)
| Method Detail |
|---|
public java.lang.String getID()
getID in interface OlapModelpublic void setID(java.lang.String ID)
OlapModel
setID in interface OlapModel
public Result getResult()
throws OlapException
OlapModel
getResult in interface OlapModelOlapExceptionpublic Dimension[] getDimensions()
getDimensions in interface OlapModelpublic Member[] getMeasures()
getMeasures in interface OlapModelpublic Extension getExtension(java.lang.String id)
Model
getExtension in interface Modelpublic java.util.Map getExtensions()
Model
getExtensions in interface Modelpublic void setLocale(java.util.Locale locale)
Model
setLocale in interface Modelpublic void addExtension(Extension extension)
Model
addExtension in interface Modelpublic void addModelChangeListener(ModelChangeListener l)
Model
addModelChangeListener in interface Modelpublic void removeModelChangeListener(ModelChangeListener l)
Model
removeModelChangeListener in interface Modelpublic java.lang.Object getBookmarkState(int levelOfDetail)
getBookmarkState in interface com.tonbeller.wcf.bookmarks.Bookmarkablepublic void setBookmarkState(java.lang.Object state)
setBookmarkState in interface com.tonbeller.wcf.bookmarks.Bookmarkablepublic Model getTopDecorator()
getTopDecorator in interface Modelpublic Model getRootModel()
Model
getRootModel in interface Modelpublic Model decorate(Model modelToDecorate)
modelToDecorate with this
decorate in interface Extensiondecorate in class ExtensionSupportmodelToDecorate - the model to decorate. It may be different from the model
passed to setModel() because other extensions may already have decorated
modelToDecorate.
public void setDelegate(OlapModel modelToDecorate)
throws OlapException
OlapExceptionpublic OlapModel getDelegate()
#getRootDecoree,
getTopDecorator()
public void initialize()
throws OlapException
OlapModel
initialize in interface OlapModelOlapExceptionpublic void destroy()
OlapModel
destroy in interface OlapModelpublic 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 | ||||||||