|
|||||||||
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 com.tonbeller.jpivot.olap.model.CachingOlapModel
public class CachingOlapModel
An OlapModel decorator that caches the result
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.tonbeller.jpivot.olap.model.OlapModel |
---|
OlapModel.EmptyCubeException, OlapModel.ResultTooLargeException |
Field Summary |
---|
Fields inherited from class com.tonbeller.jpivot.olap.model.OlapModelDecorator |
---|
delegate |
Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
---|
EXTENSIONAL, INTENSIONAL |
Constructor Summary | |
---|---|
CachingOlapModel()
|
Method Summary | |
---|---|
Model |
decorate(Model modelToDecorate)
decorates the modelToDecorate with this |
Result |
getResult()
runs the query and returns the result |
void |
modelChanged(ModelChangeEvent e)
invalidates the current result |
void |
structureChanged(ModelChangeEvent e)
invalidates the current result |
Methods inherited from class com.tonbeller.jpivot.olap.model.OlapModelDecorator |
---|
addExtension, addModelChangeListener, destroy, getBookmarkState, getDelegate, getDimensions, getExtension, getExtensions, getID, getMeasures, getRootModel, getTopDecorator, initialize, removeModelChangeListener, setBookmarkState, setDelegate, setID, setLocale, setServletContext |
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 |
Constructor Detail |
---|
public CachingOlapModel()
Method Detail |
---|
public void modelChanged(ModelChangeEvent e)
modelChanged
in interface ModelChangeListener
public void structureChanged(ModelChangeEvent e)
structureChanged
in interface ModelChangeListener
public Result getResult() throws OlapException
OlapModel
getResult
in interface OlapModel
getResult
in class OlapModelDecorator
OlapException
public Model decorate(Model modelToDecorate)
OlapModelDecorator
modelToDecorate
with this
decorate
in interface Extension
decorate
in class OlapModelDecorator
modelToDecorate
- the model to decorate. It may be different from the model
passed to setModel() because other extensions may already have decorated
modelToDecorate.Extension.decorate(Model)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |