Package mondrian.rolap
Class ScenarioImpl
- java.lang.Object
-
- mondrian.rolap.ScenarioImpl
-
- All Implemented Interfaces:
org.olap4j.Scenario
public final class ScenarioImpl extends Object implements org.olap4j.Scenario
Implementation ofScenario.- Since:
- 24 April, 2009
- Author:
- jhyde
-
-
Constructor Summary
Constructors Constructor Description ScenarioImpl()Creates a ScenarioImpl.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetId()RolapMembergetMember()Returns the member of the [Scenario] dimension that represents this scenario.inthashCode()static booleanisScenario(Hierarchy hierarchy)Returns whether a hierarchy is the [Scenario] hierarchy.voidsetCellValue(Connection connection, List<RolapMember> members, double newValue, double currentValue, org.olap4j.AllocationPolicy allocationPolicy, Object[] allocationArgs)Sets the value of a cell.StringtoString()
-
-
-
Method Detail
-
setCellValue
public void setCellValue(Connection connection, List<RolapMember> members, double newValue, double currentValue, org.olap4j.AllocationPolicy allocationPolicy, Object[] allocationArgs)
Sets the value of a cell.- Parameters:
connection- Connection (not currently used)members- Coordinates of cellnewValue- New valuecurrentValue- Current valueallocationPolicy- Allocation policyallocationArgs- Additional arguments of allocation policy
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.olap4j.Scenario
-
isScenario
public static boolean isScenario(Hierarchy hierarchy)
Returns whether a hierarchy is the [Scenario] hierarchy.TODO: use a flag
- Parameters:
hierarchy- Hierarchy- Returns:
- Whether hierarchy is the scenario hierarchy
-
getMember
public RolapMember getMember()
Returns the member of the [Scenario] dimension that represents this scenario. Including that member in the slicer will automatically use this scenario.The result is not null, provided that
register(RolapSchema)has been called.- Returns:
- Scenario member
-
-