com.tonbeller.jpivot.test.olap
Class TestSetParameter

java.lang.Object
  extended by com.tonbeller.jpivot.core.ExtensionSupport
      extended by com.tonbeller.jpivot.test.olap.TestExtensionSupport
          extended by com.tonbeller.jpivot.test.olap.TestSetParameter
All Implemented Interfaces:
Extension, SetParameter

public class TestSetParameter
extends TestExtensionSupport
implements SetParameter

Author:
av

Field Summary
 
Fields inherited from interface com.tonbeller.jpivot.olap.navi.SetParameter
ID
 
Constructor Summary
TestSetParameter()
           
 
Method Summary
 java.util.Map getDisplayValues()
          for scripting
 java.lang.String[] getParameterNames()
          return the names of all defined parameters in this query
 void setParameter(java.lang.String paramName, Expression paramValue)
          sets a parameter
 
Methods inherited from class com.tonbeller.jpivot.test.olap.TestExtensionSupport
fireModelChanged, model
 
Methods inherited from class com.tonbeller.jpivot.core.ExtensionSupport
decorate, getId, getModel, modelInitialized, setId, setModel
 
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.Extension
decorate, getId, modelInitialized, setModel
 

Constructor Detail

TestSetParameter

public TestSetParameter()
Method Detail

setParameter

public void setParameter(java.lang.String paramName,
                         Expression paramValue)
Description copied from interface: SetParameter
sets a parameter

Specified by:
setParameter in interface SetParameter
Parameters:
paramName - name of the parameter in the MDX query
paramValue - the value of the parameter, e.g. a member

getDisplayValues

public java.util.Map getDisplayValues()
for scripting

Specified by:
getDisplayValues in interface SetParameter
Returns:
Map containing parameter names (= keys) and strings to display value (= value)

getParameterNames

public java.lang.String[] getParameterNames()
Description copied from interface: SetParameter
return the names of all defined parameters in this query

Specified by:
getParameterNames in interface SetParameter
Returns:
the names of all defined parameters in this query