Package mondrian.calc
Interface ParameterSlot
-
public interface ParameterSlotImplementation of a parameter.- Since:
- Jul 25, 2006
- Author:
- jhyde
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetCachedDefaultValue()CalcgetDefaultValueCalc()Returns a compiled expression to compute the default value of the parameter.intgetIndex()Returns the unique index of the slot.ParametergetParameter()Returns the parameter.ObjectgetParameterValue()Returns the value of this parameter.booleanisParameterSet()Returns whether the parameter has been assigned a value.voidsetCachedDefaultValue(Object value)voidsetParameterValue(Object value, boolean assigned)Sets the value of this parameter.voidunsetParameterValue()Unsets the parameter value.
-
-
-
Method Detail
-
getIndex
int getIndex()
Returns the unique index of the slot.
-
getDefaultValueCalc
Calc getDefaultValueCalc()
Returns a compiled expression to compute the default value of the parameter.
-
getParameter
Parameter getParameter()
Returns the parameter.
-
setParameterValue
void setParameterValue(Object value, boolean assigned)
Sets the value of this parameter.NOTE: This method will be removed when we store parameter values in the
Resultrather than in theQuery.- Parameters:
value- New valueassigned- WhetherisParameterSet()should return true; supply valuefalseif this is an internal assignment, to remember the default value
-
getParameterValue
Object getParameterValue()
-
isParameterSet
boolean isParameterSet()
Returns whether the parameter has been assigned a value. (That value may be null.)- Returns:
- Whether parmaeter has been assigned a value.
-
setCachedDefaultValue
void setCachedDefaultValue(Object value)
-
getCachedDefaultValue
Object getCachedDefaultValue()
-
unsetParameterValue
void unsetParameterValue()
Unsets the parameter value.
-
-