Package mondrian.rolap
Class RolapSchemaParameter
- java.lang.Object
-
- mondrian.rolap.RolapSchemaParameter
-
- All Implemented Interfaces:
ParameterCompilable
,Parameter
public class RolapSchemaParameter extends Object implements Parameter, ParameterCompilable
Parameter that is defined in a schema.- Since:
- Jul 20, 2006
- Author:
- jhyde
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface mondrian.olap.Parameter
Parameter.Scope
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Calc
compile(ExpCompiler compiler)
Exp
getDefaultExp()
Returns the expression which provides the default value for this Parameter.String
getDescription()
Returns the description of this Parameter.String
getName()
Returns the name of this Parameter.Parameter.Scope
getScope()
Returns the scope where this parameter is defined.Type
getType()
Returns the type of this Parameter.Object
getValue()
Returns the value of this parameter.boolean
isModifiable()
Returns whether the value of this Parameter can be modified in a query.boolean
isSet()
Returns whether the value of this parameter has been set.void
setValue(Object value)
Sets the value of this parameter.void
unsetValue()
Unsets the value of this parameter.
-
-
-
Method Detail
-
isModifiable
public boolean isModifiable()
Description copied from interface:Parameter
Returns whether the value of this Parameter can be modified in a query.- Specified by:
isModifiable
in interfaceParameter
- Returns:
- Whether parameter is modifiable
-
getScope
public Parameter.Scope getScope()
Description copied from interface:Parameter
Returns the scope where this parameter is defined.
-
getType
public Type getType()
Description copied from interface:Parameter
Returns the type of this Parameter.
-
getDefaultExp
public Exp getDefaultExp()
Description copied from interface:Parameter
Returns the expression which provides the default value for this Parameter. Never null.- Specified by:
getDefaultExp
in interfaceParameter
- Returns:
- Default value expression of the parameter
-
getName
public String getName()
Description copied from interface:Parameter
Returns the name of this Parameter.
-
getDescription
public String getDescription()
Description copied from interface:Parameter
Returns the description of this Parameter.- Specified by:
getDescription
in interfaceParameter
- Returns:
- Description of the parameter
-
getValue
public Object getValue()
Description copied from interface:Parameter
Returns the value of this parameter.If
Parameter.setValue(Object)
has not been called, returns the default value of this parameter.The type of the value is (depending on the type of the parameter) a
String
,Number
, orMember
.
-
setValue
public void setValue(Object value)
Description copied from interface:Parameter
Sets the value of this parameter.
-
isSet
public boolean isSet()
Description copied from interface:Parameter
Returns whether the value of this parameter has been set.If the value has not been set, this parameter will return its default value.
Setting a parameter to
null
is not equivalent to unsetting it. To unset a parameter, callParameter.unsetValue()
.
-
unsetValue
public void unsetValue()
Description copied from interface:Parameter
Unsets the value of this parameter.After calling this method, the parameter will revert to its default value, as if
Parameter.setValue(Object)
had not been called, andParameter.isSet()
will returnfalse
.- Specified by:
unsetValue
in interfaceParameter
-
compile
public Calc compile(ExpCompiler compiler)
- Specified by:
compile
in interfaceParameterCompilable
-
-