|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 OlapModel
public void setID(java.lang.String ID)
OlapModel
setID
in interface OlapModel
public Result getResult() throws OlapException
OlapModel
getResult
in interface OlapModel
OlapException
public Dimension[] getDimensions()
getDimensions
in interface OlapModel
public Member[] getMeasures()
getMeasures
in interface OlapModel
public Extension getExtension(java.lang.String id)
Model
getExtension
in interface Model
public java.util.Map getExtensions()
Model
getExtensions
in interface Model
public void setLocale(java.util.Locale locale)
Model
setLocale
in interface Model
public void addExtension(Extension extension)
Model
addExtension
in interface Model
public void addModelChangeListener(ModelChangeListener l)
Model
addModelChangeListener
in interface Model
public void removeModelChangeListener(ModelChangeListener l)
Model
removeModelChangeListener
in interface Model
public java.lang.Object getBookmarkState(int levelOfDetail)
getBookmarkState
in interface com.tonbeller.wcf.bookmarks.Bookmarkable
public void setBookmarkState(java.lang.Object state)
setBookmarkState
in interface com.tonbeller.wcf.bookmarks.Bookmarkable
public Model getTopDecorator()
getTopDecorator
in interface Model
public Model getRootModel()
Model
getRootModel
in interface Model
public Model decorate(Model modelToDecorate)
modelToDecorate
with this
decorate
in interface Extension
decorate
in class ExtensionSupport
modelToDecorate
- 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
OlapException
public OlapModel getDelegate()
#getRootDecoree
,
getTopDecorator()
public void initialize() throws OlapException
OlapModel
initialize
in interface OlapModel
OlapException
public void destroy()
OlapModel
destroy
in interface OlapModel
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 |